Skip to content

An MCP server to get the current status of TfL lines

License

Notifications You must be signed in to change notification settings

reeceatkinson/TfL-line-status-mcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TfL Line Status MCP

A MCP server to get the current status(es) of TFL lines using the TfL Unified API. Built with FastMCP for easy deployment with streamable HTTP transport.

Local Development

pip install -r requirements.txt
python src/server.py

Deployment

Deploy to Render

Click the button above to deploy your own instance to Render. Your server will be available at https://your-service-name.onrender.com/mcp

Claude Desktop Setup

Add this to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "tfl-line-status": {
      "command": "python3",
      "args": ["/path/to/TfL-line-status-mcp/src/server.py"]
    }
  }
}

Replace /path/to/ with the absolute path where you cloned this repository.

Try It Out!

Restart the Claude Desktop app and then ask the status of a TfL line. You should get something like this...

A screenshot of a Claude response using the MCP server

Tools

get_line_disruptions

Get disruptions for specific TfL lines (e.g., district, windrush, victoria, northern).

Parameters:

  • lines (string): Comma-separated list of line IDs (e.g., 'district,windrush' or 'victoria')

Example:

get_line_disruptions("district,victoria")

get_mode_disruptions

Get disruptions for TfL transport modes (tube, overground, dlr, elizabeth-line, tram, bus).

Parameters:

  • modes (string): Comma-separated list of modes (e.g., 'tube,dlr' or 'overground')

Example:

get_mode_disruptions("tube,overground")

API Reference

About

An MCP server to get the current status of TfL lines

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages