Skip to content
MCP server

SL – Stockholm public transport

Ask for Stockholm departures, disruptions and door-to-door trips in Swedish or English

Install
Pricing
Open source
Platforms
API, CLI, self-hosted
Runs
Remotely
Version
0.2.0
Listing updated
4 days ago

Similar MCP servers

About SL – Stockholm public transport

SL – Stockholm public transport is an open-source MCP server for maps and travel. It runs as a hosted remote server, so there is nothing to install locally.

Replies are written for a rider standing at a stop: a sample answer says when to leave Sundbyby centrum, which platform to use, where to change at T-Centralen and which station exit to take to reach a street address, with the walking time. It uses SL's open APIs through Trafiklab, so no API key is needed.

Four tools do the work. find_stop forgives typos in a stop name, get_departures shows live departures with platform or stop letter, delays and cancellations, get_disruptions covers track work, broken lifts and replacement buses by line, mode or metro colour, and plan_trip returns up to three trips between stops or street addresses with crowding, delay and walking exits. Two prompts, trip and departures, appear as slash commands.

Known limits: at most three departures per line and direction, disruption messages only in Swedish, no nearest-stop search, no step-free trip planning, and addresses work but business names do not. A hosted copy runs on Cloudflare Workers, or you can run it from source with Node 20.

Install

Run in a terminal

claude mcp add --transport http sl-mcp https://sl-mcp.miltonlindblad.workers.dev/mcp

Add to Settings → Connectors → Add custom connector

https://sl-mcp.miltonlindblad.workers.dev/mcp
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "sl-mcp": {
      "url": "https://sl-mcp.miltonlindblad.workers.dev/mcp"
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "sl-mcp": {
      "type": "http",
      "url": "https://sl-mcp.miltonlindblad.workers.dev/mcp"
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "sl-mcp": {
      "serverUrl": "https://sl-mcp.miltonlindblad.workers.dev/mcp"
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "sl-mcp": {
      "type": "http",
      "url": "https://sl-mcp.miltonlindblad.workers.dev/mcp"
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Tools this server provides (4)

Taken from the project documentation; the running server may differ.

find_stop
Search for a stop by name and get its id.
get_departures
Live departures from a stop with delays and cancellations.
get_disruptions
Announced disruptions by line, mode or metro colour.
plan_trip
Up to three trips between stops or addresses.

What it does

Typo-tolerant stop search
find_stop returns a stop id even when the name is misspelled.
Live departures
Platform or stop letter, delays and cancellations, filterable by mode, line or destination.
Disruption lookup
Track work, broken lifts and replacement buses, including by metro colour.
Door-to-door trips
Up to three trips between stops or addresses with exits and walking time.
Prompts
trip and departures prompts appear as slash commands.
Hosted or local
Cloudflare Workers endpoint or run from source.

Good for

  • Find the next metro from Slussen toward Ropsten
  • Check whether the red line has disruptions
  • Plan a trip to a street address with the right station exit
  • Look up a stop when unsure of the spelling

Pricing

Open source

Free MIT-licensed project with a free hosted endpoint.

SL – Stockholm public transport FAQ

Do I need an API key?

No. It uses SL's open APIs via Trafiklab.

What languages work?

You can ask in Swedish or English; disruption messages come back in Swedish only.

How far ahead are departures?

Up to 3 hours; use plan_trip with a time for later.

Can it plan step-free trips?

No. It can suggest least walking and checking for broken lifts.

What licence?

MIT.

Is SL – Stockholm public transport free?

Yes. SL – Stockholm public transport is open source, so you can use and self-host it for free.

How do I add SL – Stockholm public transport to Claude Code?

Run this command in your terminal: claude mcp add --transport http sl-mcp https://sl-mcp.miltonlindblad.workers.dev/mcp

What are the best alternatives to SL – Stockholm public transport?

The closest alternatives to SL – Stockholm public transport are Atli, CAD2GIS, Coordinates, Weather Alerts & Forecast and Platform Ai.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers