claude-MCP-server
0
The MCP Weather Server is designed to integrate real-time weather data into Claude for Desktop using the Model Context Protocol. It provides weather alerts and forecasts, ensuring seamless data flow and easy integration with desktop applications.
🌦️ MCP Weather Server
A reliable MCP server providing real-time weather data integration with Claude for Desktop.
✨ Features
- Real-time NWS weather alerts by state
- 7-day forecasts by coordinates
- Lightweight MCP protocol implementation
- Claude for Desktop integration
🚀 Getting Started
Prerequisites
- Python 3.10+
- UV package manager
- Claude for Desktop
Installation
- Install dependencies:
uv venv
.\.venv\Scripts\activate
- Create
weather.py
:
🔌 Claude Integration
Add to claude_desktop_config.json
:
{
"mcpServers": {
"weather": {
"command": "python",
"args": ["weather.py"],
"cwd": "/absolute/path/to/project"
}
}
}
📊 Example Usage
User: What's the weather in San Francisco?
Claude: [Uses get_forecast(37.7749, -122.4194)]
🛠 Troubleshooting
Issue | Solution |
---|---|
Connection failed | Verify Claude's config path is absolute |
No weather data | Check NWS API status at api.weather.gov |
Module errors | Run uv add mcp[cli] httpx |