Skip to main content
Glama
gorlomi-enzo

Weather MCP Server

by gorlomi-enzo
README.md
# 🌤️ Weather MCP Server

A Model Context Protocol (MCP) server that provides global weather data — current conditions, forecasts, and air quality.

**No API key needed.** Uses the free [Open-Meteo API](https://open-meteo.com/).

## Deploy

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/gorlomi-enzo/mcp-template-weather)

Or deploy via [MCPHosting](https://mcphosting.com/popular):

```bash
mcphosting install weather
```

## Tools

| Tool | Description |
|------|-------------|
| `get_current_weather` | Get current temperature, humidity, wind, and conditions |
| `get_forecast` | Get 7-day forecast with highs, lows, and precipitation |
| `get_air_quality` | Get PM2.5, PM10, ozone, and AQI |
| `get_hourly_forecast` | Get hour-by-hour forecast for the next 24 hours |
| `convert_timezone` | Convert time between timezones |

## Usage

```json
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "name": "get_current_weather",
    "arguments": { "city": "Berlin" }
  },
  "id": 1
}
```

## Local Development

```bash
npm install
npm run dev
```

Server runs on `http://localhost:3000/mcp`.

## License

MIT