DB Timetable MCP Server
@jorekai
About DB Timetable MCP Server
Ein Model Context Protocol (MCP) Server für die Deutsche Bahn Timetable API
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"db-timetable-mcp": {
"command": "npx",
"args": [
"fastmcp",
"inspect",
"path/to/index.js"
]
}
}
}Tools
No tools detected
Fetch the live tool list by running this server in a temporary sandbox using the button above.
Overview
What is DB Timetable MCP Server?
A Model Context Protocol server that integrates with the Deutsche Bahn Timetable API. It provides MCP tools and resources to access live and planned timetable data, station information, and train changes. Designed for developers building MCP-compatible applications.
How to use DB Timetable MCP Server?
Install Node.js 18+, clone the repo, run npm install and npm run build. Create a .env file with your DB API credentials (DB_TIMETABLE_CLIENT_ID, DB_TIMETABLE_CLIENT_SECRET). Start the server with npm start for stdio mode or TRANSPORT_TYPE=sse npm start for SSE mode.
Key features of DB Timetable MCP Server
- Fetch current timetable data for a station
- Retrieve recent timetable changes
- Access planned timetable for a given date and hour
- Search stations by name or code
Use cases of DB Timetable MCP Server
- Show real-time departures for a specific station
- Monitor recent timetable changes for operational awareness
- Look up planned train schedules on a future date
- Find a station’s EVA number by name or code
FAQ from DB Timetable MCP Server
What are the prerequisites?
Node.js 18 or higher and valid API credentials (client ID and client secret) for the Deutsche Bahn Timetable API.
How do I configure the server?
Create a .env file in the project root with DB_TIMETABLE_CLIENT_ID, DB_TIMETABLE_CLIENT_SECRET, and optional settings like TRANSPORT_TYPE, PORT, SSE_ENDPOINT, and LOG_LEVEL.
What transport modes are supported?
The server supports both stdio (default) and SSE (Server-Sent Events) transports.
Where does the timetable data come from?
Data is sourced from the official Deutsche Bahn Timetable API and is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
What MCP tools are available?
Four tools: getCurrentTimetable, getRecentChanges, getPlannedTimetable, and findStations. Each takes an EVA number or search pattern as input.
Frequently asked questions
What are the prerequisites?
Node.js 18 or higher and valid API credentials (client ID and client secret) for the Deutsche Bahn Timetable API.
How do I configure the server?
Create a `.env` file in the project root with `DB_TIMETABLE_CLIENT_ID`, `DB_TIMETABLE_CLIENT_SECRET`, and optional settings like `TRANSPORT_TYPE`, `PORT`, `SSE_ENDPOINT`, and `LOG_LEVEL`.
What transport modes are supported?
The server supports both `stdio` (default) and SSE (Server-Sent Events) transports.
Where does the timetable data come from?
Data is sourced from the official Deutsche Bahn Timetable API and is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
What MCP tools are available?
Four tools: `getCurrentTimetable`, `getRecentChanges`, `getPlannedTimetable`, and `findStations`. Each takes an EVA number or search pattern as input.
Basic information
More Databases MCP servers

Local YDB MCP
astandrikSafety-first stdio MCP server with 38 tools for operating Docker-based local-ydb environments locally or over SSH.
MongoDB MCP Server
mongodb-jsA Model Context Protocol server to connect to MongoDB databases and MongoDB Atlas Clusters.
Multi Database MCP Server
FreePeakA powerful multi-database server implementing the Model Context Protocol (MCP) to provide AI assistants with structured access to databases.
Redis MCP Server
redisThe official Redis MCP Server is a natural language interface designed for agentic applications to manage and search data in Redis efficiently
MotherDuck's DuckDB MCP Server
motherduckdbLocal MCP server for DuckDB and MotherDuck
Comments