OpenWeather MCP server for AI agents

Live

API KEY

WEATHER DATA

Productivity

OpenWeather gives your agent weather data from your OpenWeather account: current conditions and forecasts by city, ZIP code, or coordinates, One Call data with historical weather, air pollution readings, and location lookup.

  • Per-user credentials: each call uses the actual user's API key, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
OpenWeather
agent · Acme Q3
Run
What's the weather in Lisbon right now?
S
openweather_current_weather_by_city_get
350ms
Weather agent
Returned the current conditions for Lisbon, including temperature, wind, and a short description of the sky.
Sources: OpenWeather current weather, 1 city
openweather
1 city
18:29
Message Claude...

Tools your weather data agent reaches for on OpenWeather, scoped per user.

CALL ANY TOOL
16 tools for weather data in OpenWeather: read current weather and forecasts by city, ZIP code, or coordinates, One Call data, air pollution, and locations.
openweather_air_pollution_forecast_get
Get air pollution forecast
Get the hourly air quality forecast for the next 4 days at a latitude and longitude. Returns the coordinates and a list of entries, each with a Unix timestamp, an air quality index from 1 (Good) to 5 (Very Poor) and concentrations in μg/m3 of CO, NO, NO2, O3, SO2, PM2.5, PM10 and NH3. Use this for future air quality. Use openweather_air_pollution_get for current readings and openweather_air_pollution_history_get for past readings.
Parameters
Name
Type
Required
Description
lat
number
Required
Latitude of the place in decimal degrees, from -90 to 90. Get it from openweather_location_search or openweather_location_by_zip_get if you only have a place name or postal code. Example: 51.5073
lon
number
Required
Longitude of the place in decimal degrees, from -180 to 180. Get it from openweather_location_search or openweather_location_by_zip_get if you only have a place name or postal code. Example: -0.1276
openweather_air_pollution_get
Get air pollution
openweather_air_pollution_history_get
Get air pollution history
openweather_current_weather_by_city_get
Get current weather by city
openweather_current_weather_by_zip_get
Get current weather by zip
openweather_current_weather_get
Get current weather
openweather_forecast_by_city_get
Get forecast by city
openweather_forecast_by_zip_get
Get forecast by zip
openweather_forecast_get
Get forecast
openweather_location_by_zip_get
Get location by zip
openweather_location_reverse_get
Get location reverse
openweather_location_search
Search location
openweather_one_call_day_summary_get
Get one call day summary
openweather_one_call_get
Get one call
openweather_one_call_overview_get
Get one call overview
openweather_one_call_timemachine_get
Get one call timemachine
Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// OpenWeather tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["openweather"], toolNames: [
    "openweather_current_weather_by_city_get",
    "openweather_forecast_by_city_get",
    "openweather_air_pollution_get"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "What's the weather in Lisbon right now, what is the forecast, and how is the air quality" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["openweather"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "What's the weather in Lisbon right now, what is the forecast, and how is the air quality" }],
  tools,
});

// Execute the tool call with the user's vaulted OpenWeather API key
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["openweather"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "What's the weather in Lisbon right now, what is the forecast, and how is the air quality" }],
  tools,
});

// Tool call runs with the user's vaulted OpenWeather API key
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["openweather"] }, pageSize: 100,
});

const agent = new Agent({
  name: "weather_agent",
  model: "gemini-2.5-pro",
  instruction: "OpenWeather tools scoped to this user",
  tools,
});

await agent.run("What's the weather in Lisbon right now, what is the forecast, and how is the air quality");
Try these prompts
Copy any prompt into your agent. Each maps directly to a OpenWeather tool. Click to copy, paste into your agent, done.
Current weather and forecasts
Copy the prompt
Copied
What's the weather in Lisbon right now?
Copy the prompt
Copied
Show the forecast for ZIP code 94103.
Copy the prompt
Copied
Give me the forecast for these coordinates.
One Call
Copy the prompt
Copied
Give me today's weather summary for Berlin.
Copy the prompt
Copied
Show the weather overview for this location.
Copy the prompt
Copied
What was the weather in Paris on this date last year?
Air pollution and locations
Copy the prompt
Copied
What is the air pollution level in Delhi right now?
Copy the prompt
Copied
Show the air pollution forecast for Beijing.
Copy the prompt
Copied
Find the coordinates for Springfield, Illinois.
SEE HOW AUTH WORKS
Each user connects their own OpenWeather API key once, and Scalekit sends it with every call. Keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
OpenWeather
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
OpenWeather
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
OpenWeather
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
OpenWeather
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other search connectors.
Support and Ops Teams
Meeting prep
Pulls agenda, participant context, and open action items before every meeting.
Test other agents
See the same per-user auth pattern across other search connectors.
OPS
Meeting prep agent
Assemble the agenda, HubSpot attendee history, and open action items from Gmail before every meeting on the calendar.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared OpenWeather API key looks fine in a demo. In production every weather request looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
OpenWeather today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access OpenWeather as the user or through a shared key?
As the user. Each user connects their own OpenWeather API key once, and Scalekit sends it with every call. Audit logs attribute every request to that user, not a shared service account.
Where is the OpenWeather API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new API key. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in OpenWeather?
Yes. All 16 tools are read-only, so the agent can read weather and location data but cannot change anything. Filter by tool name in listScopedTools to expose only what you want, for example the current weather tools without the One Call tools. Scalekit also enforces scope checks before every API call.
What happens when a user revokes OpenWeather access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Can the agent look up a location before asking for weather?
Yes. openweather_location_search finds coordinates for a place name, openweather_location_by_zip_get does it for a ZIP code, and openweather_location_reverse_get turns coordinates into a place name. The weather, forecast, and air pollution tools then take those coordinates.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""openweather"": {
""url"": ""https://mcp.scalekit.com/openweather"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.openweather]
url = ""https://mcp.scalekit.com/openweather""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""openweather"": {
""url"": ""https://mcp.scalekit.com/openweather"",
""type"": ""http""
}
}
}