Skip to content
VS Code

transitland mcp server for VS Code

io.github.cyanheads/transitland-mcp-server

Global transit via Transitland v2 — operators, GTFS/GTFS-RT/GBFS feeds, routes, stops, departures.

client:VS Code transport:stdio runtime:npm

Install transitland mcp server in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "transitland-api-key",
      "description": "TRANSITLAND_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "transitland-base-url",
      "description": "TRANSITLAND_BASE_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-log-level",
      "description": "MCP_LOG_LEVEL",
      "password": true
    }
  ],
  "servers": {
    "transitland-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/transitland-mcp-server"
      ],
      "env": {
        "TRANSITLAND_API_KEY": "${input:transitland-api-key}",
        "TRANSITLAND_BASE_URL": "${input:transitland-base-url}",
        "MCP_LOG_LEVEL": "${input:mcp-log-level}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

transitland mcp server in other clients