Czech Railways (České dráhy) MCP Server
Click on "Deploy 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., "@Czech Railways (České dráhy) MCP Server Find a train from Prague to Brno for tomorrow morning"
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.
cd-mcp
MCP (Model Context Protocol) server for Czech Railways (České dráhy) API.
This server provides AI assistants with tools to search for train connections, stations, and prices on the Czech railway network.
Features
Search Locations: Find train stations and cities in the Czech Railways network
Search Connections: Search for train connections between two stations
Get Connection Details: Get detailed information about a specific connection
Get Passenger Types: List available passenger types and discount categories
Get Price Offers: Get pricing information for connections
Related MCP server: YHT Bilet MCP Server
Installation
npm install
npm run buildUsage
With Claude Desktop
Add to your Claude Desktop configuration (claude_desktop_config.json):
{
"mcpServers": {
"cd-mcp": {
"command": "node",
"args": ["/path/to/cd-mcp/dist/index.js"]
}
}
}With MCP Inspector
npx @modelcontextprotocol/inspector node dist/index.jsDevelopment
npm run devAvailable Tools
search_locations
Search for train stations and cities by name.
Parameters:
query(string, required): Search query (e.g., "Praha", "Brno")type(string, optional): Location type filter (e.g., "station", "city")
search_connections
Search for train connections between two stations.
Parameters:
from(string, required): Departure stationto(string, required): Arrival stationdeparture(string, required): Departure date/time in ISO 8601 formatpassengers(number, optional): Number of passengers (1-9, default: 1)
get_connection_details
Get detailed information about a specific connection.
Parameters:
handle(string, required): Connection search handle from previous searchconnectionId(string, required): Connection identifier
get_passenger_types
Get available passenger types and discount categories.
Parameters: None
get_price_offer
Get a price offer for a connection (read-only, does not book tickets).
Parameters:
connectionId(string, required): Connection identifierpassengers(array, required): Array of passenger types and counts
Design Decisions
As a Principal Architect, the following design decisions were made:
Read-only operations only: The server only exposes read operations (search, get details, pricing). Booking, payment, and refund operations are intentionally excluded for security reasons - these should require explicit user action through official channels.
Stdio transport: Uses stdio transport for simple integration with MCP clients like Claude Desktop. HTTP transport can be added if needed.
Error handling: All tools include proper error handling and return user-friendly error messages.
Type safety: Full TypeScript implementation with proper type definitions for API responses.
Formatting: Results are formatted for readability with emojis and structured text output.
API Reference
This server interfaces with the Czech Railways Ticket API:
Documentation: https://ticket-api.cd.cz/swaggerUI/cdapi-1.0.0.yml
Base URL: https://ticket-api.cd.cz/api/v1
License
MIT
Available Tools
5 toolsget_connection_detailsGet Connection DetailsA
Get detailed information about a specific train connection. Note: This endpoint is not available with the mobile API - all connection details are included in search results.
Inputs: handle (required), connectionId (required).
get_passenger_typesGet Passenger TypesA
Get a list of available passenger types and discount categories (e.g., adult, child, senior, student discounts).
Inputs: no named parameters.
get_price_offerGet Price OfferB
Get a price offer for a specific connection. Note: Prices are already included in connection search results, so this separate endpoint is not available with the mobile API.
Inputs: passengers (required), connectionId (required).
search_connectionsSearch ConnectionsB
Search for train connections between two stations. Returns available trains with departure times, duration, and transfers.
Inputs: to (required), from (required), departure (required), passengers.
search_locationsSearch LocationsA
Search for train stations and cities in the Czech Railways network. Use this to find station codes for connection searches.
Inputs: query (required), type.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Tools have distinct purposes, but get_connection_details and get_price_offer are noted as redundant with search results, which could cause agent confusion if they attempt to use them and fail.
All tool names follow a consistent verb_noun pattern using snake_case: get_* and search_*. No naming anomalies.
5 tools is a reasonable size for a railway information server, but two tools are marked as unavailable with the mobile API, suggesting they could be removed.
Covers basic query operations (search stations, connections, passenger types), but lacks booking, real-time info, or station details, and duplicate tools reduce practical completeness.
Maintenance
Related MCP Connectors
Omio MCP server for ChatGPT, Claude and any AI agent: search trips, find the cheapest day and start booking in your own Omio account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Omio yourself; Cotlet does not store your password and you need no Omio API key. About the official Omio API: Omio has no public API for your own account (checked 24 Oct 2026). Its affiliate programme lists a Search API for partners, and its app in ChatGPT searches trips; Your Bookings, saved travelers and checkout work only on omio.com and in the Omio app. Setup and FAQ: https://cotlet.dev/integrations/omio-api-mcp-server
Cached UK train departures and qualified platforms, powered by National Rail Enquiries.
Live Polish rail data: boards for every station, delays, PLK disruptions, train punctuality.
Belgian trains for AI agents: live journeys, departures, delays, disruptions. Free, no key.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides real-time Dutch Railways (NS) data for journey planning, live departures, disruptions, and station search.3-
- AlicenseNot gradedqualityDmaintenanceEnables searching Turkish high-speed train (YHT) tickets via TCDD API. Supports real-time availability, station name resolution, date formatting, and passenger count.MIT
- AlicenseNot gradedqualityCmaintenanceProvides real-time Belgian rail (SNCB/NMBS) data via the iRail API, enabling AI agents to query train schedules and live information.118 npmMIT
- FlicenseAqualityDmaintenanceConnects AI assistants to Swiss Federal Railways (SBB/CFF/FFS) data: train schedules, station search, ticket prices, and direct ticket purchase links.679 npm-