How to Use the TfL MCP in Claude Code
Script TfL operations using Claude Code via the MCP Server in CI/CD pipelines.
Works with every AI agent you already use
…and any MCP-compatible client
Connect TfL MCP to Claude Code
Create your Vinkius account to connect TfL to Claude Code — we handle the hosting, security, and runtime updates so you don't have to. No server setup required.
Key Capabilities
Fetch real-time transport feeds.
Run `get_arrivals` to get predicted arrival times for any specific TfL stop point. This is ideal for running background jobs that constantly monitor service readiness. The output includes timestamps, line names, and vehicle IDs, making it easy to pipe this data into logging systems or triggering notifications in a CI pipeline.
Check London road conditions via MCP Server.
Execute `get_road_disruptions` from your script. You can filter by specific roads, letting the script check for incidents or planned works affecting delivery routes. The returned severity levels and alternative recommendations let you build robust failure detection logic into your deployment scripts.
Map out transport networks.
Use `get_modes` to list all available transport modes in the TfL network. This is essential for defining the full scope of a service or validating input types before running complex journey calculations. It provides structured data on whether your system needs to handle 'tube,' 'bus,' or 'river' services.
Set up TfL MCP in Claude Code
Prerequisites
- Claude Code CLI installed (
npm install -g @anthropic-ai/claude-code) - Active Vinkius subscription with a valid endpoint token
- 1
Run the add command
Open your terminal and run the command shown on the right. Replace
[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. Use--scope userto make it available across all projects. - 2
Verify the connection
Start a Claude Code session and type
/mcpto list connected servers. You should seetfl-mcpwith a green status indicator. - 3
Start using tools
Ask Claude Code something like "Check my latest TfL transactions." It will automatically discover and invoke the available TfL tools.
claude mcp add --transport http tfl-mcp https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about TfL MCP in Claude Code
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the TfL MCP today
We host it, we monitor it, we maintain it. You just paste one token.