MCP server providing weather data via OpenWeatherMap API.
go build -o weather ./cmd/weather
Copy .env.example to .env and set your API key:
cp .env.example .env
# Edit .env with your OPENWEATHER_API_KEY
./weather
Add to your MCP client config:
{
"mcpServers": {
"weather": {
"command": "./weather",
"args": [],
"env": {}
}
}
}
{
"mcpServers": {
"weather": {
"type": "local",
"enabled": false,
"command": [
"/[absolute_path]/weather_mcp/weather"
],
"environment": {
"PATH": "/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/sbin",
"HOME": "/Users/[username]",
"USER": "[username]"
},
}
}
}
get_forecast — 5-day weather forecast for coordinatesget_current_weather — Current weather for coordinates7 commits
Go
100.0%
MCP server providing weather data via OpenWeatherMap API.
go build -o weather ./cmd/weather
Copy .env.example to .env and set your API key:
cp .env.example .env
# Edit .env with your OPENWEATHER_API_KEY
./weather
Add to your MCP client config:
{
"mcpServers": {
"weather": {
"command": "./weather",
"args": [],
"env": {}
}
}
}
{
"mcpServers": {
"weather": {
"type": "local",
"enabled": false,
"command": [
"/[absolute_path]/weather_mcp/weather"
],
"environment": {
"PATH": "/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/sbin",
"HOME": "/Users/[username]",
"USER": "[username]"
},
}
}
}
get_forecast — 5-day weather forecast for coordinatesget_current_weather — Current weather for coordinates7 commits
Go
100.0%