mcpField
T
TransCAPI

TransCAPI

Local
transcapi.comMaps & Travel0Updated 6d ago

About TransCAPI

TransCAPI is an MCP server that gives AI assistants live public-transport information for Great Britain, Ireland, the Netherlands and Belgium. Its read-only tools cover departures, journey planning, fares and disruptions.

Key features

  1. 01Live bus and rail departures
  2. 02Live bus locations and service details
  3. 03Journey planning with rail fares
  4. 04Route-matched disruption information
  5. 05Stop and place searches
  6. 06Measured bus punctuality

Use cases

  1. 01Check the next train and its delay
  2. 02Locate a bus near a stop or point
  3. 03Plan a supported public-transport journey
  4. 04Check disruptions affecting a route

MCP support

Exposes read-only TransCAPI transport data and search tools to MCP clients, including live departures, vehicles, journeys and disruptions.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"com-transcapi": {
"command": "uvx",
"args": [
"transcapi-mcp"
],
"env": {
"TRANSCAPI_API_KEY": "<TRANSCAPI_API_KEY>",
"TRANSCAPI_BASE_URL": "<TRANSCAPI_BASE_URL>"
}
}
}
}
Run commanduvx transcapi-mcp
Environment variables to set
TRANSCAPI_API_KEYSecretYour TransCAPI API key. Free at https://www.transcapi.com/signup
TRANSCAPI_BASE_URLAPI address, if not https://api.transcapi.com

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
pypitranscapi-mcp0.1.3

Tools

10

Saved tool list · updated 5d ago

ParameterTypeRequiredDescription
latanyNo
lonanyNo
limitintegerNo
querystringYes

Details

From the project README

TransCAPI MCP server

Lets AI assistants such as Claude answer questions about public transport in Great Britain and Ireland 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, Wales and the island of Ireland (plus the Netherlands and Belgium): stops and places, bus and rail departures with live running, live bus positions, journey planning with rail fares, disruptions matched to a route, and measured bus punctuality.

Setup

  1. Get a free API key at https://www.transcapi.com/signup (200 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.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.