weather-mcp-server
Provides weather forecasts and geocoding lookup using free Open-Meteo APIs, enabling LLMs to query real-time weather and multi-day forecasts for any location.
README
Weather MCP Server
A Model Context Protocol (MCP) server that provides weather forecasts and geocoding lookup using the free, keyless Open-Meteo APIs. This server enables LLMs (like Claude, Gemini, and GPT) to query real-time weather information and multi-day forecasts for any city or location in the world.
Features
- Get Current Weather: Detailed current conditions including condition description, temperature, apparent temperature (feels like), humidity, wind speed, and precipitation details.
- Multi-day Weather Forecast: Standard 1-7 day forecast with conditions, daily min/max temperatures, and total expected precipitation.
- Keyless & Free: Powered by the open-source Open-Meteo APIs, requiring no API keys or subscription signups.
- Fuzzy Geocoding: Automatically resolves location names (e.g., "Paris", "New York", "London") to geographic coordinates and timezones.
Installation & Usage
You can run this server directly from npm using npx, or install it globally.
Method 1: Using npx (Recommended)
To run the server without installation:
npx -y weather-mcp-server
Method 2: Global Installation
Install the package globally:
npm install -g weather-mcp-server
Then run it:
weather-mcp-server
Configuration for MCP Clients
1. Claude Desktop
To add the Weather MCP Server to Claude Desktop, edit your claude_desktop_config.json file.
- Windows path:
%APPDATA%\Claude\claude_desktop_config.json - macOS path:
~/Library/Application Support/Claude/claude_desktop_config.json
Add the server to the mcpServers list:
{
"mcpServers": {
"weather": {
"command": "npx",
"args": [
"-y",
"weather-mcp-server"
]
}
}
}
2. Cursor
Cursor supports custom MCP servers directly from the GUI:
- Open Cursor Settings (
Ctrl + ,orCmd + ,). - Go to Features -> MCP.
- Click + Add New MCP Server.
- Fill in:
- Name:
Weather - Type:
command - Command:
npx -y weather-mcp-server
- Name:
- Click Save.
Tool Documentation
This server exposes a single tool called get_weather.
get_weather
Gets the current weather and daily forecast for a given location.
Arguments:
location(string, required): The city, region, or location name (e.g."Tokyo","Paris","Chicago, IL").days(number, optional, default:3): Number of forecast days to return (integer between1and7).
Example Request:
{
"name": "get_weather",
"arguments": {
"location": "Paris",
"days": 3
}
}
Development & Building
If you want to run the server locally from the source code, follow these steps:
- Clone or download the repository.
- Install dependencies:
npm install - Build the TypeScript code:
npm run build - Run locally:
npm start
To link and test the local version in Claude Desktop, point the configuration directly to the local path:
{
"mcpServers": {
"weather-local": {
"command": "node",
"args": [
"C:/path/to/your/project/dist/index.js"
]
}
}
}
License
ISC License. Feel free to use and adapt this server.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。