Connector guide2-minute read6 MCP toolsEnglish · Deutsch · Italiano

Come collegare OpenWeather a Gemini — via MCP

Query OpenWeather (current weather, forecasts, air quality, geocoding) from any AI agent. 6 tools, API-key auth.

HCBy HelpCode teamUpdated 2 min read Open source on GitHub

No credit card · 7-day trial · Self-host alternative available

MCP connector

OpenWeather

Query OpenWeather (current weather, forecasts, air quality, geocoding) from any AI agent. 6 tools, API-key auth.

Tools

6

Region

INTL

Category

data

Authentication

Query Param Auth

Required env vars

OPENWEATHER_API_KEY
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Source-available BSL-1.1
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

No install? Use cloud.anythingmcp.com directly.

Sign in, install the OpenWeather in one click, paste the credentials, mint an MCP API key — done. No Docker, no git clone, no local server to run.

Open Cloud

TL;DR

Query OpenWeather (current weather, forecasts, air quality, geocoding) from any AI agent. 6 tools, API-key auth.

💡 Niente installazione? Vai direttamente su cloud.anythingmcp.com. Accedi, clicca Connectors → OpenWeather, inserisci le credenziali, genera una MCP API key — fatto. Niente Docker, niente git clone, niente server locale.

OpenWeather + Gemini

Query OpenWeather (current weather, forecasts, air quality, geocoding) from any AI agent. 6 tools, API-key auth.

Prerequisiti

Le istruzioni di setup complete sono incluse nel connettore stesso (visibili nello store quando lo selezioni). Le variabili d'ambiente richieste sono:

OPENWEATHER_API_KEY

Step 1 — Ottieni le credenziali

This connector wraps the OpenWeather REST API (api.openweathermap.org).

Setup:

  1. Sign up at https://openweathermap.org/users/sign_up (free tier: 60 calls/min, 1M/month).
  2. Go to https://home.openweathermap.org/api_keys → copy the default key OR create a new one labelled e.g. mcp.
  3. Wait ~10 minutes — new keys take time to activate on the free tier.
  4. Set OPENWEATHER_API_KEY.

Authentication: every request takes appid=${OPENWEATHER_API_KEY} as a query string. The adapter injects it automatically — never include it in tool arguments.

…(continued in the in-app connector instructions)

Step 2 — Installa l'adapter

git clone https://github.com/HelpCode-ai/anythingmcp.git
cd anythingmcp && docker compose up -d

Step 3 — Aggiungi il connettore in Gemini

Gemini CLI legge i server MCP da ~/.gemini/settings.json (o %APPDATA%\gemini\settings.json su Windows). Aggiungi:

{
  "mcpServers": {
    "anythingmcp": {
      "httpUrl": "https://cloud.anythingmcp.com/mcp",
      "headers": { "Authorization": "Bearer YOUR_MCP_API_KEY" }
    }
  }
}
  1. Ottieni la tua MCP API key da AnythingMCP → Profilo → MCP API Keys → Nuova Key.
  2. Salva il file e riavvia gemini.
  3. Esegui /mcp nella Gemini CLI — OpenWeather dovrebbe essere elencato come disponibile.
  4. Vertex AI Studio: passa https://cloud.anythingmcp.com/mcp nell'array tools della richiesta con lo stesso header Bearer.

Tool disponibili

ToolWhat it does
openweather_geocode_cityTranslate a city name (optionally with state and country code) into latitude/longitude
openweather_reverse_geocodeTranslate latitude/longitude back into a list of nearby place names
openweather_current_weatherCurrent weather at given coordinates: temperature, humidity, wind, conditions, sunrise/sunset
openweather_forecast_5day5-day weather forecast at 3-hour intervals
openweather_air_pollutionCurrent air-quality index (AQI 1-5) + concentrations of CO, NO, NO2, O3, SO2, PM2
openweather_air_pollution_forecastHourly air-pollution forecast for the next ~4 days at given coordinates

FAQ

Gemini 1.5 Pro o 2.x supportano MCP? Sì — Gemini CLI ≥ 0.4 e la Vertex AI tools API accettano connettori MCP httpUrl con header Bearer.

Prossimi passi

Questa guida ti è stata utile?

Ready to ship

Your OpenWeather agent is one click away.

Install the connector, paste the key, prompt Gemini. Free for 7 days, no credit card.

Guide correlate