Provides hourly and daily weather forecasts from the AccuWeather API.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add accuweather --env ACCUWEATHER_API_KEY='<ACCUWEATHER_API_KEY>' -- npx -y @timlukahorstmann/mcp-weather~/.codex/config.toml
[mcp_servers.accuweather]
command = "npx"
args = ["-y", "@timlukahorstmann/mcp-weather"]
env = { ACCUWEATHER_API_KEY = "<ACCUWEATHER_API_KEY>" }
# codex mcp add accuweather --env ACCUWEATHER_API_KEY='<ACCUWEATHER_API_KEY>' -- npx -y @timlukahorstmann/mcp-weather~/.cursor/mcp.json
{
"mcpServers": {
"accuweather": {
"command": "npx",
"args": [
"-y",
"@timlukahorstmann/mcp-weather"
],
"env": {
"ACCUWEATHER_API_KEY": "<ACCUWEATHER_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"accuweather": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@timlukahorstmann/mcp-weather"
],
"env": {
"ACCUWEATHER_API_KEY": "<ACCUWEATHER_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"accuweather": {
"command": "npx",
"args": [
"-y",
"@timlukahorstmann/mcp-weather"
],
"env": {
"ACCUWEATHER_API_KEY": "<ACCUWEATHER_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"accuweather": {
"command": "npx",
"args": [
"-y",
"@timlukahorstmann/mcp-weather"
],
"env": {
"ACCUWEATHER_API_KEY": "<ACCUWEATHER_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"accuweather": {
"command": "npx",
"args": [
"-y",
"@timlukahorstmann/mcp-weather"
],
"env": {
"ACCUWEATHER_API_KEY": "<ACCUWEATHER_API_KEY>"
}
}
}
}Environment variables
ACCUWEATHER_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.