weather-mcp-server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@weather-mcp-server What's the current weather in Tokyo?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
๐ค Weather MCP Server
ไธไธชๆๅฐๅไฝๅฎๆด็ MCP (Model Context Protocol) ๆๅก็ซฏๅฎ็ฐ๏ผไธบ AI Agent ๆไพๅฎๆถๅคฉๆฐๆฅ่ฏข่ฝๅใ
ไธบไปไนๅ่ฟไธช้กน็ฎ
่ฟๆฏ ไป้ถๅญฆ AI Agent ๆถๆ ็ๅฎๆ้กน็ฎ #1ใMCP ๅ่ฎฎๆฏ AI Agent ไธๅค้จไธ็ไบคไบ็ๆ ๅๆฅๅฃโโ็่งฃ MCP ๆฏ็่งฃๆดไธช Agent ๆถๆ็็ฌฌไธๆญฅใๆฌ้กน็ฎ็จๆๅฐ็ไปฃ็ ้๏ผ~200 ่ก๏ผๅฑ็คบ MCP Server ็ๅฎๆด็ๅฝๅจๆใ
Related MCP server: Weather MCP Server
ๅฟซ้ๅผๅง
# 1. ๅฎ่ฃ
cd weather-mcp-server
pip install -e .
# 2. ๆต่ฏ
pytest tests/ -v
# 3. ่ฟ่ก๏ผstdio transport๏ผ
weather-mcpๆฅๅ ฅ Claude Code
ๅจ claude_desktop_config.json ๆ .claude/settings.json ไธญๆทปๅ ๏ผ
{
"mcpServers": {
"weather": {
"command": "uv",
"args": [
"run",
"--directory", "D:\\AI_Space\\ClaudeCode-DeepSeek\\weather-mcp-server",
"weather-mcp"
]
}
}
}้ๅฏ Claude Code ๅ๏ผไฝ ๅฐฑ่ฝ็ๅฐ mcp__weather__get_current_weather ๅ mcp__weather__get_forecast ไธคไธชๅทฅๅ
ทใ
ๆไพ็ๅทฅๅ ท
ๅทฅๅ ทๅ | ็จ้ | ๅๆฐ |
| ๅฎๆถๅคฉๆฐ๏ผๆธฉๅบฆ/ไฝๆ/้ฃ้/ๆนฟๅบฆ/็ดซๅค็บฟ๏ผ |
|
| ๆชๆฅ N ๅคฉ้ขๆฅ |
|
ๆถๆ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Claude Code (Host) โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ MCP Client (weather) โ โ
โ โ JSON-RPC over stdio โ โ
โ โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโ
โ stdin/stdout
โโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Weather MCP Server โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ handle_list_tools() โ โ
โ โ handle_call_tool() โ โ
โ โโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ โ
โ โโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ fetch_weather() (wttr.in) โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ้กน็ฎ็ปๆ
weather-mcp-server/
โโโ pyproject.toml # ้กน็ฎ้
็ฝฎๅไพ่ต
โโโ README.md # ๆฌๆไปถ
โโโ src/
โ โโโ weather_mcp/
โ โโโ __init__.py
โ โโโ server.py # MCP Server ๆ ธๅฟ๏ผ~200่ก๏ผ
โโโ tests/
โโโ test_server.py # ๅๅ
ๆต่ฏ + ้ๆๆต่ฏๅญฆไผไบไปไน
้่ฟ่ฟไธช้กน็ฎไฝ ๅฏไปฅ็่งฃ๏ผ
MCP ๅ่ฎฎไธๅฑๆจกๅ: Host โ Client โ Server
JSON-RPC 2.0: MCP ็ๅบๅฑไผ ่พๆ ผๅผ
stdio transport: ่ฟ็จ้ด้่ฟๆ ๅ่พๅ ฅ่พๅบ้ไฟก
Tool ๅฎไน: name + description + input_schema๏ผAI ๅฆไฝๅน้ ๅทฅๅ ท
ไธๅก้ป่พไธๅ่ฎฎ่งฃ่ฆ: fetch_weather() ไธ็ฅ้ MCP ็ๅญๅจ
้่ฏฏๅค็: MCP ๅ่ฎฎ่ฆๆฑ่ฟๅ is_error ่้ๆๅผๅธธ
License
MIT
Available Tools
3 toolsget_air_qualityๆฅ่ฏข็ฉบๆฐ่ดจ้A
ๆฅ่ฏขไธไธชๅๅธ็็ฉบๆฐ่ดจ้ๆๆฐ๏ผAQI๏ผ๏ผๅ ๆฌ PM2.5ใPM10ใNOโใSOโใOโ ็ญๆฑกๆ็ฉๆตๅบฆใๆฏๆไธญๆๅ่ฑๆๅๅธๅใไธ้่ฆ API Keyใ
Inputs: city (required).
get_current_weather่ทๅๅฝๅๅคฉๆฐA
ๆฅ่ฏขไธไธชๅๅธ็ๅฎๆถๅคฉๆฐ๏ผๅ ๆฌๆธฉๅบฆใไฝๆๆธฉๅบฆใๅคฉๆฐๆ่ฟฐใ้ฃ้ใๆนฟๅบฆใ่ฝ่งๅบฆใ็ดซๅค็บฟๆๆฐใๆฐๅใๆฏๆไธญๆๅๅธๅ๏ผๅฆ 'ๅไบฌ'๏ผๅ่ฑๆๅๅธๅ๏ผๅฆ 'Tokyo'๏ผใไธ้่ฆ API Keyใ
Inputs: city (required).
get_forecast่ทๅๅคฉๆฐ้ขๆฅA
ๆฅ่ฏขไธไธชๅๅธๆชๆฅๅ ๅคฉ็ๅคฉๆฐ้ขๆฅ๏ผๅ ๆฌๆฏๆฅๆ้ซ/ๆไฝๆธฉๅบฆๅๅคฉๆฐๆ่ฟฐใๆฏๆไธญๆๅ่ฑๆๅๅธๅใ
Inputs: city (required), days.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
TDQS
Scored across 3 tools
Each tool targets a distinct weather aspect: air quality, current weather, and forecast. There is no overlap in purpose.
All tools follow the consistent 'get_' prefix with a noun describing the data type: get_air_quality, get_current_weather, get_forecast.
Three tools is a compact and appropriate number for a weather MCP server, covering the essential weather data endpoints without excess.
Covers the core weather needs (current, forecast, air quality). Missing historical data or severe weather alerts, but these are reasonable omissions for a basic weather server.
Maintenance
Related MCP Connectors
Current weather and forecast lookup as an agent tool.
Weather, code search, currency & Solana trust scoring as MCP tools. Free, no API key needed.
Get current weather for any city and create images from your prompts. Streamline planning, reportsโฆ
Geocoding, routing, isochrones, traffic, weather, and place search for AI agents. 19 MCP tools.
Related MCP Servers
- FlicenseBqualityDmaintenanceEnables AI agents to retrieve real-time weather conditions and forecasts via OpenWeatherMap API. Supports interactive weather queries and travel planning through MCP tools, resources, and prompts.2-
- AlicenseNot gradedqualityDmaintenanceProvides weather data from OpenWeatherMap API through MCP tools and a REST API with OpenAPI support. Enables LLM agents to retrieve current weather, forecasts, and temperature ranges by city or coordinates.13 npmMIT
- AlicenseNot gradedqualityCmaintenanceProvides weather data from WeatherAPI.com through MCP, enabling AI agents to query current conditions and forecasts via natural language.146 npmMIT
- FlicenseBqualityDmaintenanceProvides real-time weather information for cities worldwide using the OpenWeatherMap API, accessible through natural language queries via the MCP protocol.1-