MCPInstall
mta-mcp logo

mta-mcp

by nkasmanoff 3 stars nkasmanoff/mta-mcp

MCP server for querying NY transit data

READMEmain

MTA MCP Server

This is a simple model context protocol (MCP) server that provides information about the next train arrival at a given station and direction using New York City's MTA subway system.

Next steps:

  • Integrate location?
  • More testing with different lines and spelling issues

How to run

To get started please follow the instructions in the MCP documentation.

uv run subway.py

Next add this to your .cursor/mcp.json file:

{
    "mcpServers": {
        "mta_subway_tracker": {
            "command": "uv",
            "args": ["--directory", "<path to your project>", "run", "subway.py"]
        }
    }
}

Example questions:

When is the next express south train arriving at 14th street?

Answer:

Okay, I can help you with that. I'll check for the next southbound train at 14th St-Union Sq using the feed for lines 1, 2, 3, 4, 5, and 6.


Ran tool
The next express southbound trains arriving at 14th St-Union Sq are:
- 4 train at 15:52:41
- 5 train at 15:56:24

There are also local 6 trains arriving, the next one is at 15:46:27.

Created by Jonathan Allen and Noah Kasmanoff

More Location Services MCP servers

Similar servers from the same category.

Baidu Map

baidu-maps

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。关于MCP协议,详见MCP官方文档。 目前提供的MCP工具列表包含8个核心API接口和MCP协议的对接, 涵盖逆地理编码、地点检索、路线规划等。 依赖MCP Python SDK和MCP Typescript SDK开发,任意支持MCP协议的智能体助手(如Claude、Cursor以及千帆AppBuilder等)都可以快速接入。

maplocation

Google Maps

modelcontextprotocol

Location services, directions, and place details

location

Gaode Map MCP Server Based on Streamable HTTP

Map

A HarmonyOS Native Application for Querying Weather Using Amap MCP

WeatherQuery+1