drio
Open app

Weather MCP Server

Source

Catalog onlyCatalog onlySTDIO

Overview

Weather MCP Server is a project that implements a Model Context Protocol (MCP) server, enabling AI assistants to interact with the National Weather Service (NWS) API for real-time weather alerts and forecasts.

To use the Weather MCP Server, clone the repository, install the required dependencies, and run the main.py script. You can then interact with the server through an AI assistant like Claude to get weather-related information.

  • Retrieve active weather alerts for any US state. - Fetch weather forecasts based on latitude and longitude. - Utilizes the FastMCP framework for AI interaction.
  1. Providing real-time weather updates to users.
  2. Integrating weather data into AI applications.
  3. Enhancing AI assistants with weather-related capabilities.

Add to your AI client

Use these steps to connect Weather MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "weather-mcp-server-ankushmehta123": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-weather-mcp-server-ankushmehta123"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "weather-mcp-server-ankushmehta123": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-weather-mcp-server-ankushmehta123"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "weather-mcp-server-ankushmehta123": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-weather-mcp-server-ankushmehta123"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "weather-mcp-server-ankushmehta123": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-weather-mcp-server-ankushmehta123"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "weather-mcp-server-ankushmehta123": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-weather-mcp-server-ankushmehta123"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "weather-mcp-server-ankushmehta123": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-weather-mcp-server-ankushmehta123"
      ]
    }
  }
}

FAQ

What technologies are used in this project?

The project is built using Python, FastMCP, and httpx for asynchronous HTTP requests.

Is there a specific Python version required?

Yes, Python version 3.11.6 or higher is recommended.

How can I install the required packages?

You can install the required packages using pip with the command: `pip install -r requirements.txt`.