sl-mcp

A Model Context Protocol server over Stockholm public transport (SL) data — realtime departures, lines, deviations, and trip planning.

Endpoint

POST https://ai.memention.net/sl-mcp/mcp

Transport: Streamable HTTP   Content-Type: application/json

Authentication

The endpoint requires a shared-secret token. Pass it as either:

Tools

find_siteFind a stop, station, or platform by name.
next_departuresRealtime departures from a site, optionally filtered by mode or line.
list_linesAll SL lines, filterable by mode or designation.
get_deviationsCurrent and upcoming service disruptions across the network.
plan_tripPlan A→B by transit, with optional time, arrive-by, via/not-via.
system_infoCurrent schedule validity window.
transport_authoritiesList of authorities operating within SL's network.
healthServer health and cache diagnostics.

Example client config (Claude Desktop / Code)

{
  "sl": {
    "type": "http",
    "url": "https://ai.memention.net/sl-mcp/mcp",
    "headers": { "Authorization": "Bearer <TOKEN>" }
  }
}

Data sources

Built on three keyless Trafiklab APIs: SL Transport, SL Deviations, SL Journey Planner v2.