Skip to main content

MCP server for UK Bus Open Data Service with timetable parsing and journey planning

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openbusdata_mcp-1.0.2.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openbusdata_mcp-1.0.2-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

Details for the file openbusdata_mcp-1.0.2.tar.gz.

File metadata

  • Download URL: openbusdata_mcp-1.0.2.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for openbusdata_mcp-1.0.2.tar.gz
Algorithm Hash digest
SHA256 2346e78f27758bff21cd211657247b8de33a9f00b9d805cbee90311c823d1106
MD5 b09efc215a2962250cc011b0296b4ccf
BLAKE2b-256 9f302cb360a6fa8d2ce909a61aabbcc0b3a5acd8d4683bbe58ef6976b773356f

See more details on using hashes here.

Provenance

The following attestation bundles were made for openbusdata_mcp-1.0.2.tar.gz:

Publisher: publish-mcp.yml on AndrewAubury/openbusdata-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file openbusdata_mcp-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: openbusdata_mcp-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 21.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for openbusdata_mcp-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5e5b1e7df40d7fa8b0017818f5d032318ae7121f4688d3163318be6e1dbe2d71
MD5 4bab31b0d6ac710a4b2a21795083f3f8
BLAKE2b-256 1ba080ccafe37d3840b19c0f89d2dedc1ba392cacfea1d7d4bd15e8731361d52

See more details on using hashes here.

Provenance

The following attestation bundles were made for openbusdata_mcp-1.0.2-py3-none-any.whl:

Publisher: publish-mcp.yml on AndrewAubury/openbusdata-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page