weather-mcp
Provides tools for managing Vault secrets and tokens, including upserting, deleting, and checking status of API keys, and creating/revoking HTTP auth tokens, scoped per tenant and principal.
Click on "Install 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., "@weather-mcpWhat's the weather and any alerts for Tokyo?"
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.
weather-mcp
Multi-tenant MCP server for OpenWeather One Call API 4.0, built from the skeleton pattern with:
Persistent secrets in Vault
Persistent configuration in Postgres
Tenant/principal scoping (
tenant/userandtenant/account)Admin-guarded mutation tools through
MCP_ADMIN_AUTH_KEYFull One Call 4.0 endpoint coverage
What This MCP Exposes
OpenWeather One Call 4.0 endpoints covered:
GET /data/4.0/onecall/currentGET /data/4.0/onecall/timeline/1minGET /data/4.0/onecall/timeline/15minGET /data/4.0/onecall/timeline/1hGET /data/4.0/onecall/timeline/1dayGET /data/4.0/onecall/alert/{alert_id}
Extra dedicated MCP tools:
Scope metadata and discovery
Query suggestion and schema discovery
Vault API key upsert/delete/status per tenant/principal
Postgres config get/list/set/delete per tenant/principal
Vault HTTP token create/revoke per tenant/principal
Safe pagination URL follower
Related MCP server: MCP Weather Server
Persistence Model
Secrets (
OpenWeather API key,HTTP auth token index) are stored in Vault KV.Config values are stored in Postgres table
<app_name>_config.
Scope path examples:
Vault token index:
weather/tenants/acme/users/sam/http/auth/token-indexVault API key secret:
weather/tenants/acme/users/sam/http/auth/token-index/openweather
Quick Start
Copy
.env.exampleto.envand fill values.Start local dependencies:
docker compose up -d postgres vault
Install dependencies:
npm ci
Generate endpoint inventory artifact:
npm run inventory:generate
Run tests:
npm test
Start MCP:
stdio:
npm run start:stdiohttp:
npm run start:http
Key Environment Variables
MCP_ADMIN_AUTH_KEY: Required for mutating tools when set.MCP_CONFIG_DEFAULT_TENANT_IDMCP_CONFIG_DEFAULT_PRINCIPAL_TYPEMCP_CONFIG_DEFAULT_PRINCIPAL_IDOPENWEATHER_API_KEY: global fallback only; recommended pattern is scoped Vault key via tool.MCP_HTTP_TOKEN_SOURCE=vault|static
See .env.example for complete list.
Tooling Reference
Detailed LLM-oriented tool contracts are in:
docs/tools.md
Coverage inventory artifact:
artifacts/openweather-onecall4-inventory.json
Inventory and Push Enforcement
Scripts:
npm run inventory:generatenpm run inventory:checknpm run verify:prepush
CI workflow .github/workflows/inventory-and-tests.yml enforces:
Inventory generation
Inventory file committed and stable
Full test pass through
verify:prepush
Security Notes
Do not place production OpenWeather keys in plaintext env if scoped Vault keys are available.
Mutating tools should always be invoked with
authorizationKeywhenMCP_ADMIN_AUTH_KEYis configured.MCP_ALLOW_SENSITIVE_OUTPUT=falseredacts sensitive values from tool output.
License
MIT (see LICENSE).
This server cannot be installed
Maintenance
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP Server for global weather, forecasts, air quality, and climate data using Open-Meteo, no API key required.MIT
- FlicenseNot gradedqualityDmaintenanceMCP server that provides current weather and forecasts via Open-Meteo API, with an optional ML-based next-day max temperature prediction.
- AlicenseAqualityBmaintenanceMCP server for weather forecasts via Open-Meteo (no API key needed), providing current weather, hourly, and daily forecasts with geocoding support.3MIT
- FlicenseNot gradedqualityCmaintenanceAn MCP server providing worldwide weather via the free Open-Meteo APIs (no API key needed). Runs fully self-contained in Docker as a streamable-HTTP MCP service.
Related MCP Connectors
Open-Meteo MCP — weather forecast + historical reanalysis + sister APIs
NOAA and ECMWF weather forecast MCP for discovery, validation, and GribStream OAuth queries.
OpenWeather MCP — wraps the OpenWeatherMap API (openweathermap.org)
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/LesterAJohn/weather-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server