Skip to main content
Glama

# mcp-weather

Worldwide weather MCP server. It turns a place name into coordinates, then returns current conditions over stdio for MCP clients such as Cursor.

Repository: github.com/deep3036/mcp-weather

What it does

The server registers one tools:

Tools

Input

Output

get-current-weather

location (city or place name, min 2 characters)

Current temperature, feels like, humidity, precipitation, wind, condition, day/night, timezone, and coordinates

Examples of location: Delhi, Greater Noida, Mumbai, London.

Geocoding uses Open-Meteo Geocoding. Forecast data uses Open-Meteo Forecast. Neither API requires a key for this usage.

If several places match a name, the first geocoding result is used.

Related MCP server: Weather MCP

Requirements

  • Node.js 20 or later

  • npm

Setup

npm install

Run

Development (TypeScript via tsx):

npm run dev

Production:

npm run build
npm start

This process speaks MCP over stdin/stdout. Logs go to stderr. Do not run it as a normal web app.

Cursor MCP config

Point the client at this project directory:

{
  "mcpServers": {
    "weather": {
      "command": "npx",
      "args": ["tsx", "src/index.ts"],
      "cwd": "D:\\mcp\\weather-mcp"
    }
  }
}

After a build you can use node and dist/index.js instead of tsx.

Project layout

Path

Role

src/index.ts

MCP server, tool, and Open-Meteo calls

tsconfig.json

TypeScript (ES2022, NodeNext, src to dist)

package.json

Scripts: dev, build, start

License

ISC

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables users to get current weather information for any city using the Open-Meteo API. Provides detailed meteorological data including temperature, precipitation, day/night status, and hourly forecasts through natural language queries.
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables users to get real-time weather information for any city in the world. Provides current temperature and weather conditions through a simple city name query.
    MIT
  • 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.
    7 npm
    MIT