The full app on your home screen: live departures and your leave-by time, one tap away. Download the .apk on your phone, open it, and allow the install.
LVB and BVG don’t talk to your assistant. nextTram does.Ask the one you already use.
Swipe for more →
AlexaLive in the Alexa Skill Store
Now live on Amazon Alexa.
nextTram passed Amazon’s skill certification. Enable it for free and every Echo in your home knows when you need to leave for your tram, with live times and delays for Leipzig and Berlin.
You„Alexa, frag next tram, wann kommt die nächste Bahn?“
AlexaDie 3 Richtung Hauptbahnhof kommt in 6 Minuten. Geh in 2 Minuten los.
MCPClaude · ChatGPT
Claude and ChatGPT know your tram.
nextTram has its own MCP server. Add your personal link as a connector in Claude or ChatGPT, and they answer for your own stops and walk. No sign-in, nothing to install.
Open nextTram and the first thing you see is when to leave. No menus, no search form, no offers to scroll past.
Between two stops? Set both.
Program two stops, each with its own walk. nextTram checks both at the same time and tells you which one to head for.
Nothing you don’t need.
No tickets, maps or news. Delays and your walk are already counted in, so the screen only shows the tram, the stop and when to go.
nextTramLeipzig · LVB
HbfAugustusplatzBerlin M10
Edlichstraße / Torgauer Platz → Hauptbahnhof
GO TO STOP
Torgauer Platz
3→ Knautkleeberg
6:296 min
TP
🚶 Leave in 2 min4 min walk
Stop 1 · 2 min walkEdlichstraße710 min
Stop 2 · 4 min walk BestTorgauer Platz36 min
3Torgauer Platz3→ Knautkleeberg6:29🚶 Leave in 2 min
Live demo · phone and Wear OS watch · sample departures
(02) How it works
See how the app connects to your assistant, without a login.
nextTram keeps no copy of the timetable and no database of its users. Your phone reads the public timetables itself, and seven small serverless functions on Vercel step in only for the assistants that can’t run an app. That’s the whole stack, with live numbers from production.
Architecture map. Your phone asks the public timetables (Transitous, DB HAFAS, BVG HAFAS) directly, with no server in between. Claude and ChatGPT reach a serverless function at /api/mcp, Siri reaches /api/say and Alexa reaches /api/alexa. All three run on Vercel, share one TypeScript core with the app, and fetch from the same public timetables. Saved stops sync through /api/favorites into Upstash Redis under a random code.
Follow a line
01 / 05 · Five parts of the stack
Swipe for more →
App01 · Fetch
Your phone asks the timetable directly.
Open nextTram and the phone itself requests live departures from public timetable APIs. No server of ours sits in between, and no API key is needed. Both of your stops are asked at the same time, and if a source fails or comes back empty, the next one answers.
// Fetch every option in parallel.const settled = await Promise.allSettled(
options.map((o) =>
client.connections(route.city, o.from, o.to, filter, …)),
);
Sample: two requests to Transitous run at the same time, one per stop, with DB HAFAS on standby as the fallback. The merged answer: tram 3 from Torgauer Platz, leave in 2 minutes.
Sync02 · No user database
No accounts. Your stops stay on your phone.
Routes, walk times and settings are saved in the browser’s storage on your device, so there is nothing to sign up for. Only when you connect an assistant does the app copy your stops online, under a random 12-character code instead of a name or an email address.
Claude, Siri and Alexa can’t run an app, so each one gets a small serverless function on Vercel. Each of them runs the same TypeScript core as the app, so a spoken answer follows exactly the same rules as the screen. There are no servers to keep running and no sessions: each request is answered on its own.
7 functions
1 TypeScript core
Stateless
Push to main = live
app.nexttram.morgado.techCalls · last 30 days
/api/mcpClaude · ChatGPT–
/api/saySiri–
/api/alexaAlexa–
All assistants–
Also running: /api/favorites · /api/alexa-link · /api/stats · /.well-known
Live from /api/stats: one Redis counter per function and day, with no codes and no user data. Without JavaScript the numbers stay blank.
MCP04 · Claude Code
Claude Code calls it as a tool.
nextTram is also an MCP server, the open protocol AI assistants use to call tools. One link adds it to Claude Code, Claude or ChatGPT, and “when’s my tram?” becomes a tool call to /api/mcp. There is no sign-in: the personal code in the link is the only key.
MCP over HTTP
Stateless JSON-RPC
3 tools
No OAuth
✻ Claude Codesample departures
$ claude mcp add --transport http nexttram https://app.nexttram.morgado.tech/api/mcp/<code>
>when do I have to leave for the tram?when do I have to leave for the tram?
⏺nexttram · get_next_tram (MCP)
⎿ Leave in 2 minutes for Tram 3 at Torgauer Platz. Or leave in 8 minutes for Tram 7 at Edlichstraße.
There is no iPhone app to install. Apple’s own Shortcuts app fetches one URL and reads the reply aloud. The endpoint answers in plain text, in the iPhone’s language, with the same sentence Alexa speaks, so it works on the iPhone, the Apple Watch and in CarPlay.
1 GET request
text/plain
English · Deutsch · Português
When is the next tram
Get contents ofapp.nexttram.morgado.tech/api/say?code=…
SpeakContents of URL
On the wire
GET /api/say?code=k7qm2xrdp9vt
Accept-Language: en-GB
200 OK
Content-Type: text/plain; charset=utf-8
Leave in 2 minutes for Tram 3 at Torgauer Platz. Or leave in 8 minutes for Tram 7 at Edlichstraße.
Built with Claude Code, shipped like a team would.
nextTram was built in Claude Code sessions, one small pull request at a time. Every push runs the type check, the unit tests and a build in GitHub Actions, and every pull request gets its own Vercel preview before it goes live.
nextTram shows the trams that are just leaving your stop. Run to make it.
(04) Your pace
Nobody knows your walk like you do.
Google Maps sends you out the front door and around the block, at an average pace. It doesn’t know your back exit. In nextTram you set your own walking time, or time a real walk, and “Leave in” follows it.
(05) The problem
Other apps make you wait.
A typical transit app takes its time to load: a splash screen, offers, a search form, a spinner, and then a list you still have to work out. nextTram loads only what you need and already counts delays and your walk. One answer, right away.
Typical transit app7taps0:18 to an answer
nextTram0taps0:01 to an answer
(06) Delays
Late? Already counted.
18:13+4− 4 walk= ?
You hearLeave in 2 min
No more mental arithmetic on the LVB or BVG app. Delays are folded into the countdown, and punctuality comes as one plain word.
early
on time
late
+late
++late
(07) Private by design
Nologin.database.account.login, no database, no account.