Weather MCP Server

A robust Weather MCP Server in TypeScript

Local serverstdioTypeScript

What is the Weather MCP server?

Weather MCP server is a locally run integration for AI assistants that speak the Model Context Protocol. A robust Weather MCP Server in TypeScript.

What you get

Este projeto implementa um pipeline CI/CD completo com GitHub Actions:

Setting it up

Installation goes through your MCP client rather than a global install: point it at npm on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

What the assistant can call

Once Weather is connected, these are the calls the assistant has available:

  • get_current_weather — Clima atual de qualquer cidade
  • get_weather_forecast — Previsão 5 dias
  • get_weather_history — Histórico de consultas
  • get_cache_statistics — Estatísticas do sistema

Configuration and credentials

You will need 5 environment variables: WEATHER_API_KEY, DATABASE_URL, REDIS_URL, LOG_LEVEL, MCP_MODE. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Before you rely on it

  • 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.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the weather mcp server does with a few real requests.

Choosing this one

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. Weather's toolset — get_current_weather, get_weather_forecast, get_weather_history and 1 more — is a fair guide to whether it matches your workflow. It is maintained by skydeckai; worth a glance at recent repository activity before you build anything load-bearing on it.

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

Available tools

ToolWhat it does
get_current_weatherClima atual de qualquer cidade
get_weather_forecastPrevisão 5 dias
get_weather_historyHistórico de consultas
get_cache_statisticsEstatísticas do sistema

How to install the Weather MCP server

{
  "mcpServers": {
    "weather-2": {
      "command": "npx",
      "args": ["-y", "npm"],
      "env": {
        "WEATHER_API_KEY": "your-value",
        "DATABASE_URL": "your-value",
        "REDIS_URL": "your-value",
        "LOG_LEVEL": "your-value",
        "MCP_MODE": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
WEATHER_API_KEYCredential the server authenticates with.Yes
DATABASE_URLEndpoint or connection string the server talks to.Yes
REDIS_URLEndpoint or connection string the server talks to.Yes
LOG_LEVELConfiguration value read at startup.Optional
MCP_MODEConfiguration value read at startup.Optional

Example prompts to try

  • Use Weather to get current weather.
  • Use Weather to get weather forecast.
  • Use Weather to get weather history.

Frequently asked questions

It connects Weather to MCP-compatible AI assistants such as Claude and Cursor, exposing 4 tools (get_current_weather, get_weather_forecast, get_weather_history, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Weather directly.