Overview
Weather MCP Server is a Model Context Protocol server that provides weather forecasts and city information queries. It allows users to obtain weather information for the next 24 hours and supports queries by city name or geographical coordinates.
To use the Weather MCP Server, you can either run it using uv, install it via pip, or configure it with Docker. After installation, you can run the server and make requests to get weather data.
- Provides 24-hour weather forecasts. - Supports queries by city name or coordinates. - Easy installation and configuration options.
- Getting real-time weather updates for specific locations.
- Integrating weather data into applications for enhanced user experience.
- Supporting research and data analysis related to weather patterns.
Add to your AI client
Use these steps to connect Weather MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-weather-xuezhijian": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-weather-xuezhijian"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-weather-xuezhijian": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-weather-xuezhijian"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-weather-xuezhijian": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-weather-xuezhijian"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-weather-xuezhijian": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-weather-xuezhijian"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-weather-xuezhijian": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-weather-xuezhijian"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-weather-xuezhijian": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-weather-xuezhijian"
]
}
}
}FAQ
Can I get weather information for any city?
Yes! You can query weather information for any city using its name or coordinates.
Is there a cost to use the Weather MCP Server?
No! The Weather MCP Server is free to use.
How accurate is the weather data provided?
The accuracy of the weather data depends on the underlying weather API and the specific location queried.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2795,"uuid":"091fdf27-2e9b-47d4-ad67-7a8690e17464","name":"mcp_weather","title":"Weather MCP Server","description":"MCP Server 和风天气API例子。","avatar_url":"https://avatars.githubusercontent.com/u/15346103?v=4","created_at":"2025-03-14T02:10:22.803Z","updated_at":"2025-03-14T02:14:41.013Z","status":"created","author_name":"xuezhijian","author_avatar_url":"https://avatars.githubusercontent.com/u/15346103?v=4","tags":"[]","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/xuezhijian/mcp_weather","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"\",\"language\":\"Python\",\"is_official\":false,\"latest_commit_time\":\"2025-03-13 19:12:10\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]