YHT Bilet MCP Server

YHT Bilet MCP Server

yht-bilet-mcp-server•bycihatata

An MCP server for searching Turkish high-speed train tickets via the TCDD API.

License: MIT•Runtime: Awaiting documentation review•Category: search web

WHAT IT DOES

  • •Searches real-time TCDD ticket availability by departure and arrival station and travel date.
  • •Supports multiple passengers and an option to include or exclude wheelchair-accessible seats.
  • •Resolves station names to IDs and returns formatted results with train names, times, minimum price, and available cabin classes.
  • •Filters to show only trains that have not yet departed.

BEST FOR

  • •Checking YHT ticket availability between Turkish cities for a given date.
  • •Finding fare and cabin availability for multiple passengers.
  • •Excluding wheelchair-accessible seats from search results when not needed.

ABOUT YHT-BILET-MCP-SERVER

YHT Bilet MCP Server is cataloged as an MCP server attributed to cihatata. An MCP server for searching Turkish high-speed train tickets via the TCDD API. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for YHT Bilet MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does the server need a TCDD authorization token?

Yes. You must add a TCDD authorization token to your environment file, and tokens expire after some time.

How many tools does the server provide?

The server provides one tool named search_train_ticket.

Upstream README

View this exact version on GitHub

README.md · d924e4598e7f · Fetched 2026-11-13 13:11:22 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

YHT Bilet MCP Server

A Model Context Protocol (MCP) server for searching Turkish train (YHT/High-Speed Train) tickets via TCDD API.

Built with MCP TypeScript SDK

License: MIT TypeScript MCP

✨ Features

  • 🚄 Real-time ticket availability from TCDD API
  • 🗺️ Station name to ID mapping - automatic station resolution
  • 📅 Smart date formatting - automatically formats dates for API (1 day prior at 21:00)
  • 👥 Passenger count support - search for multiple passengers
  • ♿ Wheelchair accessibility filter - option to include/exclude wheelchair-accessible seats
  • ✅ Schema validation with Zod
  • 🎯 Future train filtering - only shows trains that haven't departed yet
  • 📦 Object-oriented architecture - clean, maintainable, and testable code

📋 Table of Contents

🚀 Quick Start

# 1. Clone the repository
git clone https://github.com/yourusername/yht-bilet-mcp.git
cd yht-bilet-mcp

# 2. Install dependencies
npm install

# 3. Create environment file
cp .env.example .env

# 4. Add your TCDD authorization token to .env
# (See "Getting Authorization Token" section below)

# 5. Build the project
npm run build

# 6. Add to Claude Desktop config (see Configuration section)

📦 Installation

Prerequisites

  • Node.js 18+
  • npm or yarn
  • Claude Desktop or any MCP-compatible client

Steps

1. Install Dependencies

npm install

2. Set Up Environment Variables

Copy the example environment file:

cp .env.example .env

3. Get Your Authorization Token

  1. Visit TCDD E-Ticket Website
  2. Open your browser's Developer Tools (F12)
  3. Go to the Network tab
  4. Perform a ticket search
  5. Find the train-availability request
  6. Copy the Authorization header value from Request Headers
  7. Paste it into your .env file:
AUTH_TOKEN=eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldU...

Note: Authorization tokens expire after some time. If you get authentication errors, get a fresh token.

4. Build the Project

npm run build

🎮 Usage

Adding to Claude Desktop

Add the server to your MCP client configuration:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "yht-bilet": {
      "command": "node",
      "args": [
        "/absolute/path/to/yht-bilet-mcp/build/index.js"
      ]
    }
  }
}

Important: Use absolute paths, not relative paths!

Available Tools

The server provides one tool: search_train_ticket

Parameters

ParameterTypeRequiredDefaultDescription
fromstringYes-Departure station name (e.g., "Ankara")
tostringYes-Arrival station name (e.g., "Eskişehir")
datestringYes-Travel date in YYYY-MM-DD format (e.g., "2025-12-25")
passengerCountnumberNo1Number of passengers
includeWheelchairSeatsbooleanNotrueInclude wheelchair-accessible seats in results

Example Usage

In Claude Desktop, you can ask:

Are there any train tickets from Ankara to Eskişehir on December 25, 2025 for 2 passengers?

MCP client will translate this to:

{
  "from": "Ankara",
  "to": "Eskişehir",
  "date": "2025-12-25",
  "passengerCount": 2,
  "includeWheelchairSeats": true
}

To exclude wheelchair seats:

Find train tickets from Ankara to Eskişehir on December 25, 2025, but don't show wheelchair seats.

Response Format

The server returns a formatted text response with:

  • ✅/✗ Success/failure indicator
  • 🚂 Train commercial name
  • ⏰ Departure and arrival times
  • 💰 Minimum price
  • 📍 Available cabin classes with seat counts

Example Response:

✓ Ankara - Eskişehir arası 27.12.2025 tarihi için 3 adet tren sefer bulundu.

🚂 YHT ESKİŞEHİR - ANKARA (11:30 - 12:54):
   Minimum Fiyat: 390 TL
   
   📍 Müsait Kabinler:
      • BUSİNESS: 39 koltuk
      • EKONOMİ: 86 koltuk
      • TEKERLEKLİ SANDALYE: 2 koltuk
...

📝 License

MIT License - see LICENSE file for details


Made with ❤️ for the Turkish rail community

Need help? Open an issue

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for YHT Bilet MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/yht-bilet-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related search web MCP Servers

Alternative and complementary servers in the same category

View all in search web →

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Repository stats unavailable
Search & Web Research

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.

94
Search & Web Research