Skip to content
VS Code

mcp server tfl for VS Code

io.github.oneill9/mcp-server-tfl

Community-built server providing real-time London transport data via the TfL Unified API

client:VS Code transport:stdio runtime:oci

Install mcp server tfl in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "tfl-app-key",
      "description": "TFL_APP_KEY",
      "password": true
    }
  ],
  "servers": {
    "mcp-server-tfl": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/oneill9/mcp-server-tfl:1.4.0"
      ],
      "env": {
        "TFL_APP_KEY": "${input:tfl-app-key}"
      }
    }
  }
}

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

mcp server tfl in other clients