MCP Server 12306
12306 MCP Server 是一个基于 Model Context Protocol (MCP) 的高性能火车票查询后端系统。它通过标准化接口提供官方 12306 的实时数据服务,包括余票查询、车站信息、列车经停站、中转换乘方案等核心功能。
MCP Server 12306 is an open-source mcp server by drfccv, written mainly in Python, with 416 GitHub stars and the MIT license. Its code was last updated Sep 30, 2026.
Scan summary: scanned Nov 5, 2026 at commit 413e3cb. Seen able to read environment and secrets, connect to databases, touch money or trading, connect to the internet. Scan policy
413e3cb · Nov 5, 2026Findings (10)
- highHigh. Something risky that needs a close look before you install.dependencies issueDetails are available to the maintainer after claiming this listing.
- mediumMedium. Worth checking, often a vulnerable dependency or a setup problem.Turns off TLS certificate checking, allowing traffic interception.
scripts/update_stations.py:19 - mediumMedium. Worth checking, often a vulnerable dependency or a setup problem.Turns off TLS certificate checking, allowing traffic interception.
src/mcp_12306/services/ticket_service.py:69 - mediumMedium. Worth checking, often a vulnerable dependency or a setup problem.black@26.5.1: 1 known vulnerabilityGHSA-cg8m-r9f2-5wm2
uv.lock - mediumMedium. Worth checking, often a vulnerable dependency or a setup problem.filelock@4.0.1: 14 known vulnerabilitiesGHSA-567q-5qvw-pf92, GHSA-6627-m3xw-93mp, GHSA-69hj-f68j-2879, GHSA-8mx5-7m5m-r77g, GHSA-9c4x-gm8v-wgc4 +9 more
uv.lock - mediumMedium. Worth checking, often a vulnerable dependency or a setup problem.pyjwt@2.14.0: 2 known vulnerabilitiesPYSEC-2026-4141, PYSEC-2026-4183
uv.lock - mediumMedium. Worth checking, often a vulnerable dependency or a setup problem.virtualenv@21.10.0: 15 known vulnerabilitiesGHSA-394h-qwmc-48pf, GHSA-43mp-35q3-x3fq, GHSA-494p-63j8-28p3, GHSA-558c-9hv2-4prj, GHSA-5vjq-rrrf-7h2q +10 more
uv.lock - mediumMedium. Worth checking, often a vulnerable dependency or a setup problem.Install contacted hosts other than package registriesmirrors.aliyun.com
- lowLow. Minor, or common in normal tools. Shown for information.opentelemetry-api@1.44.0: 1 known vulnerabilityGHSA-xcq7-p3pf-p88h
uv.lock - lowLow. Minor, or common in normal tools. Shown for information.Reads environment variables not listed in the manifestUSERNAME, USER
Network activity
Tools exposed (7)
query-tickets官方12306余票/车次/座席/时刻一站式查询。输入出发站、到达站、日期,返回所有可购车次、时刻、历时、各席别余票等详细信息。支持中文名、三字码。 【智能筛选指南】返回结果通常包含出发/到达城市的所有相关车站(如北京/北京西/北京南)。请根据用户输入语境灵活处理: 1. 用户仅输入城市名(如'九江'):请展示所有相关站点的车次,不要过滤。 2. 用户指定具体车站(如'九江站'):优先展示匹配车站的车次,但若其他同城车站有更优方案(如时间更短、有票),也应作为补充选项提供。 请避免机械地仅通过字符串匹配过滤车次,以免遗漏用户可能感兴趣的出行方案。
query-ticket-price查询火车票价信息。输入出发站、到达站、日期,返回各车次的票价详情。支持指定车次号过滤。 【智能筛选指南】返回结果通常包含出发/到达城市的所有相关车站(如北京/北京西/北京南)。请根据用户输入语境灵活处理: 1. 用户仅输入城市名(如'九江'):请展示所有相关站点的车次,不要过滤。 2. 用户指定具体车站(如'九江站'):优先展示匹配车站的车次,但若其他同城车站有更优方案(如时间更短、有票),也应作为补充选项提供。 请避免机械地仅通过字符串匹配过滤车次,以免遗漏用户可能感兴趣的出行方案。
search-stations智能车站搜索。支持中文名、拼音、简拼、三字码(Code)。可用于模糊搜索(如'北京'),也可用于精确获取车站代码(如输入'BJP'返回北京站信息)。
query-transfer官方中转换乘方案查询。输入出发站、到达站、日期,可选中转站/无座/学生票,自动分页抓取全部中转方案,输出每段车次、时刻、余票、等候时间、总历时等详细信息。
get-train-route-stations列车经停站全表查询。支持输入车次号或官方编号,自动转换,返回所有经停站、到发时刻、停留时间。支持三字码/全名。
get-train-no-by-train-code车次号转官方唯一编号(train_no),支持三字码/全名。常用于经停站查询前置转换。
get-current-time获取当前日期和时间信息,支持相对日期计算。返回当前日期、时间,以及常用的相对日期(明天、后天等),方便用户在查询火车票时选择正确的日期。
Automated result for the commit shown. See our scan policy. View the scan log
Maintainers can claim the listing to rescan, or dispute a result.
MCP Server 12306 alternatives
View more →Similar mcp servers in Other, ranked by GitHub stars. Compare licence, recent activity and scan status before you choose.
| Name | Stars | Licence | Last updated | Scan |
|---|---|---|---|---|
| MCP Server 12306 (this page) drfccv | 416 | MIT | Sep 30, 2026 | Scanned, no flagged issues |
| Github MCP Server github | 34k | MIT | Oct 30, 2026 | Scanned, no flagged issues |
| Fastapi MCP tadata-org | 12k | MIT | Nov 24, 2025 | Scanned, no flagged issues |
| GhidraMCP LaurieWired | 12k | Apache-2.0 | Oct 10, 2026 | Scanned, no flagged issues |
| MCP Go mark3labs | 9.2k | MIT | Oct 30, 2026 | Scanned, no flagged issues |
| Git MCP idosal | 8.5k | Apache-2.0 | May 8, 2026 | Scanned, no flagged issues |