by robertn702
OpenWeatherMap API offers current conditions, forecasts, and weather alerts for travel planning and weather-dependent ap
Connects to OpenWeatherMap API to fetch current weather, forecasts, air quality data, and weather alerts for any location. Provides comprehensive weather information through 11 specialized tools.
OpenWeatherMap is a community-built MCP server published by robertn702 that provides AI assistants with tools and capabilities via the Model Context Protocol. OpenWeatherMap API offers current conditions, forecasts, and weather alerts for travel planning and weather-dependent ap It is categorized under developer tools.
You can install OpenWeatherMap in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
MIT
OpenWeatherMap is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
Add new capabilities to Claude beyond text generation
Example
Access external data sources, execute code, interact with tools and services
Transform Claude from chatbot to action-taking agent
Provide Claude with access to relevant context and data
Example
Load project documentation, access knowledge bases, query databases
Get more accurate, context-aware responses
Automate multi-step workflows combining AI and external tools
Example
Research → Summarize → Create document → Send notification
Complete complex tasks end-to-end without manual steps
Share your MCP server with the developer community
OpenWeatherMap is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
OpenWeatherMap reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
Useful MCP listing: OpenWeatherMap is the kind of server we cite when onboarding engineers to host + tool permissions.
According to our notes, OpenWeatherMap benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
We wired OpenWeatherMap into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
We evaluated OpenWeatherMap against two servers with overlapping tools; this profile had the clearer scope statement.
Useful MCP listing: OpenWeatherMap is the kind of server we cite when onboarding engineers to host + tool permissions.
According to our notes, OpenWeatherMap benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
OpenWeatherMap reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
OpenWeatherMap has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
showing 1-10 of 43
A Model Context Protocol (MCP) server that provides comprehensive weather data and forecasts through the OpenWeatherMap API. This server enables AI assistants to access real-time weather information, forecasts, air quality data, and location services.
<a href="https://glama.ai/mcp/servers/@robertn702/mcp-openweathermap"> <img width="380" height="200" src="https://glama.ai/mcp/servers/@robertn702/mcp-openweathermap/badge" alt="OpenWeatherMap Server MCP server" /> </a>git clone https://github.com/robertn702/mcp-openweathermap.git
cd mcp-openweathermap
bun install
cp .env.example .env
# Edit .env and add your OpenWeatherMap API key
Environment variables:
OPENWEATHER_API_KEY - Your OpenWeatherMap API key (required for stdio transport only)PORT - Server port for HTTP transport (default: 3000)MCP_TRANSPORT - Transport type: stdio or httpStream (default: stdio)MCP_ENDPOINT - HTTP endpoint path (default: /stream)Stdio Transport (default):
bun run src/main.ts
HTTP Stream Transport:
MCP_TRANSPORT=httpStream PORT=3000 bun run src/main.ts
Add this configuration to your Claude Desktop MCP settings:
{
"mcpServers": {
"openweathermap": {
"command": "npx",
"args": ["mcp-openweathermap"],
"env": {
"OPENWEATHER_API_KEY": "your-api-key-here"
}
}
}
}
get-current-weather - Current weather conditionsget-weather-forecast - 5-day forecastget-hourly-forecast - Hourly forecasts (up to 48 hours)get-daily-forecast - Daily forecasts (up to 8 days)get-minutely-forecast - Minute-by-minute precipitationget-weather-alerts - Weather warnings and alertsget-current-air-pollution - Current air quality dataget-air-pollution - Air quality forecasts and historyget-location-info - Reverse geocoding from coordinatesgeocode-location - Convert addresses to coordinatesget-onecall-weather - Comprehensive weather databun run src/main.ts
bun run src/main.ts
Then connect the MCP Inspector to test the tools interactively.
bun run build
Stdio Transport: Requires OPENWEATHER_API_KEY environment variable.
HTTP Transport: The OpenWeatherMap API key is passed as a bearer token in the HTTP request headers. No environment variable needed.
This project is licensed under the MIT License - see the LICENSE file for details.
Prerequisites
Time Estimate
15-60 minutes depending on server complexity
Steps
Troubleshooting
✓ Do
✗ Don't
💡 Pro Tips
Architecture
Model Context Protocol standardizes how AI hosts (Claude, Cursor) communicate with external tools and data sources through server implementations.
Protocols
Compatibility
✓ Use when
Use when you need Claude to access external data, execute actions, or integrate with tools. Best for extending AI capabilities beyond conversation.
✗ Avoid when
Avoid when native integrations exist (use official APIs directly), for real-time critical systems, or when security/compliance requires zero external dependencies.