Skip to main content
Glama

RouteMate

CI License: Apache-2.0 Release Go Reference Go version MCP Registry Glama MCP server Glama MCP connector

An MCP server that gives AI assistants London journey options with the known issues on every leg, for now or for a later date.

RouteMate uses TfL open data; not affiliated with or endorsed by Transport for London.

What it does

Ask your assistant things like "I need to be at Canary Wharf by 09:25 next Thursday" or "get me to Heathrow with as little walking as possible".

  • Several routes, side by side: rail, bus, walking, and mixed options, so your assistant can weigh speed against changes and walking.

  • Issues on each leg: delays and closures, planned works, bus diversions, lift faults, road works, and crowding.

  • Step-free travel: step-free routes when you ask for them, and station access with every lift out of service.

  • Plan ahead: arrive by, or leave at, a time days ahead, to fit what is in your calendar.

Use the hosted connector, or run it yourself with your own TfL key.

Related MCP server: TFL MCP Server for Poke

Hosted connector

Add a custom connector (also called a remote MCP server) in your assistant with this URL:

https://routemate.city/mcp

Sign in with Apple, Google, or an email link, choose a plan, and allow access. It costs £1.99 a month or £19.99 a year, VAT included. Clients that cannot sign in can send a personal API key from your account page. Running RouteMate yourself is free and never gated.

Tools

All tools only read.

Tool

What it does

plan_journey

Route options between two places, now, by a given time, or leaving at one, with the issues on each leg

check_route

Re-checks a planned route shortly before leaving

find_places

Finds stations, stops, postcodes, addresses, and bike hire docks

get_departures

Next live departures at a stop or station

get_line_status

Line status now or for later dates, and network notices

get_station_access

Step-free access, lift faults, and crowding at one station

Self-host

You need Go 1.27.1 or later and your own API key from the TfL API portal.

git clone https://github.com/AlexanderTar/routemate-mcp
cd routemate-mcp
go build -o routemate ./cmd/routemate

The server reads the key from the TFL_APP_KEY environment variable and sends it only as a request header.

Claude Desktop

Add this to claude_desktop_config.json (Settings, Developer, Edit Config), with the full path to the binary you built, then restart Claude Desktop:

{
  "mcpServers": {
    "routemate": {
      "command": "/path/to/routemate",
      "args": ["serve", "--stdio"],
      "env": { "TFL_APP_KEY": "your-key" }
    }
  }
}

Claude Code

claude mcp add --env TFL_APP_KEY=your-key --transport stdio routemate -- /path/to/routemate serve --stdio

Codex

codex mcp add routemate --env TFL_APP_KEY=your-key -- /path/to/routemate serve --stdio

Other clients that start local servers

Run /path/to/routemate serve --stdio with TFL_APP_KEY in its environment.

ChatGPT and other clients that need a URL

ChatGPT cannot start a program on your computer. Its Secure MCP Tunnel connects it to a server on your machine without putting that server on the public internet: point the tunnel at routemate serve --stdio, or at the HTTP server below, then add it in ChatGPT as a custom MCP server.

To serve streamable HTTP instead:

TFL_APP_KEY=your-key ./routemate serve --http   # http://127.0.0.1:8080/mcp

Use --addr to listen elsewhere. Before you expose this to other machines, know that:

  • --http has no sign-in. Anyone who can reach it can use your key and your quota.

  • A request arriving over loopback is refused unless its Host header names localhost or a loopback address, so a forwarding service on the same machine has to send Host: localhost.

  • Requests from other websites in a browser are refused.

Privacy

The privacy policy covers the hosted service. In short:

  • It keeps your sign-in email, your plan, and the apps and API keys you connect. It runs no analytics and no advertising.

  • The places and times you ask about go to TfL to be answered. Planned routes stay in server memory for up to 2 hours so your assistant can re-check them, and are never written to disk or logs.

  • Keys, tokens, places, and coordinates are removed from the request log.

  • Stripe handles payments, so the server never sees your card.

  • You can delete your account at any time.

Self-hosted

A self-hosted server writes no record of your journeys or preferences; your assistant sends the preferences on each call. The places and times you ask about go to TfL to plan the journey. Planned routes stay in server memory for up to 2 hours so your assistant can re-check them: the lines, stations, stops, and times of each option. A start or end at a station or stop is kept as that stop, while a home address, postcode, or coordinates are not. They are never written to disk or logs. It writes one file, a key for signing route tokens, at routemate/route.key in your user config directory (or set ROUTEMATE_TOKEN_KEY, at least 32 bytes). If you run the server yourself, the project receives nothing from it.

Development

go test ./...                       # recorded data, no network
go test -tags live -count=1 ./...   # real API, needs TFL_APP_KEY

eval/ measures how well a language model uses the tools: it plays fixed tasks over recorded data and scores what the model chose. See docs/eval for results.

To run the hosted server yourself, see docs/deploy-railway.md and docs/sign-in.md.

Contributing

Read CONTRIBUTING.md and the Code of Conduct. CHANGELOG.md lists what changed. Report a security problem as SECURITY.md says, not in an issue.

Attribution

Powered by TfL Open Data. Contains OS data © Crown copyright and database rights 2016 and Geomni UK Map data © and database rights [2019].

Answers with National Rail legs also use National Rail data from National Rail Enquiries.

RouteMate uses TfL open data; not affiliated with or endorsed by Transport for London.

Licence

Apache-2.0. See LICENSE and NOTICE. The fonts and the Apple logo artwork the hosted pages use, and the recorded TfL data in the tests, are under their own terms, listed there.

Available Tools

6 tools
check_routeCheck a planned routeA
Read-only
Inspect

Re-check a planned route shortly before leaving: pass the option's route_token copied exactly (a short id, kept for up to 2 hours and lost on restart), or legs (mode, line, from, to, start) if you do not have it. Read the issue texts, not only the status.

Inputs: legs, depart_at, route_token. Returns: status, delay_min, confidence, new_issues, +7 more

find_placesFind placesA
Read-only
Inspect

Resolve text to London stations, stops, postcodes, addresses or points, to get the id other tools take. Not needed before plan_journey, which takes names and addresses itself. For hire bike docks give the place as query and types ["bike_dock"]: bikes, e-bikes and empty docks now.

Inputs: query (required), near, limit, types. Returns: places, confidence, attribution, retrieved_at, +1 more

get_departuresLive departuresA
Read-only
Inspect

Next live departures at a London stop or station, soonest first: pass the id from find_places, and narrow with line (a line id such as northern or 133) or towards (part of a destination).

Inputs: stop (required), line, limit, towards. Returns: note, confidence, departures, attribution, +2 more

get_line_statusLine and network statusA
Read-only
Inspect

Status of London lines with our severity, now or for later dates (published works), plus network-wide notices such as strikes. affected gives only the two ends of a section: every station between them is affected too, so to know whether one trip is hit, call plan_journey for it. A line under status_unknown_lines is not known to be running well.

Inputs: to, from, lines, modes, +1 more. Returns: note, lines, notices, confidence, +7 more

get_station_accessStation step-free accessA
Read-only
Inspect

Step-free access at one station as it stands now: level by line, lifts out, closures and notices, where to board for level access, and how crowded it is. Pass a station id from find_places; a platform id from an issue leads to its station. For a step-free journey, give plan_journey the accessibility preference instead.

Inputs: station (required). Returns: note, notices, station, crowding, +9 more

plan_journeyPlan a journeyA
Read-only
Inspect

Route options between two London places with every known issue on each leg, now or for a later time. from and to take a station name, postcode, address or lat,lon directly. Options span time, changes and cost: fastest, fewest changes and cheapest are labelled; ask preferences optimise cheapest or fewest_changes when the traveller wants those. Each leg already carries its closures, delays, diversions in that direction, lift faults, road works and crowding, so there is no need to check its lines or stations separately; a leg with no issues has none known, unless it is status_unknown or unavailable_feeds names a feed that could not be read. Read an issue's text: it may apply only at some hours or stops. Times are ISO 8601; without an offset they are London time. Give arrive_by for a calendar event (its start minus your buffer). Send only places and times, never event titles, attendees or notes.

Inputs: to (required), from (required), via, detail, +4 more. Returns: hint, notes, notice, applied, +7 more

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 6 tools

    Disambiguation4/5

    Each tool covers a distinct resource: place lookup, journey planning, route re-checking, departures, line status, and step-free access. The main risk is check_route vs plan_journey, but descriptions make the boundary clear (route_token from a prior plan vs fresh from/to query), and get_line_status/get_station_access are explicitly cross-referenced to plan_journey so agents know when to prefer the aggregate call.

    Naming Consistency5/5

    All six tools follow a consistent snake_case verb_noun pattern (check_route, find_places, get_departures, get_line_status, get_station_access, plan_journey). Verbs are meaningful and predictable (get_* for reads, plan/check for actions).

    Tool Count5/5

    Six tools is well-scoped for a London transit assistant: one per core verb (resolve, plan, re-check, departures, line status, station access) with no filler. Each tool earns its place and nothing feels redundant at the surface level.

    Completeness4/5

    The surface covers the full journey lifecycle from place resolution through planning, departure boards, line disruption, and step-free/access detail, plus a re-check flow. Minor gaps remain: no explicit disruptions listing across stops, no saved/recent trip retrieval beyond the 2-hour route_token, and no persistent state if the server restarts.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers