tankerkoenig-mcp
Resolves place names and addresses to coordinates via OpenStreetMap Nominatim, enabling fuel price searches by location name or address.
Click on "Deploy 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., "@tankerkoenig-mcpFind the cheapest E10 near Frankfurt."
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.
Tankerkönig MCP — Live German Fuel Prices for AI Assistants
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: gasolineras-mcp
Tools
Tool | Arguments | What it does |
|
| Cheapest stations near a place name or address |
|
| 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.
Fill in the form (name, email, purpose — "personal / hobby project" is fine)
Confirm the email you receive
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-mcpYou'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.pyRestart 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 -vAttribution & 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
This server cannot be deployed
Maintenance
Related MCP Connectors
Tankerkoenig MCP — German real-time fuel prices (Benzinpreise) for all
Real-time fuel prices, alerts, and cheapest gas stations across 38+ countries.
Gas and fuel prices by station and area, as structured data via a hosted MCP server.
Live prices, deals & optimal multi-stop shopping routes for German grocery & drug stores.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides 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
- AlicenseAqualityAmaintenanceProvides real-time fuel prices at gas stations in Spain using the government's public API. Enables users to find the cheapest fuel in a municipality or list stations sorted by price.2MIT
- AlicenseNot gradedqualityBmaintenanceProvides German real-time fuel prices (Benzinpreise) for all.2 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to query real-time fuel availability (92/95/98/100/diesel) at Russian petrol stations from two crowd-sourced maps, including queue status, prices, and location-based search.MIT