Skip to main content
Glama

Tankerkönig MCP — Live German Fuel Prices for AI Assistants

License: MIT Python 3.11+ MCP

An MCP server that gives Claude, Cursor, or any MCP-compatible AI assistant access to real-time fuel prices at 14,000+ gas stations in Germany.

The data is official: German law requires every filling station to report price changes in real time to the Markttransparenzstelle für Kraftstoffe (MTS-K) at the Federal Cartel Office. Tankerkönig redistributes that feed free of charge under CC BY 4.0.

Deutsch: MCP-Server für aktuelle Benzin- und Spritpreise in Deutschland. Findet die günstigste Tankstelle (E5, E10, Diesel) in deiner Nähe — direkt im KI-Chat.

What you can ask

Once connected, just talk to your assistant normally:

  • "Where's the cheapest E10 near Munich right now?"

  • "Show me diesel prices within 10 km of Hamburg Hauptbahnhof."

  • "I'm driving Stuttgart → Nuremberg tomorrow. Where should I fill up?"

  • "Wo tanke ich gerade am günstigsten in Köln?"

Example response:

DIESEL prices, cheapest first:
• 2.209 € — Sprint, Residenzstr. Berlin (4.9 km)
• 2.219 € — Shell, Prinzenallee Berlin (4.3 km)
• 2.269 € — TotalEnergies, Chausseestr. Berlin (2.6 km)

Data: tankerkoenig.de (MTS-K, CC BY 4.0)

Related MCP server: opinet-mcp

Tools

Tool

Arguments

What it does

find_fuel

location, fuel_type (e5/e10/diesel), radius_km (1–25)

Cheapest stations near a place name or address

find_fuel_at

lat, lng, fuel_type, radius_km

Same, by exact GPS coordinates

Only open stations with a current price are returned, sorted cheapest first. Place names are resolved via OpenStreetMap Nominatim.

Setup

1. Get a free API key (2 minutes + approval wait)

Tankerkönig issues a personal key to every user — this is required by their terms, so the server cannot ship with a shared one.

  1. Go to creativecommons.tankerkoenig.de

  2. Fill in the form (name, email, purpose — "personal / hobby project" is fine)

  3. Confirm the email you receive

  4. The key arrives by email. Approval is manual, so it can take anywhere from a few minutes to a couple of days.

The key is free and has no usage cost.

2a. Hosted (easiest)

Available on the MCPize marketplace:

mcpize install tankerkoenig-mcp

You'll be prompted for your Tankerkönig key; it is stored per-user and never shared.

2b. Local install

git clone https://github.com/fluxionlabsai-ops/tankerkoenig-mcp.git
cd tankerkoenig-mcp
python3 -m venv .venv
.venv/bin/pip install .

Then add it to your MCP client. For Claude Desktop, edit claude_desktop_config.json:

{
  "mcpServers": {
    "tankerkoenig": {
      "command": "/absolute/path/to/tankerkoenig-mcp/.venv/bin/python",
      "args": ["/absolute/path/to/tankerkoenig-mcp/server.py"],
      "env": { "TANKERKOENIG_API_KEY": "your-key-here" }
    }
  }
}

For Claude Code:

claude mcp add tankerkoenig \
  -e TANKERKOENIG_API_KEY=your-key-here \
  -- /absolute/path/to/tankerkoenig-mcp/.venv/bin/python \
     /absolute/path/to/tankerkoenig-mcp/server.py

Restart your client, and ask it about fuel prices.

Security notes

The API key is read only from the TANKERKOENIG_API_KEY environment variable — never from a file in the repo, and never hard-coded.

Tankerkönig passes the key as a URL query parameter, which HTTP client libraries happily log at INFO level. This server explicitly silences the httpx logger in both the entry point and the core module, and strips the request URL out of upstream HTTP errors before they surface. Both behaviours are covered by regression tests (test_http_error_does_not_leak_key, test_httpx_logger_muted_on_plain_import).

Tests

.venv/bin/python -m unittest test_tankerkoenig -v

Attribution & licence

  • Code: MIT — see LICENSE.

  • Data: © Tankerkönig, sourced from Markttransparenzstelle für Kraftstoffe, licensed CC BY 4.0. Every response from this server carries that attribution — please keep it if you build on this.

  • Geocoding: © OpenStreetMap contributors, ODbL.

Not affiliated with Tankerkönig, MTS-K, or the Bundeskartellamt.


Keywords: German fuel prices MCP · Benzinpreise · Spritpreise · Dieselpreis · Tankstellen Deutschland · MTS-K API · Tankerkönig API · cheapest gas station Germany · Claude MCP server · Model Context Protocol

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    A
    quality
    D
    maintenance
    Enables AI assistants to track global food prices, search products by barcode or name, and compare costs across 27 countries. It provides tools for real-time price scraping and data aggregation from major international supermarket chains.
    8
    4
  • A
    license
    A
    quality
    D
    maintenance
    Provides access to Korea Petroleum Corporation's Opinet fuel price API for South Korea. Enables querying of current national and regional fuel averages, recent price trends, lowest-price stations, and nearby gas station details through natural language.
    MIT

View all related MCP servers

Related MCP Connectors

  • Tankerkoenig MCP — German real-time fuel prices (Benzinpreise) for all

  • Real-time electricity prices for AI agents. 40+ countries, 100+ zones. No auth required.

  • Vanlife & RV travel data. Fuel, weather, currency, events, news. https://openvan.camp/en/developers

View all MCP Connectors

Latest Blog Posts

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/fluxionlabsai-ops/tankerkoenig-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server