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.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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: wetter-mcp-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).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted MCP server for Xweather weather data: conditions, forecasts, alerts, and more.
Open-Meteo MCP — weather forecast + historical reanalysis + sister APIs
Open-Meteo tabanlı anahtarsız hava durumu tahmin MCP sunucusu.
NOAA and ECMWF weather forecast MCP for discovery, validation, and GribStream OAuth queries.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP Server for global weather, forecasts, air quality, and climate data using Open-Meteo, no API key required.31 PyPIMIT
- AlicenseAqualityCmaintenanceMCP 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.-
- AlicenseNot gradedqualityDmaintenanceMCP server providing weather data via the Open-Meteo API, including geocoding, current conditions, daily and hourly forecasts, and city lookup. No API key required, with support for multiple units and transport types.1MIT