Skip to main content
Glama
vijaypss

weather-mcp

by vijaypss

Weather API + UI + MCP Server

This project includes:

  • UI: enter a city name and get current weather

  • HTTP API: GET /api/weather?city=...

  • Summary API: GET /api/summary?city=... (optional Claude; falls back to local summary)

  • MCP server: tool get_weather over stdio

Weather data uses Open‑Meteo (free, no API key).

Run the UI + API

npm install
npm run dev

Open http://localhost:5175.

Optional: “Claude API” summary

Claude is not truly free; you’ll need an API key. This project supports either:

  • ANTHROPIC_API_KEY (direct Anthropic API), or

  • OPENROUTER_API_KEY (OpenRouter, using an Anthropic Claude model via OPENROUTER_MODEL)

If no key is set, /api/summary and the UI “Summarize” button will fall back to a local summary.

Run the MCP server (stdio)

npm install
npm run mcp

Then configure your MCP client to launch:

  • command: npm

  • args: ["run","mcp"]

  • cwd: this folder

Tool name:

  • get_weather with input { "city": "Pune" }

"# MCP_example"

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides current weather information for any city worldwide using the free Open-Meteo API, enabling users to query temperature, wind speed, humidity, and weather conditions through natural language.
    5 npm
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    Provides weather information using Open-Meteo API without requiring an API key. Supports weather queries by city name or coordinates with customizable temperature units.
    -