ÖPNV MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ÖPNV MCP ServerPlan a journey from Frankfurt to Stuttgart tomorrow at 8:00"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ÖPNV MCP Server
A Model Context Protocol (MCP) server for German public transport information using the v6.db.transport.rest API.
Features
Search stations and stops - Find train stations, bus stops, tram stops across Germany
Live departures/arrivals - Real-time information with delay tracking
Journey planning - Find connections with transfers, platform info, and tight connection warnings
Smart warnings - Highlights delays, cancellations, platform changes, and risky transfers
Supports all transport types: ICE, IC, RE, RB, S-Bahn, U-Bahn, Tram, Bus
Related MCP server: swiss-public-transport-mcp
Installation
npm install
npm run buildUsage
Add to your MCP client configuration. This server uses stdio transport.
Example configuration:
{
"mcpServers": {
"oepnv": {
"command": "node",
"args": ["/absolute/path/to/oepnv-mcp/dist/index.js"]
}
}
}Restart your MCP client to activate the server.
Example Queries
"Find trains from München Hbf to Berlin"
"Show me departures from Alexanderplatz"
"When does the next S-Bahn leave from Marienplatz?"
"Plan a journey from Stuttgart to Hamburg tomorrow at 10:00"
Available Tools
search_station
Search for stations and stops by name.
Parameters:
query(string): Station name (e.g., "München Hbf", "Berlin Alexanderplatz")
get_departures
Get live departures from a station.
Parameters:
stationId(string): Station ID from search resultsduration(number, optional): Time window in minutes (default: 90, max: 120)
get_arrivals
Get live arrivals at a station.
Parameters:
stationId(string): Station ID from search resultsduration(number, optional): Time window in minutes (default: 90, max: 120)
search_journeys
Find journey connections between two stations.
Parameters:
originId(string): Origin station IDdestinationId(string): Destination station IDdepartureTime(string, optional): Departure time inYYYY-MM-DDTHH:MMformat
Development
# Run in development mode
npm run dev
# Build
npm run build
# Start production server
npm startAPI
This server uses the v6.db.transport API (db-vendo-client as backend).
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceAn MCP server for interacting with the Berlin Public Transport (BVG) API to search for locations and plan journeys. It provides real-time access to departures, arrivals, trip details, and vehicle tracking within Berlin's transit network.Last updatedMIT
- AlicenseAqualityCmaintenanceMCP server for Swiss public transport — connections, stationboards, real-time delays, and direct booking links for SBB.Last updated41MIT
- AlicenseAqualityDmaintenanceProvides access to Deutsche Bahn's timetable data through MCP, enabling real-time train schedules, station search, and change tracking for German railway stations.Last updated454MIT
- Flicense-qualityDmaintenanceMCP server for real-time German public transport data (HAFAS/VBN network). Enables querying departures, arrivals, journeys, and nearby stops using natural language.Last updated
Related MCP Connectors
Swiss Transport MCP — wraps Transport Open Data API (free, no auth)
Geo-based flight search MCP server. Find more flights between any two places on earth
A MCP server for the Frankfurter API for currency exchange rates.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/alpenkind/oepnv-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server