- Home
- MCP servers
- Weather
Weather
- python
2
GitHub Stars
python
Language
6 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"xuezhijian-mcp_weather": {
"command": "uvx",
"args": [
"mcp-server-weather"
]
}
}
}The Weather MCP Server provides 24-hour weather forecasts and city information lookup via the Model Context Protocol, enabling you to fetch short-term weather data and search cities by name or coordinates for your AI workflows.
How to use
You access weather data by using an MCP client to request the available tool get_24h_weather. Provide a location as a city name or a pair of coordinates, and you’ll receive a forecast for the next 24 hours. Use this to power planning, travel planning, or decision-making assistants that rely on real-time weather information.
How to install
Prerequisites you need before installing this server are Python and a runtime environment capable of executing Python modules. You will also need network access to install Python packages if you choose the pip route.
pip install mcp-server-weather
# Run the server as a module
python -m mcp_server_weather
Additional sections
Configuration and startup options let you run the server in different environments. Choose the method that best fits your deployment workflow.
Available tools
get_24h_weather
Fetches the weather forecast for the next 24 hours for a given location. Requires location as a city name or coordinates (e.g., 北京 or 116.41,39.92).