viafrei 1.5.10 → 1.7.0

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/API.md CHANGED
@@ -9,7 +9,7 @@ the server's own text, reproduced verbatim, because that text is what an
9
9
  assistant reads when it decides which tool to call; paraphrasing it here would
10
10
  document a different server.
11
11
 
12
- **It is a dated snapshot, taken on 2026-10-03.** Generating this file makes
12
+ **It is a dated snapshot, taken on 2026-10-04.** Generating this file makes
13
13
  it impossible for the document and the snapshot to disagree — CI regenerates and
14
14
  compares — but it cannot keep the snapshot from ageing against the live server,
15
15
  because a capture is a point in time. **The source of truth is the running
@@ -17,11 +17,11 @@ server:** connect any MCP client and call `tools/list`.
17
17
 
18
18
  | | |
19
19
  | --- | --- |
20
- | Server | `viafrei` 1.5.10 |
20
+ | Server | `viafrei` 1.7.0 |
21
21
  | MCP protocol | `2025-06-18` |
22
22
  | Streamable HTTP | https://mcp.viafrei.de/mcp |
23
23
  | Legacy HTTP+SSE | https://mcp.viafrei.de/sse |
24
- | Captured from | `https://mcp.viafrei.de/mcp` on 2026-10-03 |
24
+ | Captured from | `https://mcp.viafrei.de/mcp` on 2026-10-04 |
25
25
  | Surface | 20 tools, 10 resources, 2 resource templates, 9 prompts |
26
26
  | Parameter schemas | JSON Schema draft-07 |
27
27
  | Capabilities | `tools`, `resources`, `prompts`, `logging` |
@@ -679,5 +679,5 @@ single call.
679
679
  ---
680
680
 
681
681
  Generated from `catalogue.json` by `scripts/gen-api-doc.mjs`. The snapshot was
682
- read from `https://mcp.viafrei.de/mcp` on 2026-10-03; no tool was invoked to
682
+ read from `https://mcp.viafrei.de/mcp` on 2026-10-04; no tool was invoked to
683
683
  produce it, so no data provider was contacted.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,88 @@ a Changelog and the versions follow Semantic Versioning.
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [1.7.0] - 2026-10-04
9
+
10
+ **Mirrors the server.** The bridge is versioned to match the ViaFrei MCP server it
11
+ relays to. The running server reports 1.7.0 while the registry's latest is 1.6.2, so
12
+ this release moves the package to the server's number and carries whatever had been
13
+ waiting under `[Unreleased]`. Prepared by the `Version sync` workflow: the shipped
14
+ reference was re-captured from the running server, and the probe reported the surface
15
+ **unchanged** — only the version string moved; the capture date is the same day.
16
+
17
+ ### Added
18
+
19
+ - **The repository is now `mavrovde/viafrei-mcp`** (renamed from
20
+ `viafrei-bridge` on 2026-10-04). GitHub redirects the old address. The npm package
21
+ is still `viafrei`, so `npx -y viafrei` is unchanged. The Glama listing keeps its
22
+ old address until Glama re-indexes the repository under the new name.
23
+
24
+ - **The Smithery listing is released by the tag, like npm.** A new `Smithery`
25
+ workflow runs after the tag's `Publish` run succeeds: it refuses unless the live
26
+ server reports the tag's version (Smithery scans the server, so a mismatch would
27
+ record another release's surface), publishes `viafrei/viafrei` with a pinned
28
+ Smithery CLI, and waits until Smithery reports the release `SUCCESS`. A manual
29
+ dispatch re-publishes with the same check. The API key is a secret of the
30
+ `smithery` environment, which only `main` may use.
31
+
32
+ ### Changed
33
+
34
+ - **The documentation, checked against the 1.7.0 catalogue.** The README's "What you can
35
+ ask" gains the questions the 1.7 front page of viafrei.de surfaced, each one a listed
36
+ tool can answer: a motorway jam and the urban motorways (`check_autobahn_traffic`,
37
+ `check_road_status`), a place's address by its name or a coordinate (`find_poi`,
38
+ `describe_location`), and three watches (`watch_situation`: a closure lifted, a region's
39
+ late share at a quarter or more, a DWD warning). What a watch does and does not do is
40
+ written beside them as the catalogue states it: kept in the conversation, shown when
41
+ asked or by a client that supports notifications, no e-mail or SMS, at most 10 per
42
+ conversation for up to 24 hours. The connect section names where each client takes the
43
+ address — VS Code's own `servers` shape among them, which the shared `mcpServers` line
44
+ had wrongly covered — CONTRIBUTING lists every check CI runs instead of five of them,
45
+ and SOURCES names the capture it ships with.
46
+ - **Where to find ViaFrei.** A badge row under the README's title (Smithery, npm,
47
+ Glama) and a short section naming the three listings — the npm package, Smithery's
48
+ hosted connection, the Glama directory entry — with SUPPORT asking which of them a
49
+ report came through.
50
+
51
+ ## [1.6.2] - 2026-10-04
52
+
53
+ **Mirrors the server.** The bridge is versioned to match the ViaFrei MCP server it
54
+ relays to. The running server reports 1.6.2 while the registry's latest is 1.5.10, so
55
+ this release moves the package to the server's number and carries whatever had been
56
+ waiting under `[Unreleased]`. Prepared by the `Version sync` workflow: the shipped
57
+ reference was re-captured from the running server, and the probe reported the surface
58
+ **unchanged** — only the version string and the capture date moved.
59
+
60
+ **The first publish since 1.5.10.** 1.6.0 was prepared and merged here but never
61
+ tagged, so it never reached npm, and for a day the registry's `latest` stayed at 1.5.10
62
+ while the server ran 1.6.x. It changed nothing a client can call, and everything it
63
+ carried ships in this version. (1.5.9 was never tagged either, but 1.5.10 overtook it
64
+ and carried its content.)
65
+
66
+ ### Changed
67
+
68
+ - **A README for three readers (#49).** Travellers get seven real answers asked of the
69
+ running server, developers the connect lines for every client and a `curl` walk-through
70
+ of the protocol, businesses what the data is and how it is licensed. Each claim was
71
+ checked against the server before it was written; three it did not back were removed in
72
+ review.
73
+ - **The README's catalogue section is generated (#51).** The tools, prompts and resources
74
+ are rendered from `catalogue.json` by `scripts/gen-readme-catalogue.mjs` between two
75
+ markers, checked by `check:readme`, and regenerated by every release proposal, so the
76
+ list on the npm page cannot drift from the snapshot it ships with.
77
+
78
+ ## [1.6.0] - 2026-10-03
79
+
80
+ **Not published.** This block was merged but never tagged, so `1.6.0` is not on npm;
81
+ its content shipped in 1.6.2.
82
+
83
+ **Mirrors the server.** The bridge is versioned to match the ViaFrei MCP server it
84
+ relays to. The running server reports 1.6.0 while the registry's latest is 1.5.10, so
85
+ this release moves the package to the server's number and carries whatever had been
86
+ waiting under `[Unreleased]`. Prepared by the `Version sync` workflow: the shipped
87
+ reference was re-captured from the running server, and the probe reported the surface
88
+ **unchanged** — only the version string moved; the capture date is the same day.
89
+
8
90
  ## [1.5.10] - 2026-10-03
9
91
 
10
92
  **Mirrors the server.** The bridge is versioned to match the ViaFrei MCP server it
@@ -26,6 +108,9 @@ reference was re-captured from the running server, and the probe reported the su
26
108
 
27
109
  ## [1.5.9] - 2026-10-02
28
110
 
111
+ **Not published.** This block was merged but never tagged, so `1.5.9` is not on npm;
112
+ its content shipped in 1.5.10.
113
+
29
114
  **Mirrors the server.** The bridge is versioned to match the ViaFrei MCP server it
30
115
  relays to. The running server reports 1.5.9 while the registry's latest is 1.5.7, so
31
116
  this release moves the package to the server's number and carries whatever had been
@@ -1721,16 +1806,17 @@ for it, so the number is free; the bridge will use it when the platform does.
1721
1806
  commits, and a squash makes them unreachable from `main` - which would turn
1722
1807
  the check red on `main` for everybody, for something no contributor did.
1723
1808
 
1724
- [1.5.10]: https://github.com/mavrovde/viafrei-bridge/releases/tag/v1.5.10
1725
- [1.5.9]: https://github.com/mavrovde/viafrei-bridge/releases/tag/v1.5.9
1726
- [1.5.7]: https://github.com/mavrovde/viafrei-bridge/releases/tag/v1.5.7
1727
- [1.5.6]: https://github.com/mavrovde/viafrei-bridge/releases/tag/v1.5.6
1728
- [1.5.5]: https://github.com/mavrovde/viafrei-bridge/releases/tag/v1.5.5
1729
- [1.5.4]: https://github.com/mavrovde/viafrei-bridge/releases/tag/v1.5.4
1730
- [1.4.9]: https://github.com/mavrovde/viafrei-bridge/releases/tag/v1.4.9
1731
- [1.3.22]: https://github.com/mavrovde/viafrei-bridge/releases/tag/v1.3.22
1732
- [1.3.16]: https://github.com/mavrovde/viafrei-bridge/releases/tag/v1.3.16
1733
- [1.3.15]: https://github.com/mavrovde/viafrei-bridge/releases/tag/v1.3.15
1734
- [1.3.12]: https://github.com/mavrovde/viafrei-bridge/releases/tag/v1.3.12
1735
- [1.3.10]: https://github.com/mavrovde/viafrei-bridge/releases/tag/v1.3.10
1736
- [0.0.9]: https://github.com/mavrovde/viafrei-bridge/releases/tag/v0.0.9
1809
+ [1.7.0]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v1.7.0
1810
+ [1.6.2]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v1.6.2
1811
+ [1.5.10]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v1.5.10
1812
+ [1.5.7]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v1.5.7
1813
+ [1.5.6]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v1.5.6
1814
+ [1.5.5]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v1.5.5
1815
+ [1.5.4]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v1.5.4
1816
+ [1.4.9]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v1.4.9
1817
+ [1.3.22]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v1.3.22
1818
+ [1.3.16]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v1.3.16
1819
+ [1.3.15]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v1.3.15
1820
+ [1.3.12]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v1.3.12
1821
+ [1.3.10]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v1.3.10
1822
+ [0.0.9]: https://github.com/mavrovde/viafrei-mcp/releases/tag/v0.0.9
package/README.md CHANGED
@@ -1,211 +1,416 @@
1
- # viafrei
1
+ <div align="center">
2
2
 
3
- [![npm](https://img.shields.io/npm/v/viafrei?color=cb3837&label=npm&logo=npm)](https://www.npmjs.com/package/viafrei)
3
+ # ViaFrei
4
+
5
+ [![smithery badge](https://smithery.ai/badge/viafrei/viafrei)](https://smithery.ai/servers/viafrei/viafrei)
6
+ [![npm](https://img.shields.io/npm/v/viafrei)](https://www.npmjs.com/package/viafrei)
7
+ [![Glama](https://glama.ai/mcp/servers/mavrovde/viafrei-bridge/badge)](https://glama.ai/mcp/servers/mavrovde/viafrei-bridge)
8
+
9
+ ### Germany's traffic, trains, charging and roads — in your AI assistant.
10
+
11
+ **Ask in plain words. Get the live answer, with its source.**
12
+
13
+ [![website](https://img.shields.io/badge/viafrei.de-live-0b5fff?logo=googlechrome&logoColor=white)](https://viafrei.de/en)
4
14
  [![node](https://img.shields.io/node/v/viafrei?logo=node.js&logoColor=white)](https://nodejs.org)
5
15
  [![licence](https://img.shields.io/npm/l/viafrei?color=blue)](LICENSE)
6
- [![no API key](https://img.shields.io/badge/API%20key-none-brightgreen)](#connect-in-one-line)
16
+ [![no API key](https://img.shields.io/badge/API%20key-none-brightgreen)](#-connect-in-one-minute)
7
17
  [![MCP](https://img.shields.io/badge/MCP-Streamable%20HTTP-6f42c1)](https://modelcontextprotocol.io)
8
18
 
9
- **Live German traffic, rail, parking, charging, fuel, addresses and weather —
10
- inside your AI assistant.** Ask in plain German or plain English and the answer
11
- comes back from official open data, with the attribution the licence requires.
19
+ **[viafrei.de](https://viafrei.de/en)** · [Connect your assistant](https://viafrei.de/en/connect) · [For developers](https://viafrei.de/en/developers) · [For businesses](https://viafrei.de/en/business) · [All tools](#-everything-it-can-do) · [API reference](API.md)
20
+
21
+ </div>
22
+
23
+ ---
12
24
 
13
25
  ```
14
- npx viafrei
26
+ claude mcp add --transport http viafrei https://mcp.viafrei.de/mcp
15
27
  ```
16
28
 
17
- **No account, no API key, no sign-up.**
29
+ **Free. No account, no API key, no sign-up.** One line and your assistant knows
30
+ whether the A8 is jammed, whether your train is late, where the nearest
31
+ Type 2 charger is (and whether it is free, where the operator publishes that)
32
+ and whether the lift at your station works — from official
33
+ German open data, live, with the source named in every answer.
18
34
 
19
- ## Ask your assistant things like
35
+ > **New in 1.7:** the front page of [viafrei.de](https://viafrei.de/en) gains
36
+ > three everyday moments — **stuck in traffic, finding places, tell me when** —
37
+ > nine in all, each with questions you can copy and today's live figure beside
38
+ > them, in **seven languages** (Deutsch, English, Русский, Български,
39
+ > Українська, Română, Türkçe). The questions are in the table below. The tools
40
+ > themselves are the same twenty as in 1.6.
20
41
 
21
- **Welche Züge fahren als Nächstes ab Hamburg Hbf?**
42
+ ---
22
43
 
23
- ```
24
- Abfahrten ab Hamburg Hbf (nächste 60 Minuten):
25
- 12:28 RJ 384 → Koebenhavn H, Gleis 5, pünktlich
26
- 12:29 ICE 7 → Karlsruhe Hbf, Gleis 14, pünktlich
27
- 12:33 ICE 774 → Kiel Hbf, Gleis 11, pünktlich
28
- 12:33 ME RB31 → Lüneburg, Gleis 13A-C, pünktlich
29
- 12:34 ICE 601 → München Hbf, Gleis 8A-F, pünktlich
30
-
31
- Stand 12:23 · Quelle: Fahrplandaten: Deutsche Bahn AG, DB API Marketplace,
32
- CC BY 4.0, bearbeitet (…) · Bahnhofsdaten: Deutsche Bahn AG,
33
- DB API Marketplace, CC BY 4.0, bearbeitet (…)
34
- ```
44
+ ## 🧳 What you can ask
45
+
46
+ You don't need to know any tool names. Ask the way you'd ask a friend who
47
+ happens to have every German traffic feed open. German or English; the answer
48
+ comes back in the language you asked in.
35
49
 
36
- That is a real answer, not a mock-up: it came back from
37
- `https://mcp.viafrei.de/mcp` on 2026-09-27 at 12:23 Berlin time. **Two edits, both
38
- named:** the two source URIs are shortened to `…` for the reason in the next
39
- paragraph, and only the first five of the ten departures it returned are shown.
40
- The server sends no "… and five more" line — the truncation is this page's, not
41
- its.
42
-
43
- Every answer ends with a line like that last one. It is the licence talking,
44
- and it is meant to be shown to whoever reads the answer — see
45
- [Using the data you get back](#using-the-data-you-get-back). **Reproduce the
46
- line the server sends you, not this one:** it has been shortened here, and the
47
- real one names each source's URL, which the licence requires you to keep.
48
-
49
- ViaFrei is in its stabilisation and testing phase at the time of writing: live
50
- and free, with some sources thinner than they will be, and the occasional tool
51
- that answers slowly or not at all. **Tell us when that happens** —
52
- [open an issue](https://github.com/mavrovde/viafrei-bridge/issues) with what you
53
- asked and what came back. The server necessarily sees the question, and sees
54
- it fail; what it cannot see is that an answer was useless to you
55
- (see [What it does not do](#what-it-does-not-do)).
56
-
57
- Plain German or plain English, whichever you speak — the answers come back in
58
- the language you asked in, not translated from one house language:
59
-
60
- - *Gibt es gerade Stau auf der A8?*
61
- - *Find a rest area with lorry parking on the A9*
62
- - *Sind auf der A8 Baustellen geplant, wenn ich nächste Woche fahre?*
63
- - *Wo kann ich in Leipzig mit Typ 2 laden?*
64
- - *Gibt es eine Unwetterwarnung für Freiburg?*
65
- - *Brauche ich in Deutschland eine Umweltplakette?*
66
- - *Funktioniert der Aufzug am Bahnhof Köln Messe/Deutz?* — lift and escalator
67
- status, which is the difference between a station being usable and not
68
- - *Wo ist die nächste Apotheke zum Leipziger Hauptbahnhof?*
69
- - *What is at 52.5163, 13.3777?* — and the other direction: a street address to
70
- coordinates
71
- - *Tell me when the A8 reopens* — the server can watch a situation and tell
72
- your assistant when it changes, so you need not keep asking. The watch lives
73
- in the conversation that opened it: it reaches no inbox and no phone, and
74
- it ends with the session. Three hours by default; 24 is the longest one can
75
- be asked to run
76
-
77
- ## What it covers
78
-
79
- **Eighteen tools** as of this release. Grouped by the question they answer,
80
- because the grouping is stable and a pasted catalogue is not:
81
-
82
- | | |
50
+ | when you're… | ask |
83
51
  |---|---|
84
- | **Roads** | live incidents, jams and closures; roadworks ahead on a route; the state of one Autobahn end to end; **lorry** parking on the motorways, with occupancy wherever the operator publishes it — see the note below on car parks |
85
- | **Rail** | next departures from any station with real-time delays and platforms; how punctual public transport is across a region right now (region-wide — never one line, trip or stop); whether a station's lifts and escalators are working right now |
86
- | **Energy** | charging points by connector type and power; the cheapest fuel near a place |
87
- | **Places** | a street address to coordinates and back; points of interest; what is at a coordinate, and what is near it — nationwide, all sixteen Länder (measured on 2026-09-27 — [how](SOURCES.md)) |
88
- | **Weather** | official DWD severe-weather warnings for a place |
89
- | **Watches** | ask once and be told when a situation changes, instead of asking again |
90
-
91
- **One thing the parking row does not yet cover: car parks.** The licence for
92
- station car parks is read and the loader exists, but nothing on the public service
93
- answers with one today — asked for a `car_park` in Köln, Hamburg and Leipzig on
94
- 2026-09-27, every facility that came back was a lorry park or an unclassified site,
95
- and none carried occupancy. So what you get from `find_parking` today is motorway
96
- lorry parking. The table said "car and lorry parking" until this release; it was
97
- the same over-claim the Rail row carried about disruptions, and it is corrected here rather
98
- than left for a user to discover.
99
-
100
- **No tool names, descriptions or schemas are written by hand on this page, on
101
- purpose.** This file is frozen inside a published tarball and cannot be corrected
102
- without a release, so a hand-copied catalogue would start rotting the first time a
103
- description changed on the server.
104
-
105
- **[API.md](API.md) is the way round that, and it is honest about what it is.** It
106
- is *generated* from [`catalogue.json`](catalogue.json) — a snapshot of what the
107
- production server answered when asked to describe itself — and CI fails if the two
108
- have drifted, so the document cannot quietly disagree with the snapshot. What that
109
- does not fix is the snapshot ageing relative to the live server: a capture is a
110
- point in time, and API.md's header carries the date it was taken. **The source of
111
- truth is still the running server**: connect any MCP client and call `tools/list`.
112
- (<https://viafrei.de> is the live national traffic digest, not a catalogue.)
113
-
114
- ## Connect in one line
115
-
116
- The product is a **hosted MCP server**. There is nothing to deploy, no key to
117
- request and no quota to negotiate — point a client at it and the tools appear.
118
-
119
- **Streamable HTTP — the address to use.** Most clients speak this, and they need
120
- none of the rest of this page:
52
+ | 🌅 **about to commute** | *Fahren Busse und Bahnen in Bayern gerade pünktlich?* · *When does the next train leave Hamburg Hbf?* |
53
+ | 🚗 **about to drive** | *Gibt es Stau auf der A8?* · *Are there roadworks on the A7 next week?* · *Is the A1 closed anywhere?* |
54
+ | 🚧 **stuck in traffic** | *How much time is the jam on the A3 between Frankfurt and Würzburg costing right now?* · *Is traffic backed up on the Cologne motorway ring — A1, A3 or A4?* · *Ist der Elbtunnel auf der A7 heute Nacht gesperrt?* |
55
+ | ⚡ **driving electric** | *Where can I charge with Type 2 near Leipzig?* · *Wo gibt es einen Schnelllader mit 150 kW bei Nürnberg?* |
56
+ | 🅿️ **driving a lorry** | *Find a rest area with lorry parking on the A9* · *Wo ist der nächste Lkw-Parkplatz an der A7?* |
57
+ | ♿ **travelling step-free** | *Funktioniert der Aufzug am Bahnhof Köln Messe/Deutz?* |
58
+ | 🌦️ **watching the weather** | *Gibt es eine Unwetterwarnung für Freiburg?* |
59
+ | 📍 **looking for a place** | *What is the address of the Elbphilharmonie in Hamburg?* · *Welche Apotheken gibt es in Fulda?* · *My satnav shows 50.1109, 8.6821 — what address is that?* |
60
+ | 🇩🇪 **new to German roads** | *Do I need an emission sticker for Stuttgart?* · *Is there a speed limit on the Autobahn?* |
61
+ | ⏳ **waiting for news** | *Tell me as soon as the closure on the A7 is lifted.* · *Sag mir Bescheid, wenn in Köln ein Viertel oder mehr der Bus- und Bahnfahrten verspätet ist.* · *Warn me when a DWD severe-weather warning comes into force for Cologne.* |
62
+
63
+ **What the answers cover, honestly.** Traffic is the motorways and federal
64
+ roads: in cities that means the urban motorways, not the streets in between.
65
+ Places and addresses come from OpenStreetMap, so what is not mapped there cannot
66
+ be found, and opening hours and ratings are not part of it. A **watch** lives in
67
+ the conversation that opened it: the server keeps every change there, and your
68
+ assistant shows it when you ask, or on its own if your client supports MCP
69
+ notifications. Nothing is sent by e-mail or SMS. Up to 10 watches per
70
+ conversation, each for up to 24 hours (3 by default), and a road is watched as a
71
+ whole, not one section of it.
72
+
73
+ ## 💬 Real answers
74
+
75
+ These came back from the production server at `https://mcp.viafrei.de/mcp` on
76
+ **2026-10-03, 23:54 Berlin time**. They are not mock-ups. Each one shows the
77
+ first lines of what the tool returned, and the source line exactly as it was
78
+ sent.
79
+
80
+ <details open>
81
+ <summary><b>🚆 "Welche Züge fahren als Nächstes ab Hamburg Hbf?"</b> — <code>get_train_departures</code></summary>
82
+
83
+ ```text
84
+ Abfahrten ab Hamburg Hbf (nächste 60 Minuten):
85
+ 23:56 NBE RB61 → Elmshorn, Gleis 14D-F (statt 13D-F), +5 min (ca. 04.10. 00:01)
86
+ 04.10. 00:06 RE RE5 → Stade, Gleis 12A-B, pünktlich
87
+ 23:22 ICE 2514 → Hamburg-Altona, Gleis 11, +51 min (ca. 04.10. 00:13)
88
+ 04.10. 00:17 NBE RB71 → Wrist, Gleis 13D-F, pünktlich
121
89
 
90
+ Stand 23:54 · Quelle: Fahrplandaten: Deutsche Bahn AG, DB API Marketplace, CC BY 4.0, bearbeitet (https://developers.deutschebahn.com) · …
122
91
  ```
123
- https://mcp.viafrei.de/mcp
92
+ Platform changes, delays and the estimated real departure, in one line each.
93
+ *Edited: one of five departures omitted, and the second source of the line cut to `…`.*
94
+ </details>
95
+
96
+ <details>
97
+ <summary><b>♿ "Funktioniert der Aufzug am Bahnhof Köln Messe/Deutz?"</b> — <code>check_station_facilities</code></summary>
98
+
99
+ ```text
100
+ In Köln Messe/Deutz sind alle 10 gemeldeten Anlagen in Betrieb.
101
+ Aufzug Aufzug Gl. 12 KVB Tunnel: in Betrieb
102
+ Aufzug Aufzug tief Gleis 12: in Betrieb
103
+ Fahrtreppe Fahrtreppe Gl. 1/2: in Betrieb
104
+ …
105
+ Stand 23:54 · Quelle: Aufzüge und Fahrtreppen: Deutsche Bahn AG, DB API Marketplace, CC BY 4.0, bearbeitet (https://developers.deutschebahn.com) · …
106
+ ```
107
+ For anyone with a wheelchair, a pram or a heavy suitcase, this is the difference
108
+ between a station being usable and not.
109
+ *Edited: seven of ten facilities omitted.*
110
+ </details>
111
+
112
+ <details>
113
+ <summary><b>⚡ "Where can I charge with Type 2 near Leipzig?"</b> — <code>find_charging_station</code></summary>
114
+
115
+ ```text
116
+ Charging around Leipzig (within 10 km, Type 2), nearest first:
117
+ 1. Leipzig, Petersstr. eBox1, Petersstraße 36-44, 04109 Leipzig (E.ON Drive) — 0.3 km, Type 2, up to 3.7 kW, no status data
118
+ 3. Pocher Service e.K. - Nordstraße, Nordstraße 3, 04105 Leipzig (EA EnergieArchitektur GmbH) — 0.8 km, Type 2, up to 22 kW, 1.20 €/kWh, no status data
119
+ 4. CCEL-L-Elsterstraße, Elsterstraße 22, 04109 Leipzig (City Concept E-Ladestationen GmbH) — 1.0 km, Type 2, up to 22 kW, 0.80 €/kWh, no status data
120
+ Only a few operators publish live occupancy; "no status data" means unknown, not free.
121
+
122
+ As of 23:54 · Source: Ladepunkte: Eco-Movement via Mobilithek, CC BY 4.0, bearbeitet (https://mobilithek.info/offers/954064102947180544) · …
123
+ ```
124
+ It says what it does not know: "no status data" is unknown, never free.
125
+ *Edited: entry 2 omitted, a municipality key removed from the heading, and the second source cut to `…`.*
126
+ </details>
127
+
128
+ <details>
129
+ <summary><b>🚦 "Is public transport in North Rhine-Westphalia running on time?"</b> — <code>check_transit_disruption</code></summary>
130
+
131
+ ```text
132
+ North Rhine-Westphalia: 11% of observed trips more than 5 minutes late (308 of 2,790 trips
133
+ in the last 60 minutes, from 30,988 reports at 12,939 stops), 38 trips with cancelled stops.
134
+ …
135
+ As of 23:52 · Source: Echtzeitdaten: DELFI e.V. via Mobilithek, CC BY-SA (https://mobilithek.info)
136
+ These figures are licensed CC BY-SA (share-alike): anyone who passes them on, or builds
137
+ something on them, must release the result under the same licence and with this attribution.
138
+ ```
139
+ Region-wide, with the method stated. The share-alike condition arrives as part
140
+ of the answer, because it is part of the data.
141
+ *Edited: four method paragraphs between the figure and the source line omitted.*
142
+ </details>
143
+
144
+ <details>
145
+ <summary><b>📍 "What is at 52.5163, 13.3777?"</b> — <code>describe_location</code></summary>
146
+
147
+ ```text
148
+ Description of 52.5163, 13.3777:
149
+ - Nearest address: Pariser Platz 1, 10117 Berlin (3 m)
150
+ - settlement: Unter den Linden (0.7 km)
151
+ - district: Berlin (1.9 km)
152
+ - junction: AS Sachsendamm (A100) (5.0 km)
153
+
154
+ Address data as of 2026-09-22
155
+ As of 23:54 · Source: Ortsdaten: © GeoNames (CC BY 4.0), bearbeitet (…) · … · OSM-Standortdaten: © OpenStreetMap-Mitwirkende, ODbL 1.0 (https://www.openstreetmap.org/copyright)
156
+ ```
157
+ That's the Brandenburg Gate. *Edited: one line ("administrative area") omitted, and two of four sources cut to `…`.*
158
+ </details>
159
+
160
+ <details>
161
+ <summary><b>🇩🇪 "Do I need an emission sticker for Stuttgart?"</b> — <code>get_driving_rules</code></summary>
162
+
163
+ ```text
164
+ Low-emission zone Stuttgart: yes, you need the green Feinstaubplakette.
165
+ • Stuttgart: Zone covering the entire city area — it starts at the city boundary, not at the centre.
166
+ Required: the green plaque (emission group 4). …
167
+ • A French Crit'Air sticker or any other foreign environmental badge is not valid in Germany —
168
+ only the German Feinstaubplakette counts. (Umweltbundesamt, Umweltzonen in Deutschland)
169
+ …
170
+ Reviewed 2026-09-19 · Informational, not legal advice.
171
+ ```
172
+ Every statement carries its source and the date it was checked, and says
173
+ *[to verify]* where we could not confirm it. *Edited: eight of eleven points omitted.*
174
+ </details>
175
+
176
+ <details>
177
+ <summary><b>🅿️ "Find lorry parking on the A9"</b> — <code>find_parking</code></summary>
178
+
179
+ ```text
180
+ Parking along the A9:
181
+ 1. Aster Moos O — Lorry parking (Lkw-Parkplatz), 14 lorry spaces, no occupancy published
182
+ 2. Baarer Weiher O — Lorry parking (Lkw-Parkplatz), 45 lorry spaces, no occupancy published
183
+ …
184
+ As of 23:54 · Source: Verkehrsdaten: Autobahn GmbH des Bundes (https://verkehr.autobahn.de)
185
+ Where no "free" count is shown the operator publishes no occupancy — it does not mean the site is full.
124
186
  ```
187
+ *Edited: two of four sites omitted.*
188
+ </details>
125
189
 
190
+ **Why the source line matters.** Every answer ends with one, and it is the
191
+ licence speaking: show it to whoever reads the answer. Copy the line the server
192
+ sends you, not the ones on this page, which are shortened. See
193
+ [Using the data you get back](#-using-the-data-you-get-back).
194
+
195
+ ## 🔌 Connect in one minute
196
+
197
+ The product is a **hosted MCP server**. Point your client at it and the tools
198
+ appear. There is nothing to install, no key to request and no quota to
199
+ negotiate. Step-by-step guides for each assistant:
200
+ **[viafrei.de/en/connect](https://viafrei.de/en/connect)**.
201
+
202
+ **Claude Code**
126
203
  ```bash
127
204
  claude mcp add --transport http viafrei https://mcp.viafrei.de/mcp
128
205
  ```
129
206
 
130
- **HTTP+SSE — if your client only speaks the older transport**, it is answered too,
131
- so nobody meets a locked door. It is deprecated in the specification; prefer the
132
- address above:
207
+ **Claude (desktop app and claude.ai), ChatGPT and other apps that take a connector URL** —
208
+ add a custom connector with this address (in Claude: Settings → Connectors → *Add custom connector*;
209
+ in ChatGPT the connector settings need developer mode):
210
+ ```
211
+ https://mcp.viafrei.de/mcp
212
+ ```
133
213
 
134
- ```bash
135
- claude mcp add --transport sse viafrei https://mcp.viafrei.de/sse
214
+ **Cursor, and any client with an `mcpServers` file that takes a `url`**, over HTTP:
215
+ ```json
216
+ { "mcpServers": { "viafrei": { "url": "https://mcp.viafrei.de/mcp" } } }
136
217
  ```
137
218
 
138
- **stdio — this package.** Some clients still speak only stdio, and **this bridge
139
- is for those, and only those.** Node 22 or newer; nothing to install, because
140
- `npx` fetches it when your client starts it. The same three lines fit any client
141
- that takes an stdio MCP server, including the `.mcp.json` an IDE reads and
142
- Claude Desktop's `claude_desktop_config.json`:
219
+ **VS Code** (`.vscode/mcp.json`, or *MCP: Add Server* from the command palette):
220
+ ```json
221
+ { "servers": { "viafrei": { "type": "http", "url": "https://mcp.viafrei.de/mcp" } } }
222
+ ```
143
223
 
224
+ **Clients that speak only stdio** — for example Claude Desktop's config file
225
+ (`claude_desktop_config.json`, opened from Settings → Developer → *Edit Config*).
226
+ That is what this package is for:
144
227
  ```json
145
- {
146
- "mcpServers": {
147
- "viafrei": {
148
- "command": "npx",
149
- "args": ["-y", "viafrei"]
150
- }
151
- }
152
- }
228
+ { "mcpServers": { "viafrei": { "command": "npx", "args": ["-y", "viafrei"] } } }
153
229
  ```
230
+ Node 22 or newer. `npx` fetches the bridge when your client starts it. If the
231
+ file already has an `mcpServers` block, add the `"viafrei"` entry inside it
232
+ rather than pasting a second block.
233
+
234
+ **An older client on HTTP+SSE** is answered too, at `https://mcp.viafrei.de/sse`.
235
+ The transport is deprecated in the specification, so prefer the address above
236
+ when you can:
237
+ ```bash
238
+ claude mcp add --transport sse viafrei https://mcp.viafrei.de/sse
239
+ ```
240
+
241
+ Restart the client and ask one of the questions above.
242
+
243
+ ### Where to find ViaFrei
244
+
245
+ - **npm — [`viafrei`](https://www.npmjs.com/package/viafrei).** This package:
246
+ the stdio bridge, for the config line above. Its page shows the current
247
+ version and this README.
248
+ - **Smithery — [smithery.ai/servers/viafrei/viafrei](https://smithery.ai/servers/viafrei/viafrei).**
249
+ Connect through Smithery's hosted connection, with no local install.
250
+ - **Glama — [glama.ai/mcp/servers/mavrovde/viafrei-bridge](https://glama.ai/mcp/servers/mavrovde/viafrei-bridge).**
251
+ The directory listing for this repository, with the tool list.
154
252
 
155
- Restart the client and ask it one of the questions above.
253
+ ## 🧰 Everything it can do
156
254
 
157
- ## Documentation
255
+ <!-- catalogue:begin — generated by scripts/gen-readme-catalogue.mjs from catalogue.json; do not edit by hand -->
158
256
 
159
- | | |
257
+ **20 tools, 9 prompts, 10 resources and 2 resource templates** — server 1.7.0, snapshot of 2026-10-04. Each line is the server's own words; the full parameters are in [API.md](API.md).
258
+
259
+ #### 🚗 On the road
260
+
261
+ | tool | what it answers |
262
+ |---|---|
263
+ | [`check_autobahn_traffic`](API.md#check_autobahn_traffic--autobahn-traffic) — Autobahn traffic | Returns jams, slow traffic, closures and roadworks in force this minute on up to 5 German motorways, with delay and speed. |
264
+ | [`check_road_status`](API.md#check_road_status--road-status-and-closures) — Road status and closures | Returns whether one German motorway or federal road is open, closed or restricted, now and in the coming days. |
265
+ | [`find_roadworks_ahead`](API.md#find_roadworks_ahead--planned-roadworks) — Planned roadworks | Returns the roadworks PLANNED on one German motorway inside a date window: the section and direction as published, what is restricted, and the start and end. |
266
+ | [`find_parking`](API.md#find_parking--parking-nearby) — Parking nearby | Returns parking near a place, a coordinate or along one motorway: rest areas with lorry spaces, car parks and park-and-ride sites, with total spaces and, where published, how many are free now and that reading's age. |
267
+
268
+ #### 🚆 Public transport
269
+
270
+ | tool | what it answers |
271
+ |---|---|
272
+ | [`get_train_departures`](API.md#get_train_departures--train-departures) — Train departures | Next departures from a German railway station, with platform, delay and cancellations. |
273
+ | [`get_departures`](API.md#get_departures--scheduled-departures-bus-tram-train) — Scheduled departures (bus, tram, train) | Scheduled departures from any German public-transport stop — bus, tram, U-Bahn, S-Bahn, train, ferry — with line, destination, platform. |
274
+ | [`check_transit_disruption`](API.md#check_transit_disruption--public-transport-disruption-in-a-region) — Public-transport disruption in a region | Returns how punctual public transport is right now in one German region: the share of distinct trips at least once more than 5 minutes late, trips with a cancelled stop, the trend against the previous window, and how many trips that rests on. |
275
+ | [`check_station_facilities`](API.md#check_station_facilities--station-lifts-and-escalators) — Station lifts and escalators | Report whether a German railway station's lifts and escalators are working right now: each one, where it is, its state (in service / out of service / unknown) and the operator's own explanation. |
276
+
277
+ #### ⚡ Charging and fuel
278
+
279
+ | tool | what it answers |
280
+ |---|---|
281
+ | [`find_charging_station`](API.md#find_charging_station--ev-charging-nearby) — EV charging nearby | Returns EV charging sites near a place or coordinate with operator, connector types, maximum power, price per kWh where published, and how many points are free right now where the operator publishes live status. |
282
+ | [`find_cheapest_fuel`](API.md#find_cheapest_fuel--cheapest-fuel-nearby) — Cheapest fuel nearby | Returns the cheapest stations for one fuel grade near a place or coordinate: price per litre, brand, address, distance, open state. |
283
+ | [`find_fuel_station`](API.md#find_fuel_station--find-a-filling-station) — Find a filling station | Finds filling stations around a place or coordinate under any combination of filters — grade, brand, name, open now, open at a time you name, open 24 h — sorted by distance, price or name. |
284
+
285
+ #### 📍 Places and addresses
286
+
287
+ | tool | what it answers |
288
+ |---|---|
289
+ | [`find_place`](API.md#find_place--look-up-a-place) — Look up a place | Looks up a place name and returns every place that matches, each with its kind, official key (AGS/RS), population, English name and coordinate. |
290
+ | [`find_poi`](API.md#find_poi--find-a-named-place) — Find a named place | Finds a named business or landmark — company, shop, clinic, hotel — and returns its address, category and coordinate. |
291
+ | [`find_address`](API.md#find_address--look-up-a-street-address) — Look up a street address | Looks up a street address and returns its coordinate, plus what OpenStreetMap holds under it. |
292
+ | [`describe_location`](API.md#describe_location--describe-a-coordinate) — Describe a coordinate | Turns a coordinate into words: the nearest address, settlement, Kreis, administrative area and motorway junction, each with its own distance. |
293
+ | [`find_nearby`](API.md#find_nearby--what-is-nearby) — What is nearby | Overview of what is around a place or coordinate: nearby fuel stations, EV charging, parking, the nearest railway station and motorway junction, each with its distance. |
294
+
295
+ #### 🌦️ Weather and rules
296
+
297
+ | tool | what it answers |
160
298
  |---|---|
161
- | **[API.md](API.md)** | Every tool with its parameters, types, defaults and constraints, plus the resources, resource templates and prompts. Generated from a dated snapshot of the running server, so the descriptions are the server's own words — which is what your assistant actually reads when it picks a tool. |
162
- | **[Wiki](https://github.com/mavrovde/viafrei-bridge/wiki)** | The prose half: [connecting your assistant](https://github.com/mavrovde/viafrei-bridge/wiki/Connecting-your-assistant), [tools at a glance](https://github.com/mavrovde/viafrei-bridge/wiki/Tools-at-a-glance), the [roadmap](https://github.com/mavrovde/viafrei-bridge/wiki/Roadmap) and an [FAQ](https://github.com/mavrovde/viafrei-bridge/wiki/FAQ). |
163
- | **[SOURCES.md](SOURCES.md)** | Every publisher, what it covers, its licence, and the attribution line to reproduce — including the conditions that are licence breaches rather than style problems. |
164
- | **[SUPPORT.md](https://github.com/mavrovde/viafrei-bridge/blob/main/SUPPORT.md)** | Where a question, a bad answer or a security report should go, and what makes a report easy to act on. |
299
+ | [`check_weather_warnings`](API.md#check_weather_warnings--official-weather-warnings) — Official weather warnings | Returns the official DWD weather warnings in force for a place or coordinate — storm, snow, ice, heavy rain, thunderstorm, heat — with the DWD's own Warnstufe 1–4, the area, the local validity window and the official text unaltered. |
300
+ | [`get_driving_rules`](API.md#get_driving_rules--german-driving-rules) — German driving rules | Returns the German road rules a visitor needs: low-emission zones (Umweltzone) and which Feinstaubplakette a city requires, speed limits (advisory 130), winter tyres, alcohol, the Sunday lorry ban, tolls (no car toll), Rettungsgasse, what must be in the car, and electric cars (E-Kennzeichen, ad-hoc payment, plugs). |
301
+
302
+ #### 🔔 Watches
303
+
304
+ | tool | what it answers |
305
+ |---|---|
306
+ | [`watch_situation`](API.md#watch_situation--watch-for-a-change) — Watch for a change | Opens a watch so THIS conversation is told when something changes: a road reopening, a stop running late, a weather warning starting, a charge point turning free. |
307
+ | [`stop_watch`](API.md#stop_watch--stop-a-watch) — Stop a watch | Ends a watch this conversation opened with watch_situation, so no further change notifications arrive for it. |
308
+
309
+ #### 🧭 Prompts — ready-made briefings
310
+
311
+ Pick one in your client's prompt menu and fill in the blanks; it calls the right tools in the right order.
312
+
313
+ | prompt | what it does |
314
+ |---|---|
315
+ | `plan_departure` — Trip briefing before departure — Reise-Briefing vor der Abfahrt | Briefs a drive that is about to start: the official weather warnings at both ends, whether each motorway is open, and the jams in force this minute, ending in one go/no-go sentence. |
316
+ | `compare_travel_options` — Drive or take the train? — Auto oder Bahn? | Weighs one trip by car against the same trip by rail: closures and live jams on the motorway side, the next departures and the region's punctuality on the rail side, as two paragraphs the traveller can compare. |
317
+ | `prepare_car_trip` — What you need before driving in Germany — Vorbereitung der Autofahrt | Collects what a driver must carry and know before driving in Germany and into one particular city: the low-emission-zone badge, speed limits, winter tyres, the alcohol limit, tolls, mandatory equipment and the rules for an electric car. |
318
+ | `plan_fuel_stop` — Refuel or charge on the way — Tank- oder Ladestopp unterwegs | Finds where this traveller fills up or charges on the way: the cheapest stations for one fuel grade around one place, or the charging points with the right connector and power, and the rest area beside them if they also need a break. |
319
+ | `plan_commute` — Plan today's commute by train — Pendelfahrt für heute planen | Plans one public-transport leg on the day itself: the next departures from the station with delays, platforms and cancellations, and whether the region's buses and trains are running normally at this hour. |
320
+ | `plan_arrival_parking` — Where to leave the car on arrival — Parken am Ziel | Finds where to leave the car at the end of the drive: the car park in town, the park-and-ride at the edge with the onward departures, or the rest area if the traveller is early. |
321
+ | `find_a_place` — Find out what a name refers to — Herausfinden, was ein Name meint | Resolves a bare name of unknown kind into a place, a named thing, or an address, trying each table in turn and stopping at the first that answers. |
322
+ | `plan_local_errand` — What is around this place? — Was ist hier in der Nähe? | Answers "what is around here" for one place: the nearest fuel, EV charging, parking, railway station and motorway junction in one glance, then — only if the traveller wants more than the nearest one — the depth tool for that one category. |
323
+ | `explain_this_coordinate` — Say where a coordinate is — Sagen, wo eine Koordinate liegt | Turns a bare lat/lon into a sentence a traveller understands: the nearest address, settlement, Kreis, administrative area and motorway junction, each with its own distance. |
324
+
325
+ #### 📚 Resources — reference your assistant can read
326
+
327
+ | resource | what it holds |
328
+ |---|---|
329
+ | `viafrei://attribution` — Data sources & attribution | Licence and attribution text for every data source ViaFrei uses. |
330
+ | `viafrei://coverage` — Coverage | Which feeds, places and vehicles ViaFrei can answer for right now — licence, cadence and freshness per feed, plus what is deliberately not covered. |
331
+ | `viafrei://rules/driving-in-germany` — Driving in Germany — the rules a visitor needs (DE/EN) | Curated, sourced and dated: low-emission zones, speed, winter tyres, alcohol, tolls, the Sunday lorry ban, equipment, emergencies and electric driving. |
332
+ | `viafrei://rules/low-emission-zones` — Low-emission zones (Umweltzonen) — city, zone, plaque, where to buy it (DE/EN) | Which German cities run a low-emission zone, which Feinstaubplakette they require and where to buy it. |
333
+ | `viafrei://emergency` — Emergency in Germany — 112, 110, rescue lane, breakdown, crash (DE/EN) | What to dial, how to form the Rettungsgasse, what to do in a breakdown or after a crash, and what the law requires you to carry. |
334
+ | `viafrei://rules/electric-driving` — Electric driving in Germany — E plate, charging, payment, plugs (DE/EN) | What an electric car needs in Germany: the E-Kennzeichen and why its privileges differ per city, the green plaque, the right to ad-hoc card payment, plug standards, how prices are shown, etiquette and what to do in an emergency. |
335
+ | `viafrei://status/feeds` — Feed status | Per feed: is it still arriving? |
336
+ | `viafrei://watches` — My watches | The watches THIS conversation has open, with what each one is watching and when it expires. |
337
+ | `viafrei://gazetteer` — Gazetteer coverage | What the place index (gazetteer_places) holds: rows and last load per source and kind, how many carry an English name, and the sixteen Länder it can name — the coverage behind find_place/find_poi/find_nearby's place answers. |
338
+ | `viafrei://addresses` — Address coverage | What the OSM-derived address table (osm_addresses) holds per Bundesland — rows and the extract date — plus the ODbL § 4.6 offer owed to anyone who receives an address-derived result. |
339
+ | `viafrei://watch/{id}` — One watch | One watch of this conversation: what is being watched, what it has reported, and the attribution of the data behind each report. |
340
+ | `viafrei://place/{query}` — A resolved place | One place, poi or address resolved the same way every tool resolves `place` — a point, a short list of candidates, or an honest no — so a name can be pinned once and reused as lat/lon. |
341
+
342
+ <!-- catalogue:end -->
343
+
344
+ **The running server is the source of truth.** This list and [API.md](API.md)
345
+ are rendered from a dated snapshot of it, and CI fails if either drifts from that
346
+ snapshot. Ask any MCP client for `tools/list` to see what is live this minute.
165
347
 
166
348
  ### Worked use cases
167
349
 
168
- Five walkthroughs, each naming the tools that answer it and what comes back:
169
-
170
- - [Driving Munich to Berlin](https://github.com/mavrovde/viafrei-bridge/wiki/Use-case-Driving-Munich-to-Berlin) — briefing a motorway run: several A-roads in one call, roadworks ahead, a fuel or charging stop, parking at the far end.
171
- - [The commute that broke](https://github.com/mavrovde/viafrei-bridge/wiki/Use-case-The-commute-that-broke) — departures, regional disruption, and a station lift that is out, which is the difference between a step-free route existing and not.
172
- - [An EV on a long weekend](https://github.com/mavrovde/viafrei-bridge/wiki/Use-case-An-EV-on-a-long-weekend) — charging by connector and power, low-emission-zone rules, what is around a stop.
173
- - [Fleet and logistics briefings](https://github.com/mavrovde/viafrei-bridge/wiki/Use-case-Fleet-and-logistics-briefings) — a dispatcher's morning brief, watches that report a change instead of being polled, and the one licence rule that bites hardest here.
174
- - [Building a local guide agent](https://github.com/mavrovde/viafrei-bridge/wiki/Use-case-Building-a-local-guide-agent) — a vague place to coordinates and back, and what OpenStreetMap's licence asks of you.
175
-
176
- ## Why build on it
177
-
178
- - **One endpoint instead of a stack of integrations.**
179
- [SOURCES.md](SOURCES.md) lists **twenty-one sources from sixteen publishers** —
180
- Autobahn GmbH, the national access point, Deutsche Bahn, DWD, BKG, GeoNames,
181
- OpenStreetMap, MTS-K and the rest — each with its own format, its own release
182
- rhythm and its own licence. They arrive here as one protocol and one set of
183
- tools. (Count them in that table; one of the sixteen is us.)
184
- - **The licence work is done and it travels with the answer.** Every result
185
- carries the attribution line its sources require, and the ones with conditions
186
- attached say so in the result itself — share-alike is flagged, and the MTS-K
187
- purpose limit arrives as a sentence you are meant to show. You are not left to
188
- work out what you owe whom.
189
- - **It answers in the language of the question**, German or English, rather than
190
- translating out of one house language.
191
- - **It is a transport shim and nothing more.** The bridge holds no data and no
192
- credentials, writes no file outside the OS temp directory, and makes no
193
- decision about any answer. No telemetry, no analytics, no usage counter, no
194
- update check — see [What it does not do](#what-it-does-not-do).
195
- - **Failures are machine-readable.** One line on stderr and a distinct exit code
196
- per cause, so a supervisor can tell "your network is down" from "you typed the
197
- flag wrong" without parsing English.
198
- - **Ask once, be told when it changes.** A watch turns polling into a
199
- notification for as long as the conversation lives.
200
-
201
- Free while ViaFrei stabilises, and the limits that exist are written down on this
202
- page rather than discovered in production.
203
-
204
- ## Configuration
350
+ Walkthroughs that chain several tools, each naming what comes back:
351
+
352
+ - 🛣️ [Driving Munich to Berlin](https://github.com/mavrovde/viafrei-mcp/wiki/Use-case-Driving-Munich-to-Berlin): several motorways in one call, roadworks ahead, a fuel or charging stop, and parking at the far end.
353
+ - 🚉 [The commute that broke](https://github.com/mavrovde/viafrei-mcp/wiki/Use-case-The-commute-that-broke): departures, regional disruption, and a station lift that is out.
354
+ - 🔋 [An EV on a long weekend](https://github.com/mavrovde/viafrei-mcp/wiki/Use-case-An-EV-on-a-long-weekend): charging by connector and power, low-emission-zone rules, and what is around a stop.
355
+ - 🚚 [Fleet and logistics briefings](https://github.com/mavrovde/viafrei-mcp/wiki/Use-case-Fleet-and-logistics-briefings): a dispatcher's morning brief, and watches that report a change instead of being polled.
356
+ - 🗺️ [Building a local guide agent](https://github.com/mavrovde/viafrei-mcp/wiki/Use-case-Building-a-local-guide-agent): a vague place to coordinates and back, and what OpenStreetMap's licence asks of you.
357
+
358
+ ## 🛠️ For developers
359
+
360
+ **It's plain MCP over HTTP.** You can call it without an SDK:
361
+
362
+ ```bash
363
+ # 1. open a session
364
+ curl -si https://mcp.viafrei.de/mcp \
365
+ -H 'content-type: application/json' -H 'accept: application/json, text/event-stream' \
366
+ -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"me","version":"0"}}}' \
367
+ | grep -i mcp-session-id
368
+
369
+ # 1b. tell the server you are ready — the MCP lifecycle requires it before any request
370
+ curl -s https://mcp.viafrei.de/mcp \
371
+ -H 'content-type: application/json' -H 'accept: application/json, text/event-stream' \
372
+ -H 'mcp-session-id: <from step 1>' -H 'mcp-protocol-version: 2025-06-18' \
373
+ -d '{"jsonrpc":"2.0","method":"notifications/initialized"}'
374
+
375
+ # 2. ask a question (put the session id from step 1 in the header)
376
+ curl -s https://mcp.viafrei.de/mcp \
377
+ -H 'content-type: application/json' -H 'accept: application/json, text/event-stream' \
378
+ -H 'mcp-session-id: <from step 1>' -H 'mcp-protocol-version: 2025-06-18' \
379
+ -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"check_weather_warnings","arguments":{"place":"Freiburg im Breisgau","language":"en"}}}'
380
+ ```
381
+
382
+ - **One endpoint instead of a stack of integrations.** [SOURCES.md](SOURCES.md)
383
+ lists the publishers behind it, among them Autobahn GmbH, Deutsche Bahn, DWD,
384
+ DELFI, the national access point Mobilithek, BKG, GeoNames, OpenStreetMap and
385
+ MTS-K. Each has its own format, release rhythm and licence, and they arrive
386
+ here as one protocol.
387
+ - **Results are written to be read aloud.** A tool answers in sentences an
388
+ assistant can pass on, says what it does not know ("no status data means
389
+ unknown, not free"), and ends with the source line.
390
+ - **Annotated honestly.** Eighteen of the twenty tools are read-only and
391
+ idempotent (`readOnlyHint`, `idempotentHint`), so a client can call them
392
+ without a confirmation prompt. The two watch tools are not, because opening
393
+ or stopping a watch changes what the server will tell you later, and their
394
+ annotations say so.
395
+ - **Prompts and resources, not only tools.** Nine ready-made briefings, and a
396
+ reference shelf (driving rules, emission zones, emergency numbers,
397
+ attribution) your assistant can read directly.
398
+ - **Watches.** `watch_situation` turns polling into a notification for as long
399
+ as the session lives: a road closure appearing or clearing, a stop's departures
400
+ running late, a region's late share reaching a threshold (a quarter by
401
+ default), a DWD warning coming into force, a charge point turning free. Three
402
+ hours by default, 24 at most, and at most 10 per session. What a watch has
403
+ reported is readable at `viafrei://watches` and `viafrei://watch/{id}`, and a
404
+ client that subscribes to that resource is told when it reports something new.
405
+ It reaches no inbox and no phone.
406
+ - **Machine-readable failures**, in the bridge too: one line on stderr and a
407
+ distinct exit code per cause (see below).
408
+
409
+ ### Bridge configuration
205
410
 
206
411
  | option | what it does |
207
412
  |---|---|
208
- | `--url <url>` | endpoint to relay to. Default `https://mcp.viafrei.de/mcp` — see the note below |
413
+ | `--url <url>` | endpoint to relay to. Default `https://mcp.viafrei.de/mcp`. See the note below |
209
414
  | `--header "Name: value"` | extra HTTP header on every request, repeatable. For an API key, when there is one |
210
415
  | `--timeout <ms>` | per-request timeout, default 30000. The event stream is never timed out |
211
416
  | `--version`, `--help` | print and exit |
@@ -216,145 +421,133 @@ has an environment variable too:
216
421
  | variable | same as |
217
422
  |---|---|
218
423
  | `VIAFREI_MCP_URL` | `--url` |
219
- | `VIAFREI_MCP_HEADER` | `--header`. Several headers are separated by a **newline**, which can never appear in a header name or value, so nothing you might need to send is unrepresentable — a comma, a semicolon and a space all occur inside real header values |
424
+ | `VIAFREI_MCP_HEADER` | `--header`. Separate several headers with a **newline**, which can never appear in a header name or value. That way nothing you might need to send is unrepresentable: a comma, a semicolon and a space all occur inside real header values |
220
425
  | `VIAFREI_MCP_TIMEOUT_MS` | `--timeout` |
221
426
 
222
- A flag wins over the variable; the variable wins over the built-in default. A
223
- `--header` of the same name replaces one from the variable, and a `--header` of
224
- a different name is added alongside it.
225
-
226
- ```json
227
- {
228
- "mcpServers": {
229
- "viafrei": {
230
- "command": "npx",
231
- "args": ["-y", "viafrei"],
232
- "env": { "VIAFREI_MCP_HEADER": "Authorization: Bearer …" }
233
- }
234
- }
235
- }
236
- ```
427
+ A flag wins over the variable, and the variable wins over the built-in default.
428
+ A `--header` of the same name replaces one from the variable; a `--header` of a
429
+ different name is added alongside it.
237
430
 
238
- **There is no self-hosted ViaFrei.** The server is a hosted service, so `--url`
239
- is not a way to run your own — it is there for a proxy or gateway in front of
240
- the service, and for the stub server this repository's test suite starts.
241
- Leave it unset and the bridge goes to the hosted endpoint, which is what you
242
- want.
431
+ **There is no self-hosted ViaFrei.** The server is a hosted service. `--url` is
432
+ not a way to run your own: it exists for a proxy or gateway in front of the
433
+ service, and for the stub server this repository's test suite starts.
243
434
 
244
- ## When something is wrong
435
+ ### When something is wrong
245
436
 
246
- One line to stderr and an exit code that says what happened. No stack traces:
437
+ The bridge prints one line to stderr and exits with a code that says what
438
+ happened. No stack traces:
247
439
 
248
440
  ```
249
441
  viafrei: cannot reach https://example.invalid/mcp: host not found (DNS) (ENOTFOUND) - check your network connection; --url only if you relay through a proxy
250
442
  ```
251
443
 
252
- That line is copied from a run, exit code 3. The same text also goes back to the
253
- client as a JSON-RPC error, so an assistant can say what went wrong instead of
254
- going quiet.
444
+ The same text also goes back to the client as a JSON-RPC error, so an assistant
445
+ can say what went wrong instead of going quiet.
255
446
 
256
447
  | exit | meaning |
257
448
  |---|---|
258
449
  | `0` | clean shutdown (the client closed stdin, or sent SIGINT/SIGTERM) |
259
450
  | `1` | something else went wrong; the line says what |
260
- | `2` | bad usage — a flag or a value the bridge does not accept |
451
+ | `2` | bad usage: a flag or a value the bridge does not accept |
261
452
  | `3` | the endpoint could not be reached, stopped answering, or never answered in time |
262
- | `4` | the endpoint answered and this cannot continue: it refused (the line names the HTTP status), it forgot the session, it answered with something that is not MCP, or it redirected to another origin |
453
+ | `4` | the endpoint answered and the bridge cannot continue: it refused (the line names the HTTP status), forgot the session, answered with something that is not MCP, or redirected to another origin |
263
454
  | `5` | protocol version mismatch; the line names the version the server speaks |
264
455
 
265
456
  **A slow call may be a retried call.** A `429`, `502`, `503` or `504` is tried
266
- again **once** — after the delay the server asked for in `Retry-After`, or 250 ms
267
- when it asked for none. A connection that fails outright rather than answering
268
- (reset, broken pipe, socket or connect timeout) is likewise tried once more, after
269
- the fixed 250 ms; there is no header to read on that path. Two cases are
270
- deliberately not retried, because waiting would be worse than answering: a `429`
271
- carrying no usable `Retry-After`, and any delay the server asks for that is longer
272
- than your timeout. Both come straight back as the ordinary failure line with the
273
- status in it. An event stream is never retried.
274
-
275
- **Your timeout bounds each request, not the call.** It is attached per HTTP
276
- request, so the second attempt gets a fresh one, and so does each hop of a
277
- same-origin redirect. What you can rely on is per request: no single request
278
- outlives the timeout, and a delay longer than the timeout is never waited out at
279
- all. What follows from that is the arithmetic: two attempts plus a delay that may
280
- itself be as long as the timeout is a worst case of about **three times** what you
281
- set, and more than that if the endpoint redirects, since every hop is bounded
282
- separately. **So no setting here caps the whole call** — if you need a hard
283
- ceiling, enforce it on your side and treat the timeout as the per-request bound it
284
- is.
285
-
286
- An established session is allowed to wobble — a dropped event stream is a
287
- warning, not an exit, and the bridge reconnects. It is not allowed to be dead
288
- in silence: several failures in a row with nothing succeeding in between end
289
- the process with the code above, so the client that started it finds out.
290
-
291
- ## What it does not do
292
-
293
- No telemetry, no analytics, no usage counter, no update check. It writes no
294
- file outside the OS temp directory, and it stores no credential — `--header` is
295
- passed through to the endpoint and never persisted or logged.
296
-
297
- It also does not follow a redirect off the origin you pointed it at. Your
298
- headers go to that origin and nowhere else: a cross-origin redirect is refused
299
- with one line naming both ends, so a server cannot forward your API key
300
- somewhere you did not choose. Same-origin redirects are followed normally.
301
-
302
- ## Using the data you get back
457
+ again **once**, after the delay the server asked for in `Retry-After`, or 250 ms
458
+ when it asked for none. A connection that fails outright (reset, broken pipe,
459
+ socket or connect timeout) is tried once more after 250 ms. Two cases are not
460
+ retried, because waiting would be worse than answering: a `429` with no usable
461
+ `Retry-After`, and any requested delay longer than your timeout. An event stream
462
+ is never retried.
463
+
464
+ **Your timeout bounds each request, not the whole call.** Two attempts plus a
465
+ delay can add up to about **three times** the timeout, and more if the endpoint
466
+ redirects. If you need a hard ceiling, enforce it on your side.
467
+
468
+ An established session may wobble: a dropped event stream is a warning, and the
469
+ bridge reconnects. It may not stay dead in silence. Several failures in a row
470
+ with nothing succeeding in between end the process with the code above, so the
471
+ client that started it finds out.
472
+
473
+ ### What the bridge does not do
474
+
475
+ - **No tracking.** No telemetry, no analytics, no usage counter, no update check.
476
+ - **No stored files or credentials.** It writes no file outside the OS temp
477
+ directory. `--header` is passed through to the endpoint and is never persisted
478
+ or logged.
479
+ - **No cross-origin redirects.** A redirect off the origin you pointed it at is
480
+ refused with one line naming both ends, so a server cannot forward your API
481
+ key somewhere you did not choose. Same-origin redirects are followed normally.
482
+
483
+ ## 💼 For businesses
484
+
485
+ - **The licence work is done, and it travels with the answer.** Each result
486
+ carries the attribution its sources require. Where a source attaches a
487
+ condition, the result states it: share-alike is flagged, and the MTS-K purpose
488
+ limit arrives as a sentence you are meant to show.
489
+ - **Built for answering people.** Live figures, sourced and dated, in the
490
+ language of the question. Good for travel and mobility assistants,
491
+ dispatchers' briefings, customer service and step-free station checks.
492
+ - **Read the business page:** [viafrei.de/en/business](https://viafrei.de/en/business).
493
+ It covers six use cases and how to work with us.
494
+
495
+ ## ⚖️ Using the data you get back
303
496
 
304
497
  Every result carries an attribution line. **Show it to the person reading the
305
- answer.** The full register lives at the resource `viafrei://attribution`, and
306
- **[SOURCES.md](SOURCES.md)** is the readable version of it: every publisher,
307
- what they cover, the licence, and the exact attribution line to reproduce.
498
+ answer.** The full register is at the resource `viafrei://attribution`, and
499
+ **[SOURCES.md](SOURCES.md)** is the readable version: every publisher, what it
500
+ covers, its licence, and the exact line to reproduce.
308
501
 
309
502
  Two constraints matter more than the rest, because getting them wrong is a
310
503
  licence breach rather than a style problem:
311
504
 
312
505
  - **MTS-K fuel prices are consumer information only.** No redistribution in any
313
- form — that includes aggregates, comparisons, price tables and anything
314
- derived. Answer the person who asked; do not build a product out of it.
315
- - **DELFI public-transport data is Creative Commons
316
- Attribution-ShareAlike.** Share-alike travels with anything you *derive* from
317
- it — recompute it, reshape it, rearrange it, build a delay table out of it, and
318
- that is Adapted Material you must license under BY-SA (art. 1(a) names material
319
- "translated, altered, arranged, transformed, or otherwise modified"). Merely **showing** it beside
320
- another source's data is an aggregation, and puts no obligation on the other
321
- source; an earlier version of this page said otherwise, which told you a
322
- licence forbids something it permits. The catalogue record for the realtime
323
- feed names no licence version, so do not rely on one for a derivative —
324
- [SOURCES.md](SOURCES.md) has the detail and the open question.
325
-
326
- Everything else — where each answer comes from, and what each licence asks of
327
- you — is in [SOURCES.md](SOURCES.md). See also [NOTICE](NOTICE) and
328
- [LICENSE](LICENSE).
506
+ form, including aggregates, comparisons, price tables and anything derived.
507
+ Answer the person who asked; do not build a product out of it. (This is also
508
+ why this page shows no fuel price.)
509
+ - **DELFI public-transport data is Creative Commons Attribution-ShareAlike.**
510
+ Share-alike travels with anything you *derive* from it: recompute it, reshape
511
+ it, rearrange it or build a delay table out of it, and that is Adapted
512
+ Material you must license under BY-SA (art. 1(a) names material "translated,
513
+ altered, arranged, transformed, or otherwise modified"). Merely **showing** it
514
+ beside another source's data is an aggregation and puts no obligation on the
515
+ other source. The catalogue record for the realtime feed names no licence
516
+ version, so do not rely on one for a derivative; [SOURCES.md](SOURCES.md) has
517
+ the detail.
518
+
519
+ See also [NOTICE](NOTICE) and [LICENSE](LICENSE).
520
+
521
+ ## 🗣️ Tell us when an answer is wrong
522
+
523
+ ViaFrei is live, free, and still growing. Some sources are thinner than they will
524
+ be, and a tool can be slow or wrong. **A tool that fails is something the server
525
+ sees. A tool that answers confidently with the wrong thing is not.** Use the
526
+ [*A tool answered badly, or not at all*](https://github.com/mavrovde/viafrei-mcp/issues/new?template=answer.yml)
527
+ issue template, saying what you asked and what came back. That report is the
528
+ one thing we cannot get any other way.
329
529
 
330
530
  ## The server itself
331
531
 
332
- The MCP server is offered as a **hosted service**, and its source is closed. It
333
- is not in this repository and is not published. What is public is the part that
334
- is meant to be: the tool names, their descriptions, their input schemas, the
335
- shape of the results and the attribution lines — everything a client reads from
336
- `tools/list`, which is the product surface.
337
-
338
- This is said plainly so nobody spends an evening looking for the server code.
339
-
340
- ## Contributing
341
-
342
- Yes, please — see [CONTRIBUTING.md](https://github.com/mavrovde/viafrei-bridge/blob/main/CONTRIBUTING.md) and
343
- [CODE_OF_CONDUCT.md](https://github.com/mavrovde/viafrei-bridge/blob/main/CODE_OF_CONDUCT.md). Issues and discussions are open. The
344
- bridge is small and self-contained, which is exactly what makes it a reasonable
345
- thing to send a first patch to.
532
+ The MCP server is a **hosted service**, and its source is closed. It is not in
533
+ this repository and is not published. What is public is the part meant to be:
534
+ the tool names, descriptions, input schemas, result shapes and attribution
535
+ lines, which is everything a client reads from `tools/list`. We say this plainly
536
+ so nobody spends an evening looking for the server code.
346
537
 
347
- **One issue template is worth knowing about before you need it:** *the answer was
348
- wrong or useless*. A tool that fails is something the server sees; a tool that
349
- answers confidently with the wrong thing is not. That report is the one thing we
350
- cannot get any other way.
538
+ ## Contributing · Security · Licence
351
539
 
352
- ## Security
540
+ - **Contributing:** yes, please. See [CONTRIBUTING.md](https://github.com/mavrovde/viafrei-mcp/blob/main/CONTRIBUTING.md)
541
+ and [CODE_OF_CONDUCT.md](https://github.com/mavrovde/viafrei-mcp/blob/main/CODE_OF_CONDUCT.md).
542
+ The bridge is small and self-contained, which makes it a good place for a first patch.
543
+ - **Security:** never open a public issue for a key, a token or anything that
544
+ looks like one. [SECURITY.md](https://github.com/mavrovde/viafrei-mcp/blob/main/SECURITY.md)
545
+ has the private reporting path.
546
+ - **Licence:** [Apache-2.0](LICENSE) for this code. Data obtained through the
547
+ server keeps its provider's licence; see [NOTICE](NOTICE).
353
548
 
354
- Never open a public issue for a key, a token or anything that looks like one.
355
- See [SECURITY.md](https://github.com/mavrovde/viafrei-bridge/blob/main/SECURITY.md) for the private reporting path.
549
+ <div align="center">
356
550
 
357
- ## Licence
551
+ **[viafrei.de](https://viafrei.de/en)** — Deutsch · English · Русский · Български · Українська · Română · Türkçe
358
552
 
359
- [Apache-2.0](LICENSE) for this code. Data obtained through the server keeps its
360
- provider's licence — see [NOTICE](NOTICE).
553
+ </div>
package/SOURCES.md CHANGED
@@ -143,8 +143,9 @@ is deliberately not re-measured, and the count says so rather than absorbing it:
143
143
  status this page cannot stand behind is worse than an honest gap.
144
144
 
145
145
  **The server has grown since that measurement, and this page has not re-run it.**
146
- As of the 2026-10-02 capture shipped alongside this page it exposes twenty tools,
147
- eighteen of them read-only. Between that measurement and the 2026-10-02 capture it
146
+ As of the capture shipped alongside this page (2026-10-04, server 1.7.0)
147
+ it exposes twenty tools, eighteen of them read-only — the same twenty as on
148
+ 2026-10-02. Between that measurement and the 2026-10-02 capture it
148
149
  gained two tools, and both matter here. One is a SECOND fuel tool,
149
150
  `find_fuel_station`, excluded from any spot check for exactly the same reason
150
151
  `find_cheapest_fuel` is, and the reason is a licence condition rather than a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viafrei",
3
- "version": "1.5.10",
3
+ "version": "1.7.0",
4
4
  "description": "German traffic, rail, parking, charging, fuel, address and weather data in your AI assistant - MCP, no API key. stdio bridge to the hosted ViaFrei MCP server.",
5
5
  "keywords": [
6
6
  "mcp",
@@ -18,18 +18,22 @@
18
18
  "autobahn",
19
19
  "deutsche-bahn",
20
20
  "departures",
21
+ "public-transport",
22
+ "roadworks",
23
+ "road-closures",
21
24
  "parking",
22
25
  "ev-charging",
23
26
  "fuel-prices",
24
27
  "geocoding",
28
+ "points-of-interest",
25
29
  "weather",
26
30
  "open-data"
27
31
  ],
28
32
  "homepage": "https://viafrei.de",
29
- "bugs": "https://github.com/mavrovde/viafrei-bridge/issues",
33
+ "bugs": "https://github.com/mavrovde/viafrei-mcp/issues",
30
34
  "repository": {
31
35
  "type": "git",
32
- "url": "git+https://github.com/mavrovde/viafrei-bridge.git"
36
+ "url": "git+https://github.com/mavrovde/viafrei-mcp.git"
33
37
  },
34
38
  "license": "Apache-2.0",
35
39
  "author": "ViaFrei",
@@ -75,6 +79,9 @@
75
79
  "check:versions": "node scripts/check-versions.mjs",
76
80
  "docs:api": "node scripts/gen-api-doc.mjs",
77
81
  "check:docs": "node scripts/gen-api-doc.mjs --check",
82
+ "docs:readme": "node scripts/gen-readme-catalogue.mjs",
83
+ "check:readme": "node scripts/gen-readme-catalogue.mjs --check",
84
+ "test:readme": "node scripts/gen-readme-catalogue.test.mjs",
78
85
  "check:sources": "node scripts/check-sources.mjs",
79
86
  "test:sources": "node scripts/check-sources.test.mjs",
80
87
  "probe:catalogue": "node scripts/probe-catalogue.mjs",