drfccv avatar

Mcp Server 12306

drfccv/mcp-server-12306

The MCP Server 12306 provides real-time Chinese railway ticket query capabilities by integrating with the official 12306 system, offering tools for ticket availability, pricing, station information, transfer routes, and train schedules. It delivers these services through FastAPI with support for both stdio and HTTP transport protocols, enabling seamless integration with AI assistants and automation workflows. The server solves the problem of accessing comprehensive train travel information programmatically while maintaining high performance and MCP standard compliance.

GitHub stars
342
tools
7
transport
STDIO
last updated
Feb 9, 2026

Tools

7 tools

Public tool metadata for what this MCP can expose to an agent.

query-tickets余票 / 车次 / 座席 / 时刻一站式查询

余票 / 车次 / 座席 / 时刻一站式查询

No parameter schema in public metadata yet.

query-ticket-price实时查询车次票价

实时查询车次票价

No parameter schema in public metadata yet.

search-stations车站模糊搜索(中文 / 拼音 / 简拼 / 三字码)

车站模糊搜索(中文 / 拼音 / 简拼 / 三字码)

No parameter schema in public metadata yet.

query-transfer中转换乘方案查询

中转换乘方案查询

No parameter schema in public metadata yet.

get-train-route-stations查询列车经停站及时刻表

查询列车经停站及时刻表

No parameter schema in public metadata yet.

get-train-no-by-train-code车次号 → 官方唯一编号

车次号 → 官方唯一编号

No parameter schema in public metadata yet.

get-current-time当前时间与相对日期(辅助选日期)

当前时间与相对日期(辅助选日期)

No parameter schema in public metadata yet.

Sponsors

Readme

🚄 MCP Server 12306

基于 Model Context Protocol (MCP) 的 12306 火车票查询服务


View the full README on GitHub

Details

Repository
github.com/drfccv/mcp-server-12306
Package
mcp-server-12306
Transport
STDIO
Registry
MCP registry, active