12306 MCP
This is a 12306 ticket search server based on the Model Context Protocol (MCP).
12306 MCP is an open-source mcp server by Joooook, written mainly in JavaScript, with 2,421 GitHub stars and the MIT license. Its code was last updated Jul 31, 2026. The latest npm release is 12306-mcp 0.3.10, published Jul 30, 2026, with 13,250 downloads last week.
Scan summary: scanned Nov 5, 2026 at commit ff6439d. Seen able to connect to the internet. Scan policy
How to install 12306 MCP
Built from the start command in the project's README: npx -y 12306-mcp. Check the README for required keys or settings.
claude mcp add 12306-mcp -- npx -y 12306-mcp{
"mcpServers": {
"12306-mcp": {
"command": "npx",
"args": [
"-y",
"12306-mcp"
]
}
}
}{
"mcpServers": {
"12306-mcp": {
"command": "npx",
"args": [
"-y",
"12306-mcp"
]
}
}
}code --add-mcp '{"name":"12306-mcp","command":"npx","args":["-y","12306-mcp"]}'What 12306 MCP can touch
- Our checks did not find this. The tool may still do it.Run shell commandsNot seen in this scan
- Our checks did not find this. The tool may still do it.Run dynamic codeNot seen in this scan
- Our checks did not find this. The tool may still do it.Read or write filesNot seen in this scan
- Our checks did not find this. The tool may still do it.Read environment and secretsNot seen in this scan
- Our checks did not find this. The tool may still do it.Control a web browserNot seen in this scan
- Our checks did not find this. The tool may still do it.Connect to databasesNot seen in this scan
- Our checks did not find this. The tool may still do it.Read or send messagesNot seen in this scan
- Our checks did not find this. The tool may still do it.Touch money or tradingNot seen in this scan
- Seen in this scan, either in the code or while it ran.Connect to the internetContacted kyfw.12306.cn, www.12306.cn
"Not seen" means our checks did not find it, and the tool may still do it. Covers commit ff6439d, Nov 5, 2026. See the scan policy.
Before you install 12306 MCP
AgenticMart scanned 12306 MCP on Nov 5, 2026 with automated checks for hidden code, known-malicious packages, leaked secrets and vulnerable dependencies. The result covers one commit under our scan policy, so review what access you give it and check any advisories shown here.
What it can access
- An MCP server is a program your AI app starts and talks to. A local one runs with your user's permissions: it can see the files, environment variables and network your account can.
Before you install
- Pin the version you reviewed instead of always installing the latest release.
- Read the tool list or scripts before the first run, and keep approval prompts on for actions that write, send or delete.
- Maintained by Joooook on GitHub, 2,421 stars and 336 forks. Popularity is not proof of safety.
- Last code change: Jul 31, 2026.
- Open-source license: MIT.
Tools 12306 MCP exposes (8)
Listed by the server itself during our scan of commit ff6439d.
get-current-date获取当前日期,以上海时区(Asia/Shanghai, UTC+8)为准,返回格式为 "yyyy-MM-dd"。主要用于解析用户提到的相对日期(如“明天”、“下周三”),提供准确的日期输入。
get-stations-code-in-city通过中文城市名查询该城市 **所有** 火车站的名称及其对应的 `station_code`,结果是一个包含多个车站信息的列表。
get-station-code-of-citys通过中文城市名查询代表该城市的 `station_code`。
get-station-code-by-names通过具体的中文车站名查询其 `station_code` 和车站名。
get-station-by-telecode通过车站的 `station_telecode` 查询车站的详细信息,包括名称、拼音、所属城市等。此接口主要用于在已知 `telecode` 的情况下获取更完整的车站数据,或用于特殊查询及调试目的。一般用户对话流程中较少直接触发。
get-tickets查询12306余票信息。
get-interline-tickets查询12306中转余票信息。尚且只支持查询前十条。
get-train-route-stations查询特定列车车次在指定区间内的途径车站、到站时间、出发时间及停留时间等详细经停信息。当用户询问某趟具体列车的经停站时使用此接口。
Hosts it contacted while running
12306 MCP is an open-source mcp server by Joooook, written mainly in JavaScript. This is a 12306 ticket search server based on the Model Context Protocol (MCP).
At a glance
- Stars
- 2.4k
- Forks
- 336
- Language
- JavaScript
- License
- MIT
- Created
- Apr 2025
- Last update
- Jul 31, 2026
- Type
- MCP Server
- Price
- Free
Topics
Questions about 12306 MCP
What is 12306 MCP?
This is a 12306 ticket search server based on the Model Context Protocol (MCP).
Who maintains 12306 MCP?
12306 MCP is maintained by Joooook on GitHub (Joooook/12306-mcp). AgenticMart lists it from public repository data.
Is 12306 MCP safe to use?
AgenticMart scanned 12306 MCP on Nov 5, 2026 with automated checks for hidden code, known-malicious packages, leaked secrets and vulnerable dependencies. The result covers one commit under our scan policy, so review what access you give it and check any advisories shown here.
What license does 12306 MCP use?
It is published under the MIT license.
12306 MCP 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 |
|---|---|---|---|---|
| 12306 MCP (this page) Joooook | 2.4k | MIT | Jul 31, 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 |