claude-MCP-server

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

  1. Install dependencies:
uv venv
.\.venv\Scripts\activate
  1. 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)]

Image

Image

Image

🛠 Troubleshooting

IssueSolution
Connection failedVerify Claude's config path is absolute
No weather dataCheck NWS API status at api.weather.gov
Module errorsRun uv add mcp[cli] httpx