OpenWeatherMap▌

by robertn702
OpenWeatherMap API offers current conditions, forecasts, and weather alerts for travel planning and weather-dependent ap
Integrates with OpenWeatherMap API to provide current conditions, forecasts, air quality monitoring, weather alerts, and location services through 11 specialized tools for weather-dependent applications and travel planning.
best for
- / Weather-dependent applications and services
- / Travel planning and route optimization
- / Agricultural and outdoor activity planning
- / Emergency preparedness and alert systems
capabilities
- / Get current weather conditions for any location
- / Fetch 5-day forecasts with 3-hour intervals
- / Monitor air quality and pollution levels
- / Retrieve active weather alerts and warnings
- / Convert location names to coordinates
- / Access minute-by-minute precipitation forecasts
what it does
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.
about
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.
how to install
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.
license
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.
readme
OpenWeatherMap MCP Server
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>Features
Weather Tools
- Current Weather - Get current conditions for any location
- Weather Forecast - 5-day weather forecast with 3-hour intervals
- Hourly Forecast - Detailed hourly forecasts for up to 48 hours
- Daily Forecast - Daily weather forecasts for up to 8 days with temperature ranges and astronomical data
- Minutely Forecast - Minute-by-minute precipitation forecasts for the next hour
- Weather Alerts - Active weather warnings and alerts with severity classification
Air Quality & Location
- Current Air Pollution - Real-time air quality index and pollutant measurements
- Location Info - Reverse geocoding to get location details from coordinates
- OneCall Weather - Comprehensive weather data combining multiple forecasts
- Air Pollution - Historical and forecast air quality data
- Geocoding - Convert location names to coordinates
Installation
Prerequisites
- Bun runtime
- OpenWeatherMap API key (free at openweathermap.org)
Setup
- Clone the repository:
git clone https://github.com/robertn702/mcp-openweathermap.git
cd mcp-openweathermap
- Install dependencies:
bun install
- Set up your environment variables:
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:stdioorhttpStream(default: stdio)MCP_ENDPOINT- HTTP endpoint path (default: /stream)
Usage
Running the Server
Stdio Transport (default):
bun run src/main.ts
HTTP Stream Transport:
MCP_TRANSPORT=httpStream PORT=3000 bun run src/main.ts
Claude Desktop Configuration
Add this configuration to your Claude Desktop MCP settings:
{
"mcpServers": {
"openweathermap": {
"command": "npx",
"args": ["mcp-openweathermap"],
"env": {
"OPENWEATHER_API_KEY": "your-api-key-here"
}
}
}
}
API Tools
Weather Information
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 precipitation
Alerts & Air Quality
get-weather-alerts- Weather warnings and alertsget-current-air-pollution- Current air quality dataget-air-pollution- Air quality forecasts and history
Location Services
get-location-info- Reverse geocoding from coordinatesgeocode-location- Convert addresses to coordinatesget-onecall-weather- Comprehensive weather data
Development
Running in Development
bun run src/main.ts
Testing with MCP Inspector
bun run src/main.ts
Then connect the MCP Inspector to test the tools interactively.
Build
bun run build
Authentication
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.
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
- OpenWeatherMap API Documentation
- openweather-api-node Library - The underlying API client
- Model Context Protocol Documentation
- Issue Tracker
FAQ
- What is the OpenWeatherMap MCP server?
- OpenWeatherMap is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
- How do MCP servers relate to agent skills?
- Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
- How are reviews shown for OpenWeatherMap?
- This profile displays 10 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.5 out of 5—verify behavior in your own environment before production use.
Ratings
4.5★★★★★10 reviews- ★★★★★Shikha Mishra· Oct 10, 2024
OpenWeatherMap is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
- ★★★★★Piyush G· Sep 9, 2024
We evaluated OpenWeatherMap against two servers with overlapping tools; this profile had the clearer scope statement.
- ★★★★★Chaitanya Patil· Aug 8, 2024
Useful MCP listing: OpenWeatherMap is the kind of server we cite when onboarding engineers to host + tool permissions.
- ★★★★★Sakshi Patil· Jul 7, 2024
OpenWeatherMap reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
- ★★★★★Ganesh Mohane· Jun 6, 2024
I recommend OpenWeatherMap for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
- ★★★★★Oshnikdeep· May 5, 2024
Strong directory entry: OpenWeatherMap surfaces stars and publisher context so we could sanity-check maintenance before adopting.
- ★★★★★Dhruvi Jain· Apr 4, 2024
OpenWeatherMap has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
- ★★★★★Rahul Santra· Mar 3, 2024
According to our notes, OpenWeatherMap benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
- ★★★★★Pratham Ware· Feb 2, 2024
We wired OpenWeatherMap into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
- ★★★★★Yash Thakker· Jan 1, 2024
OpenWeatherMap is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.