Weather MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Weather MCP Server Compare the weather in New York and Los Angeles"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Weather MCP Server
An MCP (Model Context Protocol) server that provides weather tools for AI assistants, built with xmcp.
Features
Tools
get-current-weather - Get current weather conditions for any city (temperature, humidity, wind speed)
get-forecast - Get weather forecast for 1-7 upcoming days
compare-weather - Compare weather between two cities
Resources
weather://{city}/current- Current weather data as a resource
Prompts
weather-summary - Generate weather summary prompts
Related MCP server: OpenWeather MCP Server
Installation
npm installUsage
Development
npm run devProduction
npm run build
npm run startInspect with MCP Inspector
npm run inspectConfiguration
Add to your MCP client configuration:
{
"mcpServers": {
"weather": {
"command": "node",
"args": ["/path/to/weather-mcp/dist/stdio.js"]
}
}
}API
This server uses the free Open-Meteo API for weather data. No API key required.
Tech Stack
xmcp - MCP framework
Zod - Schema validation
Open-Meteo API - Weather data
License
MIT
Available Tools
4 toolscompare-weatherCompare WeatherBRead-onlyIdempotent
Compare current weather between two cities
Inputs: city1 (required), city2 (required), unit.
get-current-weatherGet current weatherCRead-onlyIdempotent
get the current weather of selected city
Inputs: city (required), unit.
get-forecastGet weather forecastCRead-onlyIdempotent
Get weather forecast for upcoming days
Inputs: city (required), days, unit.
greetGreet the userCRead-onlyIdempotent
Greet the user
Inputs: name (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
get-current-weather and get-forecast target clearly different time ranges, and greet is obviously unrelated to weather retrieval. compare-weather overlaps somewhat with get-current-weather since it is essentially two current-weather lookups bundled together, but the multi-city framing keeps it distinguishable.
All names use consistent kebab-case, and three of four follow a verb_noun pattern (get-current-weather, get-forecast, compare-weather). The lone bare verb 'greet' is a minor deviation but still readable and in the same casing style.
Four tools is a reasonable, tightly scoped surface for a weather server covering current, forecast, and comparison. The only bloat is 'greet', which does not earn its place in a weather domain.
Core retrieval is covered (current, forecast, comparison), but there are notable gaps: no historical weather, no severe-weather alerts, no location search/geocoding, and no unit or coordinate handling. Agents can work around some of this via city names, but the surface stops short of full lifecycle coverage.
Maintenance
Related MCP Connectors
Get current weather for any city and create images from your prompts. Streamline planning, reports…
Global weather via Open-Meteo: forecast, historical, marine, air quality, geocoding, elevation.
Current weather and forecasts for any coordinates, backed b… — paid per call (x402/credits), 1 tools
US weather & geo for AI agents: forecasts, alerts, earthquakes, elevation, geocoding. No keys.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to fetch current weather conditions and forecasts for any city using the Open-Meteo API. Provides temperature, precipitation, and hourly forecast data through natural language queries.ISC
- AlicenseNot gradedqualityDmaintenanceProvides real-time weather data and forecasts for locations worldwide using the OpenWeatherMap API. It enables AI assistants to retrieve current conditions, temperature, and forecasts through a simple tool-based interface.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to retrieve current weather, forecasts, and summaries for any global location using the Open-Meteo API, with no API key required.Creative Commons Zero v1.0 Universal
- AlicenseNot gradedqualityDmaintenanceProvides live weather data (current conditions, forecasts) and city geocoding through Open-Meteo API, enabling AI assistants to answer weather queries without an API key.MIT