How to Use the MTA MCP in Claude Code
Pipe live MTA transit data directly into your terminal scripts using Claude Code for headless NYC subway and bus monitoring.
Works with every AI agent you already use
…and any MCP-compatible client
Connect MTA MCP to Claude Code
Create your Vinkius account to connect MTA 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.
Query Live Transit Data from the CLI
`get_subway_feed` outputs raw, real-time subway arrival and delay status directly to your terminal. Claude Code lets you run quick queries to check the status of specific lines and pipe the JSON output directly into other command-line utilities. Check the status of the entire subway network without opening a browser. This MCP Server gives you direct access to live transit coordinates from any SSH session or terminal window.
Automate Terminal Bus Tracking with Claude Code
`get_bus_predictions` delivers instant arrival estimates for any NYC bus stop. The CLI tool queries this tool, filters the results by route, and outputs clean text that you can parse with grep or awk in your shell scripts. If you need to monitor active bus fleets, `get_bus_vehicles` provides real-time GPS coordinates. Running cron jobs allows you to log this data, helping you track fleet performance over time.
Monitor Commuter Rail and Service Alerts
`get_service_alerts` retrieves current system disruptions, maintenance schedules, and alternative route recommendations. Terminal scripts parse these alerts to help you build automated bash scripts that notify your team when major lines go down. Query `get_lirr_feed` and `get_metro_north_feed` to check commuter rail statuses. Your terminal agent handles the API requests in the background, outputting structured data that fits perfectly into your terminal-based workflows.
Set up MTA 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 seemta-mcpwith a green status indicator. - 3
Start using tools
Ask Claude Code something like "Check my latest MTA transactions." It will automatically discover and invoke the available MTA tools.
claude mcp add --transport http mta-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 MTA MCP in Claude Code
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the MTA MCP today
We host it, we monitor it, we maintain it. You just paste one token.