Weather MCP Server
# Weather MCP Server
An MCP (Model Context Protocol) server that provides weather tools for AI assistants, built with [xmcp](https://xmcp.dev).
## Features
### Tools
- **get-current-weather** - Get current weather conditions for any city (temperature, humidity, wind speed)
- **get-forecast** - Get weather forecast for 1-7 upcoming days
- **compare-weather** - Compare weather between two cities
### Resources
- `weather://{city}/current` - Current weather data as a resource
### Prompts
- **weather-summary** - Generate weather summary prompts
## Installation
```bash
npm install
```
## Usage
### Development
```bash
npm run dev
```
### Production
```bash
npm run build
npm run start
```
### Inspect with MCP Inspector
```bash
npm run inspect
```
## Configuration
Add to your MCP client configuration:
```json
{
"mcpServers": {
"weather": {
"command": "node",
"args": ["/path/to/weather-mcp/dist/stdio.js"]
}
}
}
```
## API
This server uses the free [Open-Meteo API](https://open-meteo.com/) for weather data. No API key required.
## Tech Stack
- [xmcp](https://xmcp.dev) - MCP framework
- [Zod](https://zod.dev) - Schema validation
- [Open-Meteo API](https://open-meteo.com/) - Weather data
## License
MIT
TDQS
Scored across 4 tools
get-current-weather and get-forecast target clearly different time ranges, and greet is obviously unrelated to weather retrieval. compare-weather overlaps somewhat with get-current-weather since it is essentially two current-weather lookups bundled together, but the multi-city framing keeps it distinguishable.
All names use consistent kebab-case, and three of four follow a verb_noun pattern (get-current-weather, get-forecast, compare-weather). The lone bare verb 'greet' is a minor deviation but still readable and in the same casing style.
Four tools is a reasonable, tightly scoped surface for a weather server covering current, forecast, and comparison. The only bloat is 'greet', which does not earn its place in a weather domain.
Core retrieval is covered (current, forecast, comparison), but there are notable gaps: no historical weather, no severe-weather alerts, no location search/geocoding, and no unit or coordinate handling. Agents can work around some of this via city names, but the surface stops short of full lifecycle coverage.