home / mcp / weather mcp server

Weather MCP Server

mcp-server-weather

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "bobby169-mcp-server-weather": {
      "command": "node",
      "args": [
        "/ABSOLUTE/PATH/TO/YOUR/PROJECT/mcptest/build/index.js"
      ]
    }
  }
}

Weather MCP Server provides weather information through a lightweight MCP interface. It lets you fetch the current forecast for any latitude/longitude and retrieve active weather alerts for US states, enabling you to build weather-aware applications and integrations quickly.

How to use

To use this server with an MCP client, first ensure the server is built and reachable by the client. You will run the built server locally and point your MCP client to the provided runtime entry so it can communicate and request weather data.

How to install

Prerequisites you need on your machine:

  • Node.js (16.x or newer)
  • pnpm (preferred package manager)

Step by step commands to set up the server locally:

pnpm install
pnpm run build

Available tools

forecast

Returns the current weather forecast for a given latitude and longitude.

alerts

Returns active weather alerts for a US state.