sbb-mcp 0.6.1 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +43 -13
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,38 @@
|
|
|
1
1
|
# sbb-mcp
|
|
2
2
|
|
|
3
|
-
Independent MCP client by SwissTrip — connects AI assistants to Swiss Federal Railways (SBB / CFF / FFS) data: train schedules, station search, ticket prices, and direct
|
|
3
|
+
Independent MCP client by SwissTrip™ — connects AI assistants to Swiss Federal Railways (SBB / CFF / FFS) data: train schedules, station search, ticket prices with Halbtax / GA discounts, and direct purchase links via SBB's SMAPI.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
**Try it live (no install) →** Add `https://mcp.swisstrip.app/mcp` as a custom connector in ChatGPT (Plus / Pro / Business / Enterprise with Developer Mode).
|
|
6
|
+
|
|
7
|
+
The package itself is a thin client. All SBB API access, ticketing, and profile sync run on the hosted SwissTrip server at `https://mcp.swisstrip.app/mcp`.
|
|
8
|
+
|
|
9
|
+
## What it can do — example questions you can ask your AI
|
|
10
|
+
|
|
11
|
+
Once connected, ask in any supported language:
|
|
12
|
+
|
|
13
|
+
- *"When's the next train from Zurich HB to Bern?"*
|
|
14
|
+
- *"Find me an evening connection from Geneva to Lugano next Friday for 2 adults with Halbtax."*
|
|
15
|
+
- *"How much is a 2nd class ticket from Basel to Lausanne?"*
|
|
16
|
+
- *"Quand part le prochain train pour Genève?"* (French)
|
|
17
|
+
- *"Quanto costa un biglietto da Milano a Zurigo?"* (Italian)
|
|
18
|
+
- *"Wann fährt der nächste Zug nach Basel?"* (German)
|
|
19
|
+
|
|
20
|
+
The AI calls the right MCP tool under the hood and returns a direct purchase link to sbb.ch.
|
|
21
|
+
|
|
22
|
+
## Tools
|
|
23
|
+
|
|
24
|
+
- `search_stations` — find Swiss stations, addresses, and points of interest
|
|
25
|
+
- `search_connections` — train schedules between two stations
|
|
26
|
+
- `get_trip_details` — detailed trip with all intermediate stops
|
|
27
|
+
- `get_more_connections` — earlier or later trains for a previous search
|
|
28
|
+
- `get_prices` — ticket prices with Halbtax / GA / Sparbillet discounts
|
|
29
|
+
- `get_ticket_link` — direct purchase link to SBB.ch
|
|
30
|
+
- `save_profile` / `get_profile` — save your travel profile locally (or sync to swisstrip.app with `SWISSTRIP_TOKEN`)
|
|
31
|
+
- `list_travelers` — multi-traveler family pricing (requires `SWISSTRIP_TOKEN`)
|
|
32
|
+
|
|
33
|
+
## Languages
|
|
34
|
+
|
|
35
|
+
Tool descriptions and natural-language responses available in **9 languages**: English, German, French, Italian, Spanish, Portuguese, Dutch, Polish, Russian.
|
|
6
36
|
|
|
7
37
|
## Install
|
|
8
38
|
|
|
@@ -44,26 +74,26 @@ No install required. Add a custom connector pointing at:
|
|
|
44
74
|
https://mcp.swisstrip.app/mcp
|
|
45
75
|
```
|
|
46
76
|
|
|
47
|
-
|
|
77
|
+
### Other MCP-compatible clients
|
|
48
78
|
|
|
49
|
-
|
|
50
|
-
- `search_connections` — train schedules between two stations
|
|
51
|
-
- `get_trip_details` — detailed trip with all intermediate stops
|
|
52
|
-
- `get_more_connections` — earlier or later trains for a previous search
|
|
53
|
-
- `get_prices` — ticket prices with Halbtax / GA discounts
|
|
54
|
-
- `get_ticket_link` — direct purchase link to SBB.ch
|
|
55
|
-
- `save_profile` / `get_profile` — save your travel profile locally
|
|
56
|
-
- `list_travelers` — multi-traveler family pricing (requires `SWISSTRIP_TOKEN`)
|
|
79
|
+
The hosted endpoint at `https://mcp.swisstrip.app/mcp` follows the [MCP HTTP transport spec](https://modelcontextprotocol.io/), so any compliant client works. The npm proxy is only needed for clients that require stdio.
|
|
57
80
|
|
|
58
81
|
## Optional configuration
|
|
59
82
|
|
|
60
83
|
| Environment variable | Purpose |
|
|
61
84
|
|---|---|
|
|
62
|
-
| `SWISSTRIP_TOKEN` | Sync your traveler profile from your SwissTrip account. Mint at https://swisstrip.app/settings/developer. |
|
|
85
|
+
| `SWISSTRIP_TOKEN` | Sync your traveler profile from your SwissTrip™ account. Mint at https://swisstrip.app/settings/developer. |
|
|
63
86
|
| `SBB_MCP_URL` | Override the hosted server URL. Default: `https://mcp.swisstrip.app/mcp`. |
|
|
64
87
|
|
|
88
|
+
## Links
|
|
89
|
+
|
|
90
|
+
- **Web app:** https://swisstrip.app
|
|
91
|
+
- **Live MCP endpoint:** https://mcp.swisstrip.app/mcp
|
|
92
|
+
- **Source (proxy):** https://github.com/Fabsbags/sbb-mcp
|
|
93
|
+
- **MCP Registry listing:** [`io.github.Fabsbags/sbb-mcp`](https://registry.modelcontextprotocol.io/)
|
|
94
|
+
|
|
65
95
|
## License
|
|
66
96
|
|
|
67
|
-
Proprietary. See [LICENSE](./LICENSE). © 2026 SwissTrip.
|
|
97
|
+
Proprietary. See [LICENSE](./LICENSE). © 2026 SwissTrip™ (CH trademark Gesuchnummer 07184/2026, Wortmarke).
|
|
68
98
|
|
|
69
99
|
For commercial licensing inquiries: fabsforward2@gmail.com.
|
package/package.json
CHANGED