Open-Meteo MCP
# @stella2211/open-meteo-mcp
Privacy-focused Open-Meteo MCP server for weather forecasts.
English | [日本語](README_ja.md)
## Overview
Most AI services provided by major providers use conversation content for training. Entering your home's latitude and longitude into these services raises privacy concerns.
However, for convenience, we want to be able to instruct AI with commands like "Tell me the weather forecast for my home."
This MCP server is designed to minimize the AI's exposure to location coordinates, thereby reducing privacy risks.
## Features
- Get 7-day weather forecasts from Open-Meteo API
- Search locations by city name (geocoding built-in)
- Store location coordinates locally (not exposed to AI)
- AI only sees location names, never coordinates
- Cross-platform support (Windows, macOS, Linux)
## Installation
Run directly from GitHub using npx or bunx:
```bash
# Using npx
npx github:Stella2211/open-meteo-mcp
# Using bunx
bunx github:Stella2211/open-meteo-mcp
```
## Claude Desktop Configuration
Add to your Claude Desktop config file:
**macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
**Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
```json
{
"mcpServers": {
"open-meteo": {
"command": "npx",
"args": ["-y", "github:Stella2211/open-meteo-mcp"]
}
}
}
```
> **Note**: The `-y` flag automatically confirms the installation prompt.
## Tools
### add_location_by_search (Recommended)
Add a new location by searching for a city or place name. Coordinates are resolved internally and never exposed to the AI.
```
Example: Add "Home" by searching for "Tokyo"
```
### add_location
Add a new location with exact latitude and longitude. Use only when you have specific coordinates.
### delete_location
Delete a saved location by name.
### list_locations
List all saved location names (coordinates are hidden for privacy).
### get_forecast
Get 7-day weather forecast for a saved location by name.
## Privacy Design
This MCP server is designed to minimize AI exposure to location coordinates:
1. **Adding locations**: Use `add_location_by_search` to search by city name. The server internally resolves coordinates via Open-Meteo Geocoding API and stores them locally.
2. **Listing locations**: Only location names are returned, never coordinates.
3. **Getting forecasts**: The server retrieves coordinates from local storage internally.
The AI only sees coordinates if you explicitly use `add_location` with latitude/longitude.
## Data Storage
Location data is stored in:
- **macOS/Linux**: `~/.config/stella2211-open-meteo-mcp/locations.json`
- **Windows**: `%USERPROFILE%\.config\stella2211-open-meteo-mcp\locations.json`
## Development
```bash
# Install dependencies
npm install
# Build
npm run build
# Run locally
npm start
```
## License
MIT
TDQS
Scored across 5 tools
list_locations, delete_location, and get_forecast are clearly distinct. The only real overlap is add_location vs add_location_by_search, but the descriptions explicitly direct agents to prefer the search variant, which mitigates most confusion although it leaves add_location as a rarely-correct edge case.
All five tools follow a consistent verb_noun snake_case pattern (add_, delete_, list_, get_), with the only variation being the clarifying '_by_search' suffix on add_location_by_search, which is still readable and predictable.
Five tools is a tight, well-scoped set for a saved-location weather service, with no redundant tools. It sits at the low end of the ideal range and could reasonably accommodate one or two more query tools.
Location CRUD is covered except for an update/rename operation, and forecast retrieval is limited to a single 7-day call with no current conditions or hourly data. Agents can still accomplish the core workflow, but the surface is notably thin for a weather domain.