MCP Demo
@guobinqiu
MCP Demo について
测试 mcp client 通过 deepseek 连接 mcp server 获取天气预报
基本情報
設定
ツール
ツールは検出されませんでした
ツールは 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_alertsandget_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
FAQ from MCP Demo
What tools are available?
Two tools: get_alerts and get_forecast.
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.
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.
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.
Where does the weather data come from?
The data comes from the public U.S. National Weather Service API at https://api.weather.gov.
「その他」の他のコンテンツ
🪟 Windows-MCP
CursorTouchMCP Server for Computer Use in Windows
XcodeBuildMCP
cameroncookeA Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.

Sequential Thinking
modelcontextprotocolModel Context Protocol Servers
Maestro
mobile-dev-incPainless E2E Automation for Mobile and Web
Codelf
unbugA search tool helps dev to solve the naming things problem.
コメント