How to Use the LA Metro MCP in Claude Code
Pipe live LA Metro transit data directly into your terminal scripts and automated pipelines with Claude Code.
Works with every AI agent you already use
…and any MCP-compatible client
Connect LA Metro MCP to Claude Code
Create your Vinkius account to connect LA Metro 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.
Headless transit monitoring
The LA Metro MCP Server lets your terminal scripts track public transit infrastructure directly. You can run a headless cron job where Claude Code calls `get_bus_locations` to log fleet density during rush hour. Nobody needs a UI to monitor the grid. Claude Code hits `get_service_alerts` and pipes the output to your Slack webhook whenever a major rail incident occurs.
Automated schedule validation (Claude Code MCP Server)
Transit authorities change timetables constantly. You can build a CI pipeline where Claude Code pulls `get_bus_schedule` and diffs it against your local database to catch silent schedule updates. If a route changes, the agent queries `get_bus_routes` to verify the new path. It generates a migration script for your backend and creates a pull request directly from the command line.
Command-line trip planning
Sometimes you just need raw routing data without touching a browser. Claude Code uses `get_rail_to_rail` to calculate travel times between stations and outputs the result as raw JSON. The CLI tool then pulls `get_rail_arrivals` to append live train delays to the output. You get an exact, terminal-native snapshot of the transit network that you can feed into your other backend scripts.
Set up LA Metro 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 seela-metro-mcpwith a green status indicator. - 3
Start using tools
Ask Claude Code something like "Check my latest LA Metro transactions." It will automatically discover and invoke the available LA Metro tools.
claude mcp add --transport http la-metro-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 LA Metro MCP in Claude Code
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the LA Metro MCP today
We host it, we monitor it, we maintain it. You just paste one token.