
mcp server weather
一个通过 Open-Meteo API 获取全球任意地点实时天气和预报的 MCP 服务器。
Repository Info
About This Server
一个通过 Open-Meteo API 获取全球任意地点实时天气和预报的 MCP 服务器。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Weather MCP Server Powered by the Open-Meteo API
This MCP server interfaces with the Open-Meteo API and offers tools to fetch current weather conditions and weather forecasts for any location worldwide.
Requirements
- Claude.ai account (MCP support is available for all account types)
- Claude Desktop app, available for macOS and Windows
- uv:
- macOS via Homebrew:
brew install uv- Windows via WinGet:
winget install --id=astral-sh.uv -e - A code editor like Visual Studio Code
Installation
uv run
Development
-
Start the virtual environment
source .venv/bin/activateNOTE: To stop the virtual environment:
deactivate -
Run MCP server in dev mode with the MCP Inspector:
mcp dev server.py
Run MCP server in Claude Desktop
-
Open
claude_desktop_config.jsin an editor:File location:
- MacOS / Linux
~/Library/Application/Support/Claude/claude_desktop_config.json - Windows
AppData\Claude\claude_desktop_config.json
- MacOS / Linux
-
Find the full path to
uv:- MacOS / Linux:
which uv- Windows:
where uv -
In
claude_desktop_config.js{ "mcpServers": { "weather": { "command": "/absolute/path/to/uv", "args": [ "run", "--with", "mcp[cli]", "mcp", "run", "/absolute/path/to/open-meteo-weather/server.py" ] } } } -
Reboot Claude Desktop and use a prompt that will trigger your MCP.
Usage
In Claude Desktop:
- request current weather information for a specified location
- request a weather forecast for a specified location and time
- ask if it's going to rain tomorrow
- ask if you need to put on sunscreen if you're going for a walk later
Quick Start
Clone the repository
git clone https://github.com/prateekch/mcp-server-weatherInstall dependencies
cd mcp-server-weather
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.