Accurate weather forecasts via the AccuWeather API (free tier available).
A Model Context Protocol (MCP) server that provides hourly and daily weather forecasts using the AccuWeather API.
You need an AccuWeather API key (free tier available).
Sign up here and create an app to get your key.
Export your API key as an environment variable:
export ACCUWEATHER_API_KEY=your_api_key_here
Then run the MCP Weather server directly with:
npx -y @timlukahorstmann/mcp-weather
Or, for HTTP/REST access via supergateway:
npx -y supergateway --stdio "npx -y @timlukahorstmann/mcp-weather" \
--port 4004 \
--baseUrl http://127.0.0.1:4004 \
--ssePath /messages \
--messagePath /message \
--cors "*" \
--env ACCUWEATHER_API_KEY="$ACCUWEATHER_API_KEY"
For integration with Claude Desktop or other MCP-compatible clients, add this to your config (e.g. claude_desktop_config.json
):
{
"mcpServers": {
"weather": {
"command": "npx",
"args": ["-y", "@timlukahorstmann/mcp-weather"],
"env": {
"ACCUWEATHER_API_KEY": "your_api_key_here"
}
}
}
}
This MCP server allows large language models (like Claude) to access real-time weather data. When integrated with an LLM, it enables the model to:
weather-get_hourly
location
(required): City or location nameunits
(optional): "metric" (Celsius, default) or "imperial" (Fahrenheit)weather-get_daily
location
(required): City or location namedays
(optional): Number of forecast days (1, 5, 10, or 15; default is 5)units
(optional): "metric" (Celsius, default) or "imperial" (Fahrenheit).env
or your shell)Clone this repository:
git clone https://github.com/TimLukaHorstmann/mcp-weather.git
cd mcp-weather
Install dependencies:
npm install
Get an AccuWeather API key:
Create a .env
file with your API key:
ACCUWEATHER_API_KEY=your_api_key_here
Build the project:
npm run build
Configure Claude Desktop to use this MCP server:
claude_desktop_config.json
:{
"mcpServers": {
"weather": {
"command": "npx",
"args": ["-y", "@timlukahorstmann/mcp-weather"],
"env": {
"ACCUWEATHER_API_KEY": "your_api_key_here"
}
}
}
}
Restart Claude Desktop
In a new conversation, enable the MCP server by clicking the plug icon and selecting "weather"
Now you can ask Claude for weather forecasts, such as:
npm install
npm run lint
npm run build
npm test
npm run dev
Contributions are welcome! Please feel free to submit a Pull Request.
We're always looking to improve the MCP Weather Server. Here are some features we're considering for future releases:
If you have ideas for other features, feel free to open an issue!
sessionId
requirement from all tools as it was not used for anything internallyThis project is licensed under the MIT License - see the LICENSE file for details.
Navigate your Aiven projects and interact with the PostgreSQL®, Apache Kafka®, ClickHouse® and OpenSearch® services
Yunxiao MCP Server provides AI assistants with the ability to interact with the Yunxiao platform.
Query Amazon Bedrock Knowledge Bases using natural language to retrieve relevant information from your data sources.
Get prescriptive CDK advice, explain CDK Nag rules, check suppressions, generate Bedrock Agent schemas, and discover AWS Solutions Constructs patterns.
Core AWS MCP server providing prompt understanding and server management capabilities.
Analyze CDK projects to identify AWS services used and get pricing information from AWS pricing webpages and API.
Query and analyze your Axiom logs, traces, and all other event data in natural language
MCP Server that connects AI agents to Chargebee platform.
Deploy, configure & interrogate your resources on the Cloudflare developer platform (e.g. Workers/KV/R2/D1)
Interact with capabilities of the CRIC Wuye AI platform, an intelligent assistant specifically for the property management industry.