# TfL Line Status Mcp

> An MCP server to get the current status of TfL lines

- **Type:** MCP server
- **Install:** `agentstack add mcp-reeceatkinson-tfl-line-status-mcp`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [reeceatkinson](https://agentstack.voostack.com/s/reeceatkinson)
- **Installs:** 0
- **Category:** [Integrations](https://agentstack.voostack.com/c/integrations)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [reeceatkinson](https://github.com/reeceatkinson)
- **Source:** https://github.com/reeceatkinson/TfL-line-status-mcp

## Install

```sh
agentstack add mcp-reeceatkinson-tfl-line-status-mcp
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# TfL Line Status MCP

A [MCP server](https://modelcontextprotocol.io/docs/getting-started/intro) to get the current status(es) of TFL lines using the [TfL Unified API](https://api-portal.tfl.gov.uk/). Built with FastMCP for easy deployment with streamable HTTP transport.

## Local Development

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

## Deployment

[](https://render.com/deploy?repo=https://github.com/reeceatkinson/TfL-line-status-mcp)

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):

```json
{
  "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...

## 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:**
```python
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:**
```python
get_mode_disruptions("tube,overground")
```

## API Reference

- [TfL Line Disruptions API](https://api-portal.tfl.gov.uk/api-details#api=Line&operation=Line_DisruptionByPathIds)
- [TfL Mode Disruptions API](https://api-portal.tfl.gov.uk/api-details#api=Line&operation=Line_DisruptionByModeByPathModes)

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [reeceatkinson](https://github.com/reeceatkinson)
- **Source:** [reeceatkinson/TfL-line-status-mcp](https://github.com/reeceatkinson/TfL-line-status-mcp)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-reeceatkinson-tfl-line-status-mcp
- Seller: https://agentstack.voostack.com/s/reeceatkinson
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
