drio
Open app

Weather MCP Server

Source

MCP server to get the US city weather

Catalog onlyCatalog onlySTDIO

Overview

Weather MCP Server is a weather information service built using the Model-Completion-Protocol (MCP) framework, providing weather forecasts for any city by leveraging the National Weather Service (NWS) API.

To use the Weather MCP Server, install the MCP package and run the server locally or configure it with Claude Desktop to fetch weather data.

  • Geocoding city names to latitude/longitude coordinates - Fetching weather data from the National Weather Service API - Detailed weather forecasts including temperature, conditions, and wind information - Modular design with separate tools for each step of the process
  1. Getting current weather conditions for any US city.
  2. Fetching detailed weather forecasts for planning events.
  3. Integrating weather data into applications using the MCP framework.

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": {
    "mcp-us-city-weather-yogi-miraje": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-us-city-weather-yogi-miraje"
      ]
    }
  }
}

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": {
    "mcp-us-city-weather-yogi-miraje": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-us-city-weather-yogi-miraje"
      ]
    }
  }
}

Claude Code

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

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-us-city-weather-yogi-miraje": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-us-city-weather-yogi-miraje"
      ]
    }
  }
}

VS Code (Copilot)

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

.vscode/mcp.json

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

Windsurf

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

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-us-city-weather-yogi-miraje": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-us-city-weather-yogi-miraje"
      ]
    }
  }
}

Cline

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

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-us-city-weather-yogi-miraje": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-us-city-weather-yogi-miraje"
      ]
    }
  }
}

FAQ

Can I get weather information for any US city?

Yes! The server can provide weather data for any city in the United States.

Is there a cost to use the Weather MCP Server?

The server is free to use under the Creative Commons Attribution-NonCommercial 4.0 International License.

How do I install the Weather MCP Server?

You can install it using `uv` or `pip` commands as mentioned in the documentation.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2678,"uuid":"52521aa7-d05e-4f46-bef2-a4d7898a0cbd","name":"mcp-us-city-weather","title":"Weather MCP Server","description":"MCP server to get the US city weather","avatar_url":"https://avatars.githubusercontent.com/u/75494526?v=4","created_at":"2025-03-13T09:35:06.507Z","updated_at":"2025-03-13T09:39:19.031Z","status":"created","author_name":"yogi-miraje","author_avatar_url":"https://avatars.githubusercontent.com/u/75494526?v=4","tags":"weather,mcp,weather-api","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/yogi-miraje/mcp-us-city-weather","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"View license\",\"language\":\"Python\",\"is_official\":false,\"latest_commit_time\":\"2025-03-09 11:37:07\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]