Skip to content
MCP server

MCP Server Tfl

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

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
1.4.0
Listing updated
5 days ago

About MCP Server Tfl

MCP Server Tfl is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Install

Run in a terminal

claude mcp add mcp-server-tfl --env TFL_APP_KEY='<TFL_APP_KEY>' -- docker run -i --rm -e TFL_APP_KEY ghcr.io/oneill9/mcp-server-tfl:1.4.0

Add to claude_desktop_config.json

{
  "mcpServers": {
    "mcp-server-tfl": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "TFL_APP_KEY",
        "ghcr.io/oneill9/mcp-server-tfl:1.4.0"
      ],
      "env": {
        "TFL_APP_KEY": "<TFL_APP_KEY>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "mcp-server-tfl": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "TFL_APP_KEY",
        "ghcr.io/oneill9/mcp-server-tfl:1.4.0"
      ],
      "env": {
        "TFL_APP_KEY": "<TFL_APP_KEY>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "mcp-server-tfl": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "TFL_APP_KEY",
        "ghcr.io/oneill9/mcp-server-tfl:1.4.0"
      ],
      "env": {
        "TFL_APP_KEY": "<TFL_APP_KEY>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-server-tfl": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "TFL_APP_KEY",
        "ghcr.io/oneill9/mcp-server-tfl:1.4.0"
      ],
      "env": {
        "TFL_APP_KEY": "<TFL_APP_KEY>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "mcp-server-tfl": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "TFL_APP_KEY",
        "ghcr.io/oneill9/mcp-server-tfl:1.4.0"
      ],
      "env": {
        "TFL_APP_KEY": "<TFL_APP_KEY>"
      }
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Configuration

  • TFL_APP_KEYTfL API key — recommended for effective use. Without a key, TfL applies strict rate limits that will impact most real-world usage. Register free at https://api-portal.tfl.gov.uk/

Pricing

Open source

MCP Server Tfl FAQ

Is MCP Server Tfl free?

Yes. MCP Server Tfl is open source, so you can use and self-host it for free.

How do I add MCP Server Tfl to Claude Code?

Run this command in your terminal: claude mcp add mcp-server-tfl --env TFL_APP_KEY='<TFL_APP_KEY>' -- docker run -i --rm -e TFL_APP_KEY ghcr.io/oneill9/mcp-server-tfl:1.4.0

Where this comes from

  • Description: from the official MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers