Model Context Protocol server for the TRANSCEND Tolls Calculator API.
Calculate toll costs, list operators, and get tariff data across Spain, Portugal, and France — all from your LLM assistant.
| Tool | Description |
|---|---|
calculate_toll |
Calculate toll costs between two coordinates for a vehicle type |
list_operators |
List all toll operators with their highways and countries |
get_tariffs |
Get toll tariffs for a specific operator and vehicle type |
health_check |
Check if the API service is healthy |
- Python 3.10+
httpx
pip install httpx
python server.pyAdd to your claude_desktop_config.json:
{
"mcpServers": {
"tolls": {
"command": "python",
"args": ["/path/to/server.py"],
"env": {
"TOLLS_API_URL": "https://tolls.transcend.cargoffer.com"
}
}
}
}| Variable | Default | Description |
|---|---|---|
TOLLS_API_URL |
https://tolls.transcend.cargoffer.com |
API base URL |
TOLLS_API_KEY |
"" |
Optional API key for authenticated endpoints |
The MCP server wraps the TRANSCEND Tolls Calculator REST API.
Calculate toll costs between two coordinates.
Parameters:
origin_lat,origin_lng— Origin coordinatesdestination_lat,destination_lng— Destination coordinatesvehicle_type—light,truck,bus, ormotorcycle(default:truck)
Example response:
{
"totalCost": 14.64,
"currency": "EUR",
"segments": [
{
"highway": "C-16",
"operator": "autema",
"cost": 14.64,
"distance_km": 45.2
}
]
}List toll operators. Optional country filter (ES, PT, FR).
Get detailed tariffs for an operator. Parameters:
operator— e.g.autema,atlandes,brisavehicle_type— Optional filter
docker build -t tolls-mcp .
docker run -e TOLLS_API_URL=https://tolls.transcend.cargoffer.com tolls-mcp- Create a new service in Coolify
- Set the Docker image or use the Dockerfile
- Set env vars in the Coolify dashboard
- Domain:
mcp.tolls.cargoffer.com
MIT