google-weather-mcp
Provides access to Google Maps Platform Weather API for current conditions, hourly forecasts, and daily forecasts, with optional geocoding via the Google Geocoding API.
Provides fallback city and address geocoding via OpenStreetMap Nominatim when the Google Geocoding API is not configured.
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., "@google-weather-mcp what's the weather in Delhi?"
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.
Google Weather MCP
MCP server for the Google Maps Platform Weather API, plus a dashboard that calls the same tools over HTTP.
What you get
MCP tools (stdio) for Cursor / Claude Desktop:
geocode_locationget_current_weatherget_hourly_forecastget_daily_forecastget_weather_dashboard
Frontend at
http://localhost:8787— current conditions, 24-hour strip, 10-day forecast.
The API key stays on the server. The browser never sees it.
Related MCP server: OpenWeatherMap MCP Server
Setup
cd google-weather-mcp
npm install
cp .env.example .envEnable Weather API in a Google Cloud project and put the key in .env:
GOOGLE_WEATHER_API_KEY=your_key_hereOptional: enable Geocoding API on the same key (or set GOOGLE_GEOCODING_API_KEY). Without it, city search uses OpenStreetMap Nominatim.
Without a key, the dashboard still runs with demo weather so you can check the UI.
Run the dashboard
npm startOpen http://localhost:8787. Search a city or use your location.
Run as an MCP server
npm run mcpCursor MCP config (~/.cursor/mcp.json or project .cursor/mcp.json):
{
"mcpServers": {
"google-weather": {
"command": "npx",
"args": ["tsx", "src/mcp.ts"],
"cwd": "/Users/rajendrasrirangan/Downloads/AI_Projects/google-weather-mcp",
"env": {
"GOOGLE_WEATHER_API_KEY": "your_key_here"
}
}
}
}After adding it, ask the agent for weather in a city. It will call get_weather_dashboard (or the more specific tools).
Google endpoints used
GET https://weather.googleapis.com/v1/currentConditions:lookupGET https://weather.googleapis.com/v1/forecast/hours:lookupGET https://weather.googleapis.com/v1/forecast/days:lookup
Available Tools
5 toolsgeocode_locationA
Resolve a city or address to latitude and longitude.
Inputs: query (required).
get_current_weatherA
Current conditions from the Google Maps Platform Weather API for a place or coordinates.
Inputs: query, units, latitude, longitude.
get_daily_forecastC
Daily forecast (default 10 days) from the Google Weather API.
Inputs: days, query, units, latitude, +1 more.
get_hourly_forecastA
Hourly forecast (default 24 hours, max 240) from the Google Weather API.
Inputs: hours, query, units, latitude, +1 more.
get_weather_dashboardA
Combined current conditions, 24-hour, and 10-day forecast for a location. Best for filling a weather UI.
Inputs: query, units, latitude, longitude.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool targets a clear weather data need: geocoding, current conditions, hourly, daily, and combined dashboard. The dashboard overlaps with the individual forecast tools, but its purpose as a one-call UI filler is clearly distinct.
Most tools follow a get_<detail> pattern, and geocode_location is also verb_noun, so the set is readable and predictable. The only minor deviation is geocode_location not using the get_ prefix.
Five tools is well-scoped for a weather server: geocoding plus current, hourly, daily, and dashboard views cover the domain without unnecessary bloat.
The tool surface covers the full basic weather workflow: resolve location, fetch current conditions, get forecasts at different granularities, and retrieve a combined view. No significant gaps for a weather-focused MCP server.
Maintenance
Related MCP Connectors
Geocoding, weather forecasts, and timezone lookups
Free, keyless real-time weather and 7-day forecasts for any city worldwide.
Weather, geocoding, FX rates, holidays, time zones, countries, earthquakes, sun and moon.
Weather, geocoding, FX rates, holidays, time zones, countries, earthquakes, sun and moon.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides real-time weather data and air quality information for geographic coordinates or major Indian cities using the Weather Union API.MIT
- AlicenseNot gradedqualityDmaintenanceProvides weather data integration using the OpenWeatherMap API, enabling users to fetch current weather conditions, hourly and daily forecasts, weather alerts, and geocoding services for any location worldwide.65 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables querying real-time weather and 5-day forecasts for any city using the OpenWeatherMap API.5ISC
- AlicenseBqualityDmaintenanceProvides current weather conditions and 5-day forecasts for any city worldwide using the OpenWeatherMap API.2MIT