# SL – Stockholm public transport

> SL – Stockholm public transport is an open-source MCP server for maps and travel. Ask for Stockholm departures, disruptions and door-to-door trips in Swedish or English. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** API, CLI, self-hosted
- **Repository:** https://github.com/hashtagsmile/sl-mcp
- **MCP Registry name:** io.github.Hashtagsmile/sl-mcp
- **Categories:** [maps and travel](https://ai-powered.com/categories/maps-and-travel)
- **Listing updated:** 2026-11-15

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

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

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://sl-mcp.miltonlindblad.workers.dev/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "sl-mcp": {
      "url": "https://sl-mcp.miltonlindblad.workers.dev/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

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

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://sl-mcp.miltonlindblad.workers.dev/mcp
```

Enter a Name (for example "SL – Stockholm public transport"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

- `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.

## 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 Spick Me — Swiss public transport, DealLabs, TransitRadar — UK trains and buses, Keep Dawdling and Traintrackr.

## Where this comes from

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

## Alternatives

- [Spick Me — Swiss public transport](https://ai-powered.com/mcp/spick-me-swiss-public-transport): Spick Me — Swiss public transport is a free MCP server for maps and travel.
- [DealLabs](https://ai-powered.com/mcp/deallabs): DealLabs is a free MCP server for maps and travel.
- [TransitRadar — UK trains and buses](https://ai-powered.com/mcp/transitradar-uk-trains-and-buses): TransitRadar — UK trains and buses is a free MCP server for maps and travel.
- [Keep Dawdling](https://ai-powered.com/mcp/keep-dawdling): Keep Dawdling is a free MCP server for maps and travel.
- [Traintrackr](https://ai-powered.com/mcp/traintrackr): Traintrackr is a free MCP server for maps and travel.
- [SF Bay Area Transit MCP](https://ai-powered.com/mcp/sf-bay-area-transit-mcp): SF Bay Area Transit MCP is a free MCP server for maps and travel.
- [Transit MCP](https://ai-powered.com/mcp/transit-mcp): Transit MCP is a free MCP server for maps and travel.
- [Stadiq](https://ai-powered.com/mcp/stadiq): Stadiq is a freemium MCP server for maps and travel.

---
Source: https://ai-powered.com/mcp/sl-stockholm-public-transport
