China 12306 Train Tickets MCP
Server Details
MCP server for China Railway 12306 ticket availability: schedules and seats by Chinese station name.
- Status
- Healthy
- Last Tested
- Transport
- Streamable HTTP
- URL
- Repository
- boy-373/12306-train-mcp
- GitHub Stars
- 0
- Server Listing
- 12306 Train MCP
Available Tools
2 toolsquery_train_ticketsInspect
查询中国大陆12306火车票余票信息。
参数:
from_city: 出发城市或车站中文名,例如 "青岛"、"北京南"
to_city: 到达城市或车站中文名,例如 "北京"、"上海虹桥"
date: 出发日期,格式 YYYY-MM-DD,例如 "2026-09-01";留空默认明天
返回:
车次列表,含车次号、出发/到达站、出发/到达时间、历时、各席别余票。
注意: 仅支持查票,不能购票;12306预售期通常为15天。
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| to_city | Yes | ||
| from_city | Yes |
search_stationInspect
按关键词搜索12306车站名称,返回匹配的车站中文名列表。 当不确定城市有哪些车站时使用,例如搜 "北京" 返回 北京/北京南/北京西/北京北 等。
| Name | Required | Description | Default |
|---|---|---|---|
| keyword | Yes |
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
2 tool updates
- First observed
query_train_tickets - First observed
search_station
Frequently Asked Questions
Claiming proves that you control a remote MCP connector. It does not move, proxy, or interrupt the server.
Open the connector listing, choose Claim ownership, and sign in to Glama.
Complete one verification method:
GitHub identity — fastest for official registry listings. For a namespace such as
io.github.alice/server, link the matching GitHub user, then choose Claim with GitHub. An organization namespace such asio.github.acme/serveralso needs that organization to have installed the Glama AI GitHub App and approved its permissions, because GitHub discloses organization membership only to apps it has installed. Use HTTP or DNS when it has not.HTTP challenge — works when you can deploy a public file. Generate a token, publish the exact JSON Glama shows at
/.well-known/glama.jsonon the same origin as the connector, then choose Check HTTP challenge.DNS challenge — works when you control DNS but cannot change the server. Generate a token, create the exact TXT record Glama shows, wait for it to propagate, then choose Check DNS challenge.
After verification, Glama sends a confirmation email and gives you access to listing details, thumbnails, health checks, and analytics. Keep the HTTP file or DNS record in place: Glama periodically checks it and ownership remains verified while the token is discoverable.
The HTTP ownership file has this structure:
{
"$schema": "https://glama.ai/mcp/schemas/connector.json",
"claim": "glama_claim_..."
}Claim tokens are opaque, stable, and bound to the signed-in Glama account. They contain no email address or other personal information. If Glama can no longer discover a verified HTTP or DNS token, it starts a seven-day grace period before removing claim-based access. Restore the same token during that period to keep ownership verified. Never publish an email address, Glama session token, GitHub token, or connector credential as ownership proof.
If verification fails, confirm that you copied the current token exactly. The HTTP file must be public, return valid JSON with a successful HTTP response, and stay on the connector's origin. DNS changes may need more time to propagate. A claim cannot transfer to a different origin or hostname: if the connector target changes, Glama starts the grace period and the new target must be claimed separately after the previous claim is released.
For a connector linked to the official MCP Registry, registry updates continue to replace its name, description, and URL by default. After claiming, open Manage connector and enable Use Glama listing details as the source of truth if edits made on Glama should be preserved. Categories and thumbnails are always managed on Glama; registry linkage and technical connection settings continue to sync.
Control your server's listing on Glama, including description and metadata
Access analytics and receive server usage reports
Get monitoring and health status updates for your server
Feature your server to boost visibility and reach more users
To improve your MCP server's ranking:
Claim ownership of the server listing
Complete the server profile with an accurate description and thumbnail
Provide a test profile so Glama can connect to and evaluate the server
Keep tool definitions clear and complete to earn a high Tool Definition Quality Score (TDQS)
Route real usage through the Glama Gateway; more recorded successful server uses also improve the ranking
For users:
Full audit trail – every tool call is logged with inputs and outputs for compliance and debugging
Granular tool control – enable or disable individual tools per connector to limit what your AI agents can do
Centralized credential management – store and rotate API keys and OAuth tokens in one place
Change alerts – get notified when a connector changes its schema, adds or removes tools, or updates tool definitions, so nothing breaks silently
For server owners:
Proven adoption – public usage metrics on your listing show real-world traction and build trust with prospective users
Tool-level analytics – see which tools are being used most, helping you prioritize development and documentation
Direct user feedback – users can report issues and suggest improvements through the listing, giving you a channel you would not have otherwise
The connector status is unhealthy when Glama is unable to successfully connect to the server. This can happen for several reasons:
The server is experiencing an outage
The URL of the server is wrong
Credentials required to access the server are missing or invalid
If you are the owner of this MCP connector and would like to make modifications to the listing, including providing test credentials for accessing the server, please contact support@glama.ai.
Discussions
No comments yet. Be the first to start the discussion!
Related MCP Connectors
MCP server for current weather and multi-day forecasts worldwide, Chinese city names and output.
11Skiplagged MCP Server for flight search, hotel booking, and travel planning
MCP server providing attendance data queries via the CloudTime API.
MCP server for IPv4 geolocation with Chinese output: country/region/city, ISP and ASN.
11
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceMCP server providing access to Russian Railways ticket API, enabling train search, station lookup, and trip information.MIT
- AlicenseBqualityDmaintenance12306 ticket purchase search server based on Model Context Protocol (MCP). It provides a simple API interface, allowing large models to search for 12306 ticket purchasing information through the interface.81Apache 2.0
- AlicenseBqualityCmaintenanceEnables searching 12306 railway ticket information, filtering trains, querying passing stations, and searching transfer routes through MCP.88,313MIT
- AlicenseNot gradedqualityBmaintenanceRead-only MCP server that queries Russian Railways (ticket.rzd.ru) for train schedules, car types, prices, and seat availability. It provides official RZD links for manual booking but does not log in, book, or pay.511MIT
Glama MCP Gateway
Add one secure layer between your agents and this server.
TSQS
Score is being calculated.