
A Model Context Protocol server that provides weather information
A Model Context Protocol server that provides weather information
·
A Model Context Protocol (MCP) server that provides weather information for cities around the world.
npm installnpm run buildnpm startAdd the following configuration to your MCP settings:
{
"mcpServers": {
"weather-server": {
"command": "node",
"args": ["path/to/weather-server/build/index.js"],
"env": {
"OPENWEATHER_API_KEY": "your-api-key-here" // Optional - will use mock data if not provided
},
"disabled": false,
"autoApprove": []
}
}
}This server can operate in two modes:
With API Key: When an OpenWeather API key is provided via the OPENWEATHER_API_KEY environment variable, the server will fetch real-time weather data from the OpenWeather API.
Without API Key: If no API key is provided, the server will automatically use mock data for a set of predefined cities (London, New York, Tokyo, Paris, Sydney). For other cities, it will use default mock data.
To get an OpenWeather API key:
The mock data mode is useful for development, testing, or when you don't need real-time weather data.
Get current weather information for a specified city.
Input Schema:
{
"city": "string" // City name (e.g., "London", "New York", "Tokyo")
}Example Response:
{
"location": "London, GB",
"date": "Monday, March 24, 2025",
"time": "7:30:00 PM",
"temperature": {
"current": "12°C",
"feelsLike": "10°C"
},
"weather": {
"main": "Cloudy",
"description": "Overcast clouds",
"icon": "https://openweathermap.org/img/wn/[email protected]"
},
"details": {
"humidity": "75%",
"pressure": "1012 hPa",
"windSpeed": "4.5 m/s",
"windDirection": "230°",
"cloudiness": "90%",
"sunrise": "6:45 AM",
"sunset": "7:30 PM"
},
"source": "OpenWeather API" // or "Mock Data (No API key provided)" or "Mock Data (API request failed)"
}The source field in the response indicates where the data came from:
"OpenWeather API": Real-time data from the OpenWeather API"Mock Data (No API key provided)": Mock data used because no API key was provided"Mock Data (API request failed)": Mock data used because the API request failedMIT
Pick your client and paste the snippet. Each one is the same server, written the way that client expects it.
claude mcp add weather-server -- node path/to/weather-server/build/index.js{
"mcpServers": {
"weather-server": {
"env": {
"OPENWEATHER_API_KEY": ""
},
"args": [
"path/to/weather-server/build/index.js"
],
"command": "node"
}
}
}code --add-mcp '{"name":"weather-server","env":{"OPENWEATHER_API_KEY":""},"args":["path/to/weather-server/build/index.js"],"command":"node"}'[mcp_servers.weather-server]
command = "node"
args = ["path/to/weather-server/build/index.js"]Runs locally on your device. Your client starts the server itself, so nothing has to be hosted.
Paste this prompt into your agent. It reads this page and does the setup for you.
Read https://aiagentslisting.com/mcp/weather-mcp-server to learn what the "Weather MCP Server" MCP server does and how to install it. Add it to my coding agent's MCP configuration as documented on that page, then confirm the server connects and list the tools it exposes.Agents can also browse this directory over MCP at https://aiagentslisting.com/api/mcp
This server runs locally, so we can't read its tool list over the web yet.
We could not run this server: it ships no npx package for our sandbox and no public endpoint. The four checks that need a live server are left out, and the grade tops out at B until one exists.
Maintain this server? Claiming proves you own the listing and earns the last 4 points.
Claim this listingPaste this line near the top of your repository's README. The badge always renders the current score.
[](https://aiagentslisting.com/mcp/weather-mcp-server)Nothing comparable is listed yet.
No tagged releases on record.
Connect to the AI Agents Listing MCP server at https://aiagentslisting.com/api/mcp using the HTTP transport and complete the sign-in when it asks. Then call the submit_review tool for the listing "weather-mcp-server" with a rating from 1 to 5 and a short note on what worked and what did not.No reviews yet
Be the first to share your experience with this tool.
One email a week. New agents, MCP servers and skills, and what is actually getting traction.