A declarative Tyk OAS gateway fronting two free, keyless Open-Meteo services. Native params, no code. One of three gateways over the same upstreams — see also KrakenD and agentgateway.
| Endpoint | Upstream |
|---|---|
GET /weather/forecast | api.open-meteo.com/v1/forecast |
GET /air/air-quality | air-quality-api.open-meteo.com/v1/air-quality |
curl "https://weather-tyk.apievangelist.com/weather/forecast?latitude=40.7128&longitude=-74.006¤t=temperature_2m,weather_code&forecast=2&timezone=auto" curl "https://weather-tyk.apievangelist.com/air/air-quality?latitude=40.7128&longitude=-74.006¤t=european_aqi,pm2_5"
Adds CORS, ~5 min caching, and request validation (missing latitude/longitude → 422) over the raw upstreams.
The same two operations are also exposed as an MCP server via Tyk's api-to-mcp (OpenAPI→MCP), served over Streamable HTTP. MCP tool calls are routed through the Tyk REST gateway, so they inherit the same governance.
| MCP endpoint | POST https://weather-tyk.apievangelist.com/mcp |
|---|---|
| Tools | getWeatherForecast, getAirQuality |
npx @modelcontextprotocol/inspector # connect to: https://weather-tyk.apievangelist.com/mcp