OpenBusData
MCP server for UK Bus Open Data with timetable parsing, journey planning and live tracking.
ماذا يمكنك أن تفعل مع 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
التثبيت
أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: .cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «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>"
}
}
}
}
متغيرات البيئة
OPENBUS_API_KEYإلزامي سري Your UK Bus Open Data Service API key from https://data.bus-data.dft.gov.uk
التوثيق
مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على 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
الأسئلة الشائعة
ما هو OpenBusData؟
MCP server for UK Bus Open Data with timetable parsing, journey planning and live tracking.
كيف أثبّت OpenBusData؟
يعمل على جهازك. في Claude Code: claude mcp add openbusdata -e 'OPENBUS_API_KEY=<your openbus_api_key>' -- uvx openbusdata-mcp==1.0.2. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.
هل يحتاج OpenBusData إلى مفتاح API؟
نعم. يتطلب OPENBUS_API_KEY، وتضبطها في إعداداته.
هل OpenBusData مفتوح المصدر؟
شيفرته علنية على GitHub، لكن المستودع لا يعلن ترخيصًا قياسيًا.
من يصون OpenBusData؟
ينشره AndrewAubury. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.
من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.