Back to Browse

Transcapi MCP Server

Developer ToolsLow Risk10.0MCP RegistryLocal
Free

Server data from the Official MCP Registry

Live bus and rail departures, bus positions, disruptions and journey planning for Great Britain.

About

Live bus and rail departures, bus positions, disruptions and journey planning for Great Britain.

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (0 strong, 3 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry.

4 files analyzed · 1 issue found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

env_vars

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

Your TransCAPI API key. Free at https://www.transcapi.com/signupRequired

Environment variable: TRANSCAPI_API_KEY

API address, if not https://api.transcapi.comOptional

Environment variable: TRANSCAPI_BASE_URL

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "com-transcapi-mcp": {
      "env": {
        "TRANSCAPI_API_KEY": "your-transcapi-api-key-here",
        "TRANSCAPI_BASE_URL": "your-transcapi-base-url-here"
      },
      "args": [
        "transcapi-mcp"
      ],
      "command": "uvx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

TransCAPI MCP server

Lets AI assistants such as Claude answer questions about public transport in Great Britain with live data: "When's the next train from Leeds to York, and is it on time?", "Where's the 52 bus?", "Is anything disrupting my route home?"

It connects an assistant to TransCAPI, which covers England, Scotland and Wales: stops and places, bus and rail departures with live running, live bus positions, disruptions and journey planning.

Setup

  1. Get a free API key at https://www.transcapi.com/signup (1,000 requests a day, every endpoint).

  2. Add the server to your MCP client. For Claude Desktop, in claude_desktop_config.json:

    {
      "mcpServers": {
        "transcapi": {
          "command": "uvx",
          "args": ["transcapi-mcp"],
          "env": { "TRANSCAPI_API_KEY": "your-key" }
        }
      }
    }
    

    For Claude Code:

    claude mcp add transcapi --env TRANSCAPI_API_KEY=your-key -- uvx transcapi-mcp
    

    Or install it yourself with pip install transcapi-mcp and run transcapi-mcp.

Tools

ToolWhat it answers
search_placesFind a town, village, postcode or stop by name
nearby_stopsBus, tram and rail stops near a point, with which way the buses go
nearby_stationsRail stations near a point
bus_departuresWhat's leaving (or arriving at) a bus stop, with live times for tracked buses
rail_departuresLive trains at a station: expected times, platforms, cancellations, delay reasons
train_serviceEvery station one train calls at, live for today
bus_serviceEvery stop one bus journey calls at, and where the bus is now
live_busesBuses on the road near a point, with delays where tracked
disruptionsPlanned works, incidents and line status, by area, line or a journey's route
plan_journeyPublic transport journeys between two points (South and West Yorkshire and West Sussex for now)

All tools are read-only.

Configuration

Variable
TRANSCAPI_API_KEYRequired. Your TransCAPI key.
TRANSCAPI_BASE_URLOptional. Defaults to https://api.transcapi.com.

Attribution

TransCAPI is built on official open data. If you show its data to other people, credit the sources as described at https://www.transcapi.com/docs/data-sources.

Licence

MIT.

Reviews

No reviews yet

Be the first to review this server!