How to Use the TransportAPI MCP in Claude Code
Automate UK transit monitoring from the terminal. Run TransportAPI checks using Claude Code in CI/CD pipelines.
Works with every AI agent you already use
…and any MCP-compatible client
Connect TransportAPI MCP to Claude Code
Create your Vinkius account to connect TransportAPI to Claude Code and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Schedule Service Reliability Checks
Use `get_updates` to run scheduled reports on service reliability. This function fetches active alerts, disruption descriptions, affected services (bus, rail, underground), and expected duration across Great Britain. You can pipe this output into logging systems or ticketing platforms for automated monitoring.
Generate Comprehensive Station Reports
To audit a station's status, run `get_station_info` to retrieve all facility details and operational data. For service listings, the `get_rail_services` tool pulls every calling service, including TOCs and service types, which is perfect for generating nightly reports. This allows you to automate infrastructure checks via shell scripts.
Discover and Validate Transit Inputs
Before running any complex query, execute `search_stops` to get a list of valid Naptan stop IDs. This is essential for scripting input validation, ensuring your automated jobs don't fail because of a typo in a location name. This robust discovery mechanism keeps your CI/CD pipelines running smoothly.
Set up TransportAPI 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 seetransportapi-mcpwith a green status indicator. - 3
Start using tools
Ask Claude Code something like "Check my latest TransportAPI transactions." It will automatically discover and invoke the available TransportAPI tools.
claude mcp add --transport http transportapi-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 TransportAPI MCP in Claude Code
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the TransportAPI MCP today
We host it, we monitor it, we maintain it. You just paste one token.