OpenBusData
MCP server for UK Bus Open Data with timetable parsing, journey planning and live tracking.
Que pouvez-vous faire avec OpenBusData ?
- Live API tools — query timetables, fares, disruptions, cancellations and real-time bus locations
- Stop search — fuzzy text search across every bus stop in the UK
- Route finder — discover all routes serving a pair of stops
- Journey planner — "get to X by Y o'clock" with support for direct and chained multi-leg journeys
- Live tracking — see exactly where buses are right now
Installation
Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).
openbusdata-mcpclaude mcp add openbusdata -e 'OPENBUS_API_KEY=<your openbus_api_key>' -- uvx openbusdata-mcp==1.0.2
{
"mcpServers": {
"openbusdata": {
"command": "uvx",
"args": [
"openbusdata-mcp==1.0.2"
],
"env": {
"OPENBUS_API_KEY": "<your openbus_api_key>"
}
}
}
}
Variables d'environnement
OPENBUS_API_KEYobligatoire secret Your UK Bus Open Data Service API key from https://data.bus-data.dft.gov.uk
Documentation
Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.
OpenBusData MCP Server
mcp-name: io.github.AndrewAubury/openbusdata
MCP server for the UK Bus Open Data Service with rich timetable parsing, stop search, route discovery, journey planning and real-time bus tracking.
Features
- Live API tools — query timetables, fares, disruptions, cancellations and real-time bus locations
- Stop search — fuzzy text search across every bus stop in the UK
- Route finder — discover all routes serving a pair of stops
- Journey planner — "get to X by Y o'clock" with support for direct and chained multi-leg journeys
- Live tracking — see exactly where buses are right now
Installation
Option 1: via uvx (recommended — no install needed)
uvx openbusdata-mcp
Option 2: via pip
pip install openbusdata-mcp
Configuration
Set your Bus Open Data Service API key as an environment variable:
export OPENBUS_API_KEY="your-api-key-here"
Get a free key at data.bus-data.dft.gov.uk.
Usage
With uvx (recommended)
Add to your MCP client (Claude Desktop, Cursor, etc.):
{
"mcpServers": {
"openbusdata": {
"command": "uvx",
"args": ["openbusdata-mcp"],
"env": {
"OPENBUS_API_KEY": "your-api-key-here"
}
}
}
}
With pip install
{
"mcpServers": {
"openbusdata": {
"command": "openbusdata-mcp",
"env": {
"OPENBUS_API_KEY": "your-api-key-here"
}
}
}
}
Development
# Create virtual environment
python -m venv .venv
source .venv/bin/activate # or .venv\Scripts\activate on Windows
# Install dependencies
pip install -e ".[dev]"
# Run server
python -m openbusdata_mcp.server
License
MIT
Questions fréquentes
Qu'est-ce que OpenBusData ?
MCP server for UK Bus Open Data with timetable parsing, journey planning and live tracking.
Comment installer OpenBusData ?
Il s'exécute sur votre machine. Dans Claude Code : claude mcp add openbusdata -e 'OPENBUS_API_KEY=<your openbus_api_key>' -- uvx openbusdata-mcp==1.0.2. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.
Faut-il une clé API pour OpenBusData ?
Oui. Il attend OPENBUS_API_KEY, à renseigner dans sa configuration.
OpenBusData est-il open source ?
Son code est public sur GitHub, mais le dépôt ne déclare pas de licence standard.
Qui maintient OpenBusData ?
Il est publié par AndrewAubury. AI.tn le référence sans le maintenir ni le recommander.
Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.