MCP Openweathermap MCP Server

MCP server for OpenWeatherMap API integration

Local serverstdio

What is the MCP Openweathermap MCP server?

Connect MCP Openweathermap to Claude, Cursor or any other MCP client and it stops being a tab you switch to. MCP server for OpenWeatherMap API integration. The mcp openweathermap mcp server is what makes that connection.

What the server does

A Model Context Protocol (MCP) server that provides comprehensive weather data and forecasts through the OpenWeatherMap API. This server enables AI assistants to access real-time weather information, forecasts, air quality data, and location services.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • OPENWEATHER_API_KEY — Your OpenWeatherMap API key (required for stdio transport only)
  • PORT — Server port for HTTP transport (default: 3000)
  • MCP_TRANSPORT — Transport type: stdio or httpStream (default: stdio)
  • MCP_ENDPOINT — HTTP endpoint path (default: /stream)
  • Prerequisites — The Prerequisites tool exposed by this server
  • Setup — 1. Clone the repository: bash git clone https://github.com/robertn702/mcp-openweathermap.git cd mcp-openweathermap
  • Build — The Build tool exposed by this server

Installation

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

Credentials and setup notes

Configuration is passed through the environment: OPENWEATHER_API_KEY. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Where it fits

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. MCP Openweathermap's toolset — OPENWEATHER_API_KEY, PORT, MCP_TRANSPORT and 4 more — is a fair guide to whether it matches your workflow. It is maintained by robertn702; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against MCP Openweathermap's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
OPENWEATHER_API_KEYYour OpenWeatherMap API key (required for stdio transport only)
PORTServer port for HTTP transport (default: 3000)
MCP_TRANSPORTTransport type: stdio or httpStream (default: stdio)
MCP_ENDPOINTHTTP endpoint path (default: /stream)
PrerequisitesThe Prerequisites tool exposed by this server.
Setup1. Clone the repository: bash git clone https://github.com/robertn702/mcp-openweathermap.git cd mcp-openweathermap
BuildThe Build tool exposed by this server.

How to install the MCP Openweathermap MCP server

{
  "mcpServers": {
    "openweathermap": {
      "command": "npx",
      "args": ["mcp-openweathermap"],
      "env": {
        "OPENWEATHER_API_KEY": "your-api-key-here"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
OPENWEATHER_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use MCP Openweathermap to OPENWEATHER API KEY.
  • Use MCP Openweathermap to PORT.
  • Use MCP Openweathermap to MCP TRANSPORT.

Frequently asked questions

It connects MCP Openweathermap to MCP-compatible AI assistants such as Claude and Cursor, exposing 7 tools (OPENWEATHER_API_KEY, PORT, MCP_TRANSPORT, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with MCP Openweathermap directly.