- Home
- MCP servers
- Weather
Weather
- javascript
0
GitHub Stars
javascript
Language
5 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"vihanrs-weather-xmcp": {
"command": "node",
"args": [
"/path/to/weather-mcp/dist/stdio.js"
]
}
}
}This Weather MCP Server provides practical weather tools for AI assistants, built on the xmcp framework. It exposes current conditions, forecasts, and city comparisons so you can integrate weather data into conversations and workflows with ease.
How to use
You connect to the Weather MCP Server through your MCP client and call the available tools to access weather data for cities around the world. Use the current weather tool to retrieve up-to-date temperature, humidity, and wind information for a city. Use the forecast tool to get weather predictions for the next 1–7 days. Use the compare tool to contrast weather between two cities. A sample data resource you can reference is the current weather endpoint weather://{city}/current, which returns the latest conditions for your chosen location.
Prompts are available to help generate concise summaries of the weather data for display or narration, such as weather-summary prompts that tailor the output to your needs.
How to install
Prerequisites: ensure you have Node.js and npm installed on your system.
Install dependencies for the Weather MCP Server.
npm install
Run in development mode to test locally.
npm run dev
For production, build the server and start it.
npm run build
npm run start
If you want to inspect the MCP setup during development, you can run the inspector.
npm run inspect
Configuration and notes
Configure your MCP client to connect to the Weather MCP Server using the stdio connection shown here. The server is started locally via a Node process and runs the MCP entry point from dist/stdio.js.
{
"mcpServers": {
"weather": {
"command": "node",
"args": ["/path/to/weather-mcp/dist/stdio.js"]
}
}
}
Security and notes
This server uses the Open-Meteo API for weather data and does not require an API key. Ensure your MCP client enforces appropriate access controls to prevent unauthorized use of weather data and to protect any internal endpoints you expose.
Available tools
get-current-weather
Fetches current weather data for a specified city, including temperature, humidity, and wind speed.
get-forecast
Returns a weather forecast for 1 to 7 upcoming days for a given city.
compare-weather
Compares weather conditions between two cities and highlights differences.