- Explore MCP Servers
- WeatherWithMCP
Weatherwithmcp
What is Weatherwithmcp
WeatherWithMCP is a simple demonstration project built on the Model Context Protocol (MCP) that allows users to query weather information.
Use cases
Use cases include checking weather alerts for specific states, obtaining weather forecasts based on geographic coordinates, and serving as a learning tool for developers interested in MCP.
How to use
To use WeatherWithMCP, install the dependencies using ‘rye sync .’ and run the project with ‘python src/client.py src/server.py’. Once started, users can type their queries to check weather alerts or forecasts.
Key features
Key features include the ability to check weather alerts and forecasts, support for multiple state queries, and a user-friendly command-line interface.
Where to use
WeatherWithMCP can be used in various fields such as weather forecasting, emergency alert systems, and educational purposes for demonstrating MCP functionalities.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Weatherwithmcp
WeatherWithMCP is a simple demonstration project built on the Model Context Protocol (MCP) that allows users to query weather information.
Use cases
Use cases include checking weather alerts for specific states, obtaining weather forecasts based on geographic coordinates, and serving as a learning tool for developers interested in MCP.
How to use
To use WeatherWithMCP, install the dependencies using ‘rye sync .’ and run the project with ‘python src/client.py src/server.py’. Once started, users can type their queries to check weather alerts or forecasts.
Key features
Key features include the ability to check weather alerts and forecasts, support for multiple state queries, and a user-friendly command-line interface.
Where to use
WeatherWithMCP can be used in various fields such as weather forecasting, emergency alert systems, and educational purposes for demonstrating MCP functionalities.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
Weather Demo
一个基于 MCP (Model Context Protocol) 的简单天气查询演示项目。
快速开始
安装依赖
rye sync .
运行项目
python src/client.py src/server.py
相关文档
python src/client.py src/server.py
Processing request of type ListToolsRequest
Connected to server with tools: ['get_alerts', 'get_forecast']
MCP Client Started!
Type your queries or 'quit' to exit.
Query: CA
Processing request of type ListToolsRequest
Processing request of type CallToolRequest
I'll help you check the weather alerts for California using the state code "CA".
[Calling tool get_alerts with args {'state': 'CA'}]
I attempted to get the weather alerts for California, but it seems there was a technical error. Would you like to try:
1. Checking the alerts again
2. Getting a weather forecast instead (though I would need the specific latitude and longitude coordinates for the location you're interested in)
3. Checking alerts for a different state
Please let me know how you'd like to proceed.
Query: quit
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










