MCP.so
登录

MCP Demo

@guobinqiu

基本信息

分类

其他

传输方式

stdio

作者

guobinqiu

关于 MCP Demo

测试 mcp client 通过 deepseek 连接 mcp server 获取天气预报

MCP Demo 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

MCP Demo 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MCP Demo?

MCP Demo is a demonstration MCP (Model Context Protocol) server that provides weather forecasts and alerts from the U.S. National Weather Service. It is designed for use with language models like DeepSeek-V3 (deepseek-chat) that support the tools attribute.

How to use MCP Demo?

Clone the repository, create a Python virtual environment with uv, and set your OPENAI_API_KEY in a .env file. Run the client with python client/main.py server/main.py. The client accepts natural language queries about weather.

Key features of MCP Demo

  • Provides two tools: get_alerts and get_forecast
  • Uses the free National Weather Service API (api.weather.gov)
  • Requires DeepSeek-V3 model (deepseek-chat) for tool support
  • Written in Python, with a Golang version also available
  • Simple client-server architecture over stdio

Use cases of MCP Demo

  • Get current weather forecast for any U.S. city
  • Retrieve weather alerts for a given location
  • Demonstrate MCP integration with an LLM

常见问题

1

What tools are available?

Two tools: `get_alerts` and `get_forecast`.

2

How do I install and run it?

Install `uv`, clone the repo, create a virtual environment, and run `python client/main.py server/main.py`. Set your `OPENAI_API_KEY` in a `.env` file first.

3

Which LLM does this demo work with?

It works with `deepseek-chat` (DeepSeek-V3) because only V3 has the `tools` attribute. Other models like `deepseek-reasoner` are not supported.

4

Do I need any API keys?

Yes, you need an OpenAI API key (though the demo queries the NWS API, not OpenAI). Set it in the `.env` file.

5

Where does the weather data come from?

The data comes from the public U.S. National Weather Service API at `https://api.weather.gov`.

评论

其他 分类下的更多 MCP 服务器