Repository navigation
Releases
Releases · esikora/motis-mcp
v0.1.0
First public release of motis-mcp: a local MCP server (stdio) that gives AI agents access to German and wider European public transport data. It acts as a client of the MOTIS API and calls the public Transitous instance.
What it does
- Six read-only tools:
find_stations,get_stop(with the lines serving a stop),get_departures,get_arrivals,plan_journeyandget_trip. - Journeys: filter by kinds of transport (including a Deutschlandticket set), maximum number of transfers, minimum transfer time, up to two via stops with minimum stays, bike transport, wheelchair routing, and paging to earlier or later connections.
- Departure and arrival boards: any time window, transport filter, a result cap with
moreAvailable, and disruption notices listed once. - Local times: every time is given in the local time zone of its station, so journeys across borders read correctly.
- Made for agents: compact output sized for agents' tool-output limits, and short hints in results where they help (e.g. no bike-friendly journey found, a station name that only loosely matches).
- Data attribution: every result ends with an attribution line for Transitous and OpenStreetMap. The server's startup line in your client's MCP log names the motis-mcp and motis-client versions.
Setup
Requires Node.js 22 or later and an AI client that supports local (stdio) MCP servers, e.g. Claude Desktop, Claude Code, Codex CLI, VS Code, Cursor or Google Antigravity.
git clone --branch v0.1.0 https://github.com/esikora/motis-mcp.git
cd motis-mcp
npm install
npm run buildThen register dist/index.js in your client: see the README, Requirements and setup.
Good to know
- Data source: the public Transitous instance, a community-run service from open data. It is not Deutsche Bahn's official backend, there is no uptime guarantee, and its usage policy allows non-commercial use only. Details: README, Data source & usage policy and Known limitations.
- No ticket or price data.
- Early version (0.x): tool parameters and outputs may still change between minor versions; such changes will be marked in the release notes.
Built with
@motis-project/motis-client2.11.4: the MOTIS API client generated by the MOTIS project; sends the requests to the MOTIS API (station search, stop details, boards, journey planning, trips).@modelcontextprotocol/sdk1.32.2: the official MCP TypeScript SDK; provides the MCP server side (handshake, tool registration, stdio transport).zod4.6.7: defines and validates the tool parameters, so invalid input is rejected before any request is sent.
These are the versions this release was tested with (package-lock.json); npm install installs them.
For contributors
Issues first, then pull requests: see CONTRIBUTING.md. Security vulnerabilities: please report them privately, see SECURITY.md. Guidance for AI coding agents is in AGENTS.md.