weather-mcp-server

weather-mcp-server

0

The MCP Weather Server is a basic implementation of a Model Context Protocol server in TypeScript, designed to provide weather forecasts and alerts by querying data from a weather API based on geographic input.

MCP Weather Server

  • A basic implementation of the quick start MCP server using typescript. The implementation includes two tools. Data is queried from https://api.weather.gov

Setup With Claude Desktop

  • Navigate to Claude desktop's AppData, and create a claude_desktop_config.json if it is not present.

    Windows Path: C:/users/<Username>/AppData/Roaming/Claude

    {
      "mcpServers": {
        "weather": {
          "command": "node",
          "args": ["<Drive>:\\PATH\\TO\\PROJECT\\build\\index.js"]
        }
      }
    }
    

Troubleshooting

Capabilities

  • Tools

    • get-forecast
      • gets a weekly weather forecast for a latitude and longitude. (obtained by the client using prompted area in the US)
    • get-alerts
      • gets any current alerts for a state code, tokenized by the client.