Weather MCP
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 MCPWhat's the weather in London?"
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
A simple and easy-to-use weather query MCP tool, supporting both CLI and MCP Server usage modes.
Features
š¤ļø Real-time Weather Query - Get current weather for any city worldwide
š§ CLI Support - Query weather directly from the command line
š¤ MCP Protocol - Supports AI clients like Claude and Cursor
š Global Coverage - Supports city names in multiple languages including Chinese and English
ā” Free API - Uses the free Open-Meteo weather service, no API Key required
š Type Safe - Full TypeScript + Zod type support
Related MCP server: Weather MCP Server
Installation
Method 1: Global npm installation (Recommended)
npm install -g weather-mcpMethod 2: Use directly with npx
npx weather-mcp weather åäŗ¬Method 3: Source installation
git clone https://github.com/tengzhijian/weather-mcp.git
cd weather-mcp
npm install
npm run buildCLI Usage
# ę„询天ę°
weather-mcp weather åäŗ¬
weather-mcp weather Shanghai
# ę„ēåø®å©
weather-mcp --help
weather-mcp --versionExample Output
{
"ok": true,
"data": {
"city": "åäŗ¬ (äøå½)",
"temperature": 22,
"humidity": 70,
"description": "å¤äŗ",
"windSpeed": 9.3,
"updatedAt": "2024-01-15T08:30:00.000Z"
}
}MCP Server Configuration
Claude Desktop
Edit %APPDATA%/Claude/settings.json (Windows) or ~/Library/Application Support/Claude/settings.json (Mac):
{
"mcpServers": {
"weather": {
"command": "npx",
"args": ["-y", "weather-mcp", "--mcp"]
}
}
}Cursor
Add in Cursor Settings ā MCP:
{
"mcpServers": {
"weather": {
"command": "npx",
"args": ["-y", "weather-mcp", "--mcp"]
}
}
}Local Development Version
If you are running from source:
{
"mcpServers": {
"weather": {
"command": "node",
"args": ["/path/to/weather-mcp/dist/index.js", "--mcp"]
}
}
}Available Tools
getWeather
Query weather information for a specified city.
Parameters:
city(string, required): City name, e.g., Beijing, Shanghai, Guangzhou, London, Tokyo
Returns:
city: City name (including country)temperature: Temperature (Celsius)humidity: Humidity (percentage)description: Weather description (sunny, cloudy, etc.)windSpeed: Wind speed (km/h)updatedAt: Data update time
listSupportedCities
Get a list of example cities supported for queries.
Returns:
cities: List of common city examplesnote: Note (actually supports any city worldwide)
AI Client Usage Examples
After configuration, you can ask directly in clients like Claude or Cursor:
"What is the weather in Beijing today?" "Will it rain in Shanghai tomorrow?" "Check the weather in New York"
The AI will automatically call the getWeather tool to retrieve weather information.
Development
# å®č£
ä¾čµ
npm install
# å¼å樔å¼
npm run dev weather åäŗ¬
# čæč”ęµčÆ
npm test
# ē±»åę£ę„
npm run typecheck
# ę建
npm run buildTech Stack
TypeScript - Type-safe JavaScript
MCP SDK - Model Context Protocol
Commander.js - CLI framework
Zod - Schema validation
Vitest - Testing framework
Open-Meteo - Free weather API
Project Structure
weather-mcp/
āāā src/
ā āāā index.ts # å
„å£ęä»¶
ā āāā cli.ts # CLI å½ä»¤
ā āāā mcp-server.ts # MCP Server
ā āāā weather-gateway.ts # å¤©ę° API å°č£
ā āāā version.ts # ēę¬å·
āāā tests/ # ęµčÆęä»¶
āāā .github/workflows/ # GitHub Actions
āāā package.json
āāā tsconfig.json
āāā README.mdCI/CD
The project uses GitHub Actions for automation:
CI: Automatically runs tests on every PR and Push (Node.js 18/20/22)
Release: Manually triggered release to npm
License
Acknowledgments
Weather data provided by Open-Meteo free API
Follows the Model Context Protocol specification
This server cannot be installed
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 Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides real-time weather data, hourly forecasts, and daily summaries using the free Open-Meteo API with no API key required. It enables users to search for weather conditions by specific coordinates or city names across multiple measurement units.1MIT
- FlicenseNot gradedqualityDmaintenanceA production-ready MCP server that provides real-time weather information, forecasts, and alerts to LLM clients using the Open-Meteo API, with support for 26+ global cities, dual transport (STDIO/HTTP), and Docker deployment.
- AlicenseNot gradedqualityCmaintenanceA no-API-key-required MCP server that wraps Open-Meteo APIs to provide geocoding and weather forecast data, enabling city lookups and multi-day forecasts through tools, resources, and prompts.MIT
- FlicenseNot gradedqualityBmaintenanceA minimal MCP server that provides current weather and forecasts for any city using the free Open-Meteo API, no API key required.11
Related MCP Connectors
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
MCP server for AI dialogue using various LLM models via AceDataCloud
MCP server for GLM chat completions using Zhipu AI models via AceDataCloud
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/tengzhijian/weather-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server