marcinsvr/weather-mcp-server
3.1
If you are the rightful owner of weather-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Weather MCP Server is a Node.js-based stdio server that retrieves weather data from WeatherAPI.com and provides a `get_weather` tool for MCP clients.
Tools
1
Resources
0
Prompts
0
Weather MCP Server
An MCP stdio server that fetches weather data from WeatherAPI.com and exposes a get_weather tool.
Setup
- Install Node.js 18+.
- Install dependencies.
- Set your WeatherAPI key.
Quick start
# From the repo root
npm install
Copy-Item .env.example .env
# Edit .env to set your key
notepad .env
npm start
The server runs over stdio for MCP clients (it does not open an HTTP port).
Environment
WEATHERAPI_KEY: Your API key from https://www.weatherapi.com/
Where to set the key:
- In an
.envfile at the project root (loaded via dotenv):
WEATHERAPI_KEY=your_api_key_here
- Or in your MCP client's server configuration (environment block). See example below.
Tool: get_weather
Inputs:
city(string, required) — City name only (no coordinates or postal codes).
Output:
- Raw WeatherAPI JSON (returned as a text string, unformatted).
Add this to your Claude Desktop claude_desktop_config.json under mcpServers:
{
"weather": {
"command": "node",
"args": ["d:/_Code/weather-mcp-server/dist/index.js"]
}
}
On macOS/Linux, adjust the path separators accordingly. You can also point command to an npm script if preferred.
Notes
- Requires Node 18+.
- This server communicates only via stdio as per MCP.
License
MIT