con un clic
mcp-12306
12306 火车票查询、余票查询、车次查询工具。基于MCP协议的官方火车票查询服务,支持实时票价、余票、车次时刻等信息查询。
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
12306 火车票查询、余票查询、车次查询工具。基于MCP协议的官方火车票查询服务,支持实时票价、余票、车次时刻等信息查询。
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Word文档处理:创建、编辑、读取.docx文件。用户提到"Word"、"文档"、".docx"、"报告"、"信函"时使用。
使用腾讯云 API 密钥调用腾讯云各种服务,包括翻译、CVM、COS等。
图片识别与图文理解,基于 PaddleOCR-VL 模型,支持识别图片中的文字、场景、物体等信息。支持109种语言,可输出JSON或Markdown格式。
You MUST use this for gathering contexts before any work. This is a Knowledge management for AI agents. Use `brv` to store and retrieve project patterns, decisions, and architectural rules in .brv/context-tree. Uses a configured LLM provider (default: ByteRover, no API key needed) for query and curate operations.
Typed knowledge graph for structured agent memory and composable skills. Use when creating/querying entities (Person, Project, Task, Event, Document), linking related objects, enforcing constraints, planning multi-step actions as graph transformations, or when skills need to share state. Trigger on "remember", "what do I know about", "link X to Y", "show dependencies", entity CRUD, or cross-skill data access.
Transform AI agents from task-followers into proactive partners that anticipate needs and continuously improve. Now with WAL Protocol, Working Buffer, Autonomous Crons, and battle-tested patterns. Part of the Hal Stack 🦞
| name | MCP 12306 火车票 |
| description | 12306 火车票查询、余票查询、车次查询工具。基于MCP协议的官方火车票查询服务,支持实时票价、余票、车次时刻等信息查询。 |
| triggers | ["火车票","查询火车","12306","购票","余票","车次","高铁"] |
| mcp | {"command":"uvx","args":["mcp-server-12306"]} |
12306 MCP Server 提供中国铁路12306官方网站的火车票查询功能:
功能描述:查询指定日期两站之间的所有车次
参数说明:
| 参数 | 类型 | 必需 | 说明 |
|---|---|---|---|
| from_station | string | ✅ | 出发站(站名或电报码) |
| to_station | string | ✅ | 到达站(站名或电报码) |
| date | string | ✅ | 出发日期(YYYY-MM-DD) |
| purpose_codes | string | ❌ | 票种:ADULT(成人)/ STUDENT(学生) |
使用示例:
{
"from_station": "北京",
"to_station": "上海",
"date": "2026-03-10",
"purpose_codes": "ADULT"
}
功能描述:查询指定车次的余票情况
参数说明:
| 参数 | 类型 | 必需 | 说明 |
|---|---|---|---|
| train_no | string | ✅ | 车次号 |
| from_station | string | ✅ | 出发站 |
| to_station | string | ✅ | 到达站 |
| date | string | ✅ | 出发日期 |
返回字段:
功能描述:获取站点名称对应的电报码
参数:
station_name: 站点名称用途:车次查询需要使用站点电报码
{
"mcpServers": {
"12306-mcp": {
"command": "npx",
"args": ["-y", "12306-mcp"]
}
}
}
npx -y 12306-mcp --port 3000
{
"mcpServers": {
"12306-mcp": {
"url": "http://localhost:3000/mcp"
}
}
}
docker run -i --rm 12306-mcp
用户:帮我查一下明天从北京到上海的高铁
助手:[调用 search_trains 工具查询车次列表]
用户:G1次列车还有票吗?
助手:[调用 query_ticket 查询余票情况]
用户:帮我查学生票
助手:[设置 purpose_codes=STUDENT 查询]
| 代码 | 名称 | 说明 |
|---|---|---|
| SWZ | 商务座 | 最高级别座位 |
| ZY | 一等座 | - |
| ZE | 二等座 | 常见座位 |
| GR | 高级软卧 | 卧铺 |
| RW | 软卧 | 卧铺 |
| YW | 硬卧 | 卧铺 |
| RZ | 软座 | - |
| YZ | 硬座 | 最经济 |
# 查询站点代码
station_code = get_station_code("北京西") # 返回: BXP
# 使用站点代码查询车次
trains = search_trains(
from_station="BXP",
to_station="SHH",
date="2026-03-10"
)
⚠️ 重要提示:
A: 可能原因:
A: 使用 get_station_code 工具查询:
A: 可能原因:
更新时间: 2026-03-08 版本: 1.0