MOTIS explorer

v0.2.0
org.litote/motis-mcp-app Checked 2 days ago Published 3 days ago

MCP App for the public transport of any MOTIS server (Transitous by default): journeys, boards, maps

Values you need

VariableWhat it is
MOTIS_APP_CONTACTrequired E-mail address or website URL, required with Transitous (default MOTIS server) by its usage policy
MOTIS_BASE_URLoptional MOTIS 2 server, default https://api.transitous.org/

Docker discovery passed

Requires Docker

Run in a terminal
claude mcp add motis-mcp-app -e 'MOTIS_APP_CONTACT=<MOTIS_APP_CONTACT>' -- docker run -i --rm -e MOTIS_APP_CONTACT ghcr.io/litote/motis-mcp-app:0.2.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "motis-mcp-app": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MOTIS_APP_CONTACT",
        "ghcr.io/litote/motis-mcp-app:0.2.0"
      ],
      "command": "docker",
      "env": {
        "MOTIS_APP_CONTACT": "<MOTIS_APP_CONTACT>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "motis-mcp-app": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MOTIS_APP_CONTACT",
        "ghcr.io/litote/motis-mcp-app:0.2.0"
      ],
      "command": "docker",
      "env": {
        "MOTIS_APP_CONTACT": "<MOTIS_APP_CONTACT>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "MOTIS_APP_CONTACT",
      "id": "motis-app-contact",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "motis-mcp-app": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MOTIS_APP_CONTACT",
        "ghcr.io/litote/motis-mcp-app:0.2.0"
      ],
      "command": "docker",
      "env": {
        "MOTIS_APP_CONTACT": "${input:motis-app-contact}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.motis-mcp-app]
command = "docker"
args = ["run", "-i", "--rm", "-e", "MOTIS_APP_CONTACT", "ghcr.io/litote/motis-mcp-app:0.2.0"]
env = { "MOTIS_APP_CONTACT" = "<MOTIS_APP_CONTACT>" }

For AI agents

  1. Ask the user for: MOTIS_APP_CONTACT. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: search_places, server_info, explore_area, route_details, reachability, departures, trip_details, plan_journey, ….
  5. If it fails, check that the required runtime is installed (Docker) and that the values above are set.

Machine-readable: install.md · manifest.json