China Weather MCP Server
MCP server to query weather in Chinese cities
Overview
China Weather MCP Server is a Model Context Protocol (MCP) server that provides real-time weather information for Chinese cities using the AMap Weather API. This server enables AI assistants to access current weather conditions across China.
To use the server, install Python 3.12 or higher, clone the repository, install dependencies, and configure your AMap API key. You can then integrate it with AI assistants like Claude Desktop by adding specific configurations.
- Real-time weather data retrieval for Chinese cities - Integration with AMap Weather API - Asynchronous request handling - Easy-to-use MCP interface
- Providing current weather updates for various Chinese cities.
- Enabling AI assistants to fetch and display weather information.
- Supporting applications that require real-time weather data for decision-making.
Add to your AI client
Use these steps to connect China 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": {
"china-weather-mcp-server-dlyzzt": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-china-weather-mcp-server-dlyzzt"
]
}
}
}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": {
"china-weather-mcp-server-dlyzzt": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-china-weather-mcp-server-dlyzzt"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"china-weather-mcp-server-dlyzzt": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-china-weather-mcp-server-dlyzzt"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"china-weather-mcp-server-dlyzzt": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-china-weather-mcp-server-dlyzzt"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"china-weather-mcp-server-dlyzzt": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-china-weather-mcp-server-dlyzzt"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"china-weather-mcp-server-dlyzzt": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-china-weather-mcp-server-dlyzzt"
]
}
}
}FAQ
What programming language is used?
The server is built using Python.
Is there a license for this project?
Yes, it is licensed under the MIT License.
How can I get an API key?
You can obtain an API key from the AMap Developer Platform.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":3005,"uuid":"f92fab21-1e41-4119-8165-0dc3d095e2cc","name":"china-weather-mcp-server","title":"China Weather MCP Server","description":"MCP server to query weather in Chinese cities","avatar_url":"https://avatars.githubusercontent.com/u/91056284?v=4","created_at":"2025-03-16T13:48:19.515Z","updated_at":"2025-03-16T13:51:50.377Z","status":"created","author_name":"DLYZZT","author_avatar_url":"https://avatars.githubusercontent.com/u/91056284?v=4","tags":"[]","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/DLYZZT/china-weather-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"MIT license\",\"language\":\"Python\",\"is_official\":false,\"latest_commit_time\":\"2025-03-16 20:41:12\"}","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"}]]}]