Community-built server providing real-time London transport data via the TfL Unified API
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"tfl-mcp-server": {
"args": [
"-y",
"@oneill9/tfl-mcp-server"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Disclaimer: This is a community-built project. It is not affiliated with, endorsed by, or connected to Transport for London (TfL). This project consumes the publicly available TfL Unified API.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in maps
A Model Context Protocol (MCP) server providing TomTom's location services, search, routing, and traffic data to AI agents.
Real-time BART departures, trip planning, fares, stations, and advisories.
MCP server for the VesselAPI — maritime vessel tracking, port events, emissions, and navigation data
Fair meeting point discovery for AI agents with isochrone-based travel time fairness
MCP Security Weekly
Get CVE alerts and security updates for io.github.oneill9/mcp-server-tfl and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Disclaimer: This is a community-built project. It is not affiliated with, endorsed by, or connected to Transport for London (TfL). This project consumes the publicly available TfL Unified API.
A MCP server that exposes the TfL (Transport for London) Unified API as tools, allowing AI assistants like Claude to query live London transport data.
Available in two implementations:
Step 1 — Add to Claude Desktop
Open your Claude Desktop config file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.jsonOption A: Node.js MCPB (recommended)
Download tfl-mcp-server.mcpb from GitHub Releases and install it in Claude Desktop, or add manually:
{
"mcpServers": {
"tfl-mcp-server": {
"command": "npx",
"args": ["-y", "@oneill9/tfl-mcp-server"]
}
}
}
Option B: Docker
{
"mcpServers": {
"tfl-mcp-server": {
"command": "docker",
"args": ["run", "-i", "--rm", "ghcr.io/oneill9/tfl-mcp-server:latest"]
}
}
}
Step 2 — Add a TfL API key (recommended)
Without a key, TfL applies strict rate limits that will impact most real-world usage. Register a free key and pass it via the TFL_APP_KEY environment variable:
"env": { "TFL_APP_KEY": "your_key_here" }
Step 3 — Restart Claude Desktop and start asking questions
Example: "Is the Central line running normally?", "When is the next bus from Oxford Circus?"
For full setup details (Java direct, Docker options), see docs/installation.md.
| Tool | Description | TfL Endpoint |
|---|---|---|
service_status | Current status and disruptions by mode | GET /Line/Mode/{modes}/Status |
arrivals | Live arrivals at a stop by name | GET /StopPoint/{naptan}/Arrivals |
journey | Plan a journey between two points | GET /Journey/JourneyResults/{from}/to/{to} |
bike_points | List Santander Cycles docking stations | GET /BikePoint |
crowding | Live station crowding level by name | GET /Crowding/{naptan}/Live |
fares | Fare information between two named stops | GET /StopPoint/{id}/FareTo/{targetId} |
Note: The server uses the
/StopPoint/Search/{query}endpoint internally to automatically resolve stop names to NaPTAN IDs for thearrivals,crowding, andfarestools.
The service_status tool includes MCP Apps support as a progressive enhancement. UI-capable hosts (e.g. Claude Desktop) can render an interactive service status board alongside the text response. Non-UI hosts continue to receive the standard text output.
See docs/tools.md for full details.
This server is distributed as a Desktop extension (MCPB) using stdio transport. It does not implement OAuth or any server-side authentication.
The TfL API uses a simple API key (TFL_APP_KEY) that you supply as an environment variable. A key is strongly recommended — without one, TfL applies st