Labsco
street1983nk logo

InfraNode

β˜… 3

from street1983nk

Free, keyless MCP server for open data of 84 German cities: weather and DWD warnings, air quality, transit, traffic, water levels, energy/SMARD. 38 tools, Apache-2.0.

πŸ”₯πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedFreeAdvanced setup

InfraNode

GitHub stars License: Apache 2.0 Glama score MCP Registry Smithery

The open-data REST API for Germany: a keyless HTTP API for German public-infrastructure open data, also available as an MCP server.

German cities publish a lot of open data, but every source has its own format, fields and quirks, and several need portal registration. InfraNode normalizes ~20 categories, weather (DWD), air quality (UBA), public transit (incl. realtime departures), traffic, electricity price (SMARD), land values (BORIS), parking, charging, water levels, demographics, energy and more, for 84+ German cities behind one interface. No API key, no account. Every response uses one canonical { data, meta } envelope with per-record license and attribution. The same data is also exposed as an MCP server (12 lean read-only tools covering 65 data types) for AI agents. Start with the one-call get_city_overview: it returns a catalog of every data type available for a city plus a live highlights snapshot, so agents discover the full breadth, not just weather. InfraNode is actively growing, with more data types and cities added regularly.

Sources include the Deutscher Wetterdienst (DWD), Umweltbundesamt (UBA), Mobilithek/DELFI, GovData, OpenStreetMap, Bundesnetzagentur, KBA, DIVI and more.

How it works

Copy & paste β€” that's it
flowchart LR
    SRC["German open-data sources<br/>DWD, UBA, SMARD, BORIS,<br/>Mobilithek, GovData, ..."] --> CORE["InfraNode<br/>normalize, license-gate, cache"]
    CORE --> API["REST API<br/>infranode.dev/api/v1"]
    CORE --> MCP["MCP server<br/>mcp.infranode.dev, 12 tools / 65 data types"]
    API --> APPS["Your apps &amp; dashboards"]
    MCP --> AGENTS["AI agents (Claude &amp; co.)"]

If InfraNode saves you a data integration, a star helps other developers find it.

Data (84 cities, 101 endpoints)

Every category below is a REST endpoint under /api/v1/cities/{slug}/<key>. Over MCP the same data comes through 12 lean tools: a few named ones (get_city_overview, weather, air_quality, pois, compare, live boards) plus one generic get_city_resource(slug, resource=<key>) for every other data type (its resource enum lists all 65 keys).

GroupData types (endpoint keys)
Discoverylist_cities, sources, compare (one resource across many cities), overview (one-call catalog + live snapshot)
Weather & environmentweather, weather-warnings, air-uba (official), air (live), pollen-uv, water-level, flood, fire-danger, bathing-water
Mobilitytransit, live stop departures (transit_departures tool), stations (catalog), station boards by EVA (station_board_departures/station_board_arrivals tools, incl. local trains + disruptions), station-departures, station-arrivals, traffic, road-events, webcams, charging, parking (live occupancy), sharing, fuel-prices, bike-counts
City & peoplebase, geo, demographics, indicators, unemployment, tourism, construction, accidents, crime-stats, health, icu-live, holidays, election, events, pois, playgrounds/markets/toilets and more OSM types
Economy & real estateland-values, tax-rates (trade/property tax multipliers per municipality), business-registrations (founding dynamics per district), insolvencies (insolvency filings per district: corporate and other debtors, annual), public-tenders (public procurement: running tenders and awarded contracts per city)
Energy & vehiclespower-load, power-price, energy, solar, solar-roofs, district-heating, vehicle-registrations

How it behaves

  • Keyless & read-only. No credentials, no writes, no user accounts.
  • Canonical envelope. { data, meta } with per-source status and attribution.
  • Graceful degradation. A failing upstream returns source_status, not an error.
  • Safe by design. SSRF and injection gates validate every request; inputs are checked against fixed allowlists.

See SECURITY.md for the security model.

Use it as an MCP server

The same API is exposed as a remote MCP server, so AI agents can call all 65 endpoints as tools. One line with Claude Code:

Copy & paste β€” that's it
claude mcp add --transport http infranode https://mcp.infranode.dev/mcp

Any other MCP client, point it at the remote endpoint (Streamable HTTP):

Copy & paste β€” that's it
{
  "mcpServers": {
    "infranode": { "url": "https://mcp.infranode.dev/mcp" }
  }
}
  • Cursor / Windsurf: add the block above to ~/.cursor/mcp.json (or the app's MCP settings).
  • VS Code: code --add-mcp '{"name":"infranode","url":"https://mcp.infranode.dev/mcp"}'
  • Claude Desktop: add the same mcpServers block to your claude_desktop_config.json.
  • ChatGPT: add a connector with the URL https://mcp.infranode.dev/mcp.

All tools are annotated readOnlyHint: true / destructiveHint: false / idempotentHint: true, so MCP clients can safely auto-allow them. The MCP layer also ships ready-made prompts (city_briefing, compare_air_quality, commute_check) and resources (infranode://cities, infranode://sources). Full install guide, the complete tool manifest with example outputs, the permission model and an example transcript are in docs/mcp-install.md. The registry manifest is server.json.

Use it in ChatGPT (Custom GPT action)

Ready-made GPT: German City Data (InfraNode) is listed in the GPT Store (Research & Analysis) and works out of the box.

To build your own: InfraNode ships a curated OpenAPI spec for GPT actions: 23 of the most useful operations (ChatGPT allows at most 30 per action), keyless, all GET.

  1. In the GPT editor open Configure β†’ Actions β†’ Create new action β†’ Import from URL and paste https://infranode.dev/actions/openapi.json.
  2. Leave authentication at None; as privacy policy use https://infranode.dev/en/privacy/.
  3. Tell the GPT in its instructions to start with getCityOverview(slug), resolve city names via getCities, and cite data.attribution (the data licences require attribution).

Details and recommended instructions: infranode.dev/en/chatgpt/. The spec is generated from docs/openapi.yaml by scripts/build_actions_spec.py.

Alternatives and how InfraNode compares

Other MCP servers cover parts of the German or European data space. InfraNode is the broadest for city-level open data, and the projects below often complement each other:

  • germany-mcp-server federal and government data (Autobahn, DWD, NINA, SMARD, Bundestag). Nationwide, no per-city breadth.
  • db-mcp-server / db-timetable-mcp Deutsche Bahn rail timetables only.
  • mcp-server-public-transport public transport across Europe; in Germany it covers Berlin/Brandenburg (VBB).
  • Single-city servers (e.g. Munich, Berlin) cover one city each.

InfraNode covers 84 German cities and 65 data types behind one keyless, hosted endpoint, from environment and mobility to energy, economy and city life. Full side-by-side comparison: infranode.dev/en/mcp-comparison.

Self-host (optional)

You don't need to, the hosted endpoint above is the fastest path. But the code is open. Run the API stack locally with Docker (Compose v2):

Copy & paste β€” that's it
cp .env.example .env          # example config, contains NO real secrets
docker compose -f deploy/docker-compose.yml up
curl http://localhost/api/v1/health   # -> {"status":"ok","version":"1.0.0","redis":true}

To run the MCP server itself locally over stdio (against the public API):

Copy & paste β€” that's it
uv sync --group mcp
INFRANODE_MCP_API_BASE=https://infranode.dev/api/v1 uv run python -m infranode.mcp.server

All settings use the INFRANODE_ env prefix (see .env.example); each data source is toggled by its own INFRANODE_ENABLE_* flag. Real secrets are never committed, only .env.example is versioned and CI runs a gitleaks scan.

License: code and data are separate

  • Code: Apache-2.0 (see LICENSE).
  • Data: the open data served through InfraNode keeps the licenses of its upstream sources (e.g. ODbL for OpenStreetMap, DL-DE-BY for GovData, attribution for DWD). These data licenses and attribution are tracked separately in DATA-LICENSES.md. The Apache-2.0 license covers only the API source code, not the passed-through data.

Contributing

Contributions are welcome. Setup, gate commands and the secret rule are in CONTRIBUTING.md. To add a new data source, start with the declarative source registry in src/infranode/registry/source_specs.py (one SourceSpec entry per upstream); CONTRIBUTING.md has the full checklist.