tankerkoenig-mcp
Resolves place names and addresses to coordinates via OpenStreetMap Nominatim, enabling fuel price searches by location name or address.
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.
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: mcp-tankerkoenig
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
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
Tankerkoenig MCP — German real-time fuel prices (Benzinpreise) for all German gas stations…
Real-time fuel prices, alerts, and cheapest gas stations across 38+ countries.
US gas and diesel prices by station, ZIP or city. Paid, on Apify's hosted MCP.
Live official fuel station prices for France, Spain, Italy and Western Australia in one schema.
Related MCP Servers
- AlicenseAqualityBmaintenanceProvides 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 gradedqualityCmaintenanceProvides German real-time fuel prices (Benzinpreise) for all.76 npmMIT
- AlicenseNot gradedqualityFmaintenanceEnables AI assistants to query Austria's public fuel price API to find the cheapest diesel, super, or CNG stations near an address or within a region, including price, address, distance, open status, and navigation links, and to list regions and districts. It runs locally as a read-only stdio MCP server with no API keys required.MIT
- AlicenseNot gradedqualityBmaintenanceEnables agents to query fuel prices at filling stations in mainland Portugal from DGEG data, finding the cheapest nearby stations by place, postal code, coordinates, concelho or district. Also supports station details, regional and national market statistics, and daily national price history.MIT