weather-mcp-server
Click on "Install 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-serverWhat'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ใ
| Name | Required | Description | Default |
|---|---|---|---|
| city | Yes | ๅๅธๅ็งฐ๏ผๆฏๆไธญๆๅ่ฑๆใไพๅฆ๏ผๅไบฌใShanghaiใTokyo |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations provided, so description partially compensates by noting no API key required and listing pollutants. However, it omits other behaviors like rate limits, data freshness, error handling, or return format.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two concise sentences in Chinese that front-load the main purpose. No filler or redundancy; every sentence adds useful information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a single-parameter tool with no output schema, the description adequately states what is returned (AQI and specific pollutants) but lacks details on the response structure or data format, leaving some uncertainty.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema covers 100% of the city parameter with description. The description adds value by specifying language support (Chinese/English) and providing examples (e.g., Beijing, Shanghai, Tokyo), going beyond basic schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Description clearly states the tool queries air quality index (AQI) for a city, listing major pollutants (PM2.5, PM10, etc.). It is specific and distinct from sibling tools (weather, forecast), making the purpose unambiguous.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance on when to use this tool vs siblings (e.g., get_current_weather, get_forecast). It mentions support for Chinese/English names and no API key, but lacks explicit when/when-not context.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_current_weather่ทๅๅฝๅๅคฉๆฐA
ๆฅ่ฏขไธไธชๅๅธ็ๅฎๆถๅคฉๆฐ๏ผๅ ๆฌๆธฉๅบฆใไฝๆๆธฉๅบฆใๅคฉๆฐๆ่ฟฐใ้ฃ้ใๆนฟๅบฆใ่ฝ่งๅบฆใ็ดซๅค็บฟๆๆฐใๆฐๅใๆฏๆไธญๆๅๅธๅ๏ผๅฆ 'ๅไบฌ'๏ผๅ่ฑๆๅๅธๅ๏ผๅฆ 'Tokyo'๏ผใไธ้่ฆ API Keyใ
| Name | Required | Description | Default |
|---|---|---|---|
| city | Yes | ๅๅธๅ็งฐ๏ผๆฏๆไธญๆๅ่ฑๆใไพๅฆ๏ผๅไบฌใShanghaiใTokyoใLondonใNew York |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden. It discloses the output fields (temperature, wind, humidity, etc.) and that no API key is needed. It does not explicitly state it is read-only, but the nature of a weather query implies it.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two sentences, front-loaded with purpose and data points, followed by constraints. No wasted words; highly efficient.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple tool with one parameter and no output schema, the description is complete: it lists all returned data fields, supports both languages, and confirms no API key. No significant gaps.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so the parameter is fully described in the schema. The description adds examples of city names and language support, but these are nearly identical to the schema's description. Thus, minimal added value beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Description clearly states the tool queries real-time weather for a city, listing specific data points (temperature, wind, humidity, etc.). It distinguishes from sibling tools (get_air_quality, get_forecast) by focusing on current weather and specific metrics.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies use for current weather queries, supports both Chinese and English city names, and mentions no API key needed. However, it does not explicitly state when to use this tool over alternatives like get_forecast or get_air_quality, relying on context from sibling names.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_forecast่ทๅๅคฉๆฐ้ขๆฅA
ๆฅ่ฏขไธไธชๅๅธๆชๆฅๅ ๅคฉ็ๅคฉๆฐ้ขๆฅ๏ผๅ ๆฌๆฏๆฅๆ้ซ/ๆไฝๆธฉๅบฆๅๅคฉๆฐๆ่ฟฐใๆฏๆไธญๆๅ่ฑๆๅๅธๅใ
| Name | Required | Description | Default |
|---|---|---|---|
| city | Yes | ๅๅธๅ็งฐ๏ผๆฏๆไธญๆๅ่ฑๆ | |
| days | No | ้ขๆฅๅคฉๆฐ๏ผ1-3๏ผ๏ผ้ป่ฎคไธบ 3 |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description must convey behavioral traits. It explains output includes highs/lows and weather description but omits details like input validation (e.g., invalid city handling), rate limits, authorization requirements, or whether it is a read-only operation. This is insufficient for a tool without annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two sentences long, front-loaded with the core purpose, and contains no redundant information. Every sentence is functional and contributes to understanding.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's simplicity and full schema coverage, the description covers the main functionality. However, it lacks details on return format (e.g., temperature units, structure) and error handling for invalid cities. This is adequate but not comprehensive.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so the schema already documents both parameters. The description adds value by noting that city names can be in Chinese or English, but does not elaborate on the 'days' parameter beyond what the schema provides (range 1-3, default 3). Baseline 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: querying a city's weather forecast for the next few days, including daily high/low temperatures and weather description. It also notes support for Chinese and English city names, distinguishing it from sibling tools like get_current_weather.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description does not explicitly provide guidance on when to use this tool versus alternatives (get_air_quality, get_current_weather). Usage context is implied by the name and description but lacks explicit differentiation or exclusion criteria.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
TDQS
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
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
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โฆ
MCP server for weather with reasoning โ umbrella advice, outdoor checks, city comparisons.
Pay-per-use tool marketplace for AI agents. Search, price-check, and call APIs via MCP.
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.21MIT
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to retrieve live weather updates for any city via OpenWeatherMap, wrapped in MCP format.1
- AlicenseNot gradedqualityCmaintenanceProvides weather data from WeatherAPI.com through MCP, enabling AI agents to query current conditions and forecasts via natural language.16MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/liuweihongliuxinyu/weather-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server