MCP Weather
About
A server for fetching weather information using the OpenWeather API.
Details
- Author
- semdin
- Categories
- Cloud Service, Other, API
Jump to
Setup
Install MCP Weather in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/semdin/mcp-weather
Follow the installation instructions in the repository README, then restart your MCP client.
MCP Weather - Claude Desktop Integration
This project is an example MCP (Model Context Protocol) server designed for use with the Claude Desktop application. It is built to work seamlessly with Claude Desktop.
- TypeScript-based MCP server
- Weather query via OpenWeather API
- Easy integration with Claude Desktop
. ├── package.json ├── tsconfig.json ├── src/ │ └── index.ts ├── claude_desktop_config.json
- Node.js (v16 or higher)
- npm
- Claude Desktop (https://desktop.anthropic.com/)
- Clone the repository:
git clone <repository-url> cd mcp-weather
WEATHER_API_URL=https://api.weatherapi.com/v1/current.json WEATHER_API_KEY=<your_API_KEY>
-
In Claude Desktop, go toFile -> Settings -> Developer -> Edit Config.
Add a block similar to the example below to the config file (edit the file paths to match your own system):
{ "mcpServers": { "weather": { "command": "npx", "args": ["tsx", "C:/your/path/mcp-weather/src/index.ts"], "cwd": "C:/your/path/mcp-weather" } } }
Note: ReplaceC:/your/path/with the actual path to your project on your computer.
Save the settings and restart Claude Desktop.
Insrc/index.ts, the path to the.envfile is set to the project root by default:
import dotenv from "dotenv"; dotenv.config({ // Path to your .env file. Edit as needed, e.g.: path: "C:/your/path/.env" path: ".env", // By default, uses the .env file in the project root });
If your.envfile is in a different directory, update thepathparameter accordingly.
Contributions are welcome! Please open issues or submit pull requests for improvements or bug fixes.
Fetches precipitation forecast data for a specific location using the Buienradar service.
Query weather information and meteorological warnings for Chinese cities using the QWeather API.
Provides hourly weather forecasts using the AccuWeather API.
Access global weather forecasts and historical data through the Open-Meteo API.
Access global weather data and forecasts using the OpenMeteo API, including current conditions, historical data, and location search.
Provides comprehensive weather data and forecasts using the OpenWeatherMap API.
An MCP server providing weather tools from the National Weather Service (weather.gov) API, built with Spring Boot.
Provides real-time weather alerts for US states using the National Weather Service API.
An MCP server for accessing real-time weather data and forecasts.
Provides weather information using the free and open-source Open-Meteo API. No API key required.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





