How to Use the CTA MCP in Claude Code
Pipe real-time Chicago CTA transit data straight to your terminal with Claude Code.
Works with every AI agent you already use
…and any MCP-compatible client
Connect CTA MCP to Claude Code
Create your Vinkius account to connect CTA 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.
Terminal-based L train tracking with Claude Code
The `get_train_positions` tool lets you query the exact locations, run numbers, and delay statuses of active L trains directly from your command line. Claude Code pulls this system-wide fleet data instantly, saving you from navigating clunky web interfaces. You can pipe this train data directly into shell scripts or local JSON files. If you need to check if the Blue Line is backed up before leaving the office, Claude Code queries the live API and prints a clean, formatted terminal summary in seconds.
Scriptable CTA bus predictions on the command line
The `get_bus_predictions` tool returns real-time arrival times, route IDs, and vehicle tracking metrics for any Chicago bus stop. Claude Code queries these arrival predictions directly from your terminal session to help you automate commute checks. You can use this MCP Server to build cron jobs or local shell aliases. Claude Code hooks into `get_bus_stops` to resolve stop IDs, maps them to your local coordinates, and outputs precise departure times without any GUI overhead.
Headless service alerts for DevOps pipelines
The `get_service_alerts` tool exposes active transit disruptions, maintenance schedules, and alternative route recommendations. Claude Code parses these raw alerts via the command line, making it easy to feed transit data into status monitors. If you are running automated tests or status dashboards, Claude Code uses `get_route_status` to verify system health. It checks the official `get_system_time` to align timestamps, giving your scripts a reliable way to validate transit API connectivity.
Set up CTA 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 seecta-mcpwith a green status indicator. - 3
Start using tools
Ask Claude Code something like "Check my latest CTA transactions." It will automatically discover and invoke the available CTA tools.
claude mcp add --transport http cta-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 CTA MCP in Claude Code
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the CTA MCP today
We host it, we monitor it, we maintain it. You just paste one token.