@Jolyne_AI: 有位开发者给 12306 做了个购票查询 MCP 服务器:12306-mcp。 它提供简洁的 API,让 AI 助手也能直接查询 12306 车票信息。 GitHub:https://github.com/Joooook/12306-mc…
摘要
一位开发者创建了基于 MCP 的 12306 购票查询服务器,提供简洁 API 让 AI 助手直接查询车票信息,支持车票查询、过站查询和中转查询等功能。
查看缓存全文
缓存时间: 2026/07/01 16:13
有位开发者给 12306 做了个购票查询 MCP 服务器:12306-mcp。 它提供简洁的 API,让 AI 助手也能直接查询 12306 车票信息。 GitHub:https://github.com/Joooook/12306-mcp… 目前已支持车票查询、列车信息过滤、过站查询和中转查询等能力。 更让人期待的是:借助 MCP,或许从路线规划、买票到订酒店,整套出行流程都能交给 AI 一站式搞定。
Joooook/12306-mcp
Source: https://github.com/Joooook/12306-mcp
12306-mcp
A 12306 ticket search server based on the Model Context Protocol (MCP). The server provides a simple API interface that allows users to search for 12306 tickets.
基于 Model Context Protocol (MCP) 的12306购票搜索服务器。提供了简单的API接口,允许大模型利用接口搜索12306购票信息。
🚩Features
| 功能描述 | 状态 |
|---|---|
| 查询12306购票信息 | ✅ 已完成 |
| 过滤列车信息 | ✅ 已完成 |
| 过站查询 | ✅ 已完成 |
| 中转查询 | ✅ 已完成 |
| 其余接口,欢迎提feature | 🚧 计划内 |
⚙️Installation
git clone https://github.com/Joooook/12306-mcp.git
npm i
▶️Quick Start
CLI-stdio
npx -y 12306-mcp
CLI-http
npx -y 12306-mcp --port [端口号]
MCP sever configuration
{
"mcpServers": {
"12306-mcp": {
"command": "npx",
"args": [
"-y",
"12306-mcp"
]
}
}
}
Docker-stdio
docker build . -t 12306-mcp
docker run --rm -it 12306-mcp npx 12306-mcp
Docker-http
docker build . -t 12306-mcp
docker run -p [your_port]:8080 -d 12306-mcp npx 12306-mcp --port 8080
📚Documentation
👉️Reference
💭Murmurs
本项目仅用于学习,欢迎催更。
🎫Badges
☕️Donate
请我喝杯奶茶吧。
相似文章
MCP-Billing
MCP-Billing 是一款将 OAuth 2.1 与基于用量的 Stripe 计费整合到 MCP 服务器中的工具,简化 AI 模型端点的变现。
@op7418: Twitter 终于有 MCP 了,这个非常有用! 如果你像我一样依赖 Twitter 信息的话,就可以让 AI 帮你自动整理、总结和对你的数据进行分析 不过依然需要你注册 Twitter 的 API,然后按量付费。 我今天早上配置了一下…
Twitter 终于有了 MCP 接口,允许 AI 自动整理、总结和分析用户数据。需要注册 Twitter API 并按量付费,但针对个人信息有较低费用(0.01 美元一次)。文章详细介绍了配置步骤。
CrawlForge MCP
CrawlForge MCP 是一个开源 MCP 服务器,为 AI 代理提供 31 种网页工具,支持抓取、搜索、爬取、结构化数据提取和隐身浏览,可通过一条 npx 命令集成到 Claude Desktop、Claude Code 或 Cursor。
@QingQ77: 基于 DeepSeek API 的 MCP 网页搜索服务 https://github.com/chengx-coding/forever-saint-liang-websearch… 为 MCP 兼容客户端(Claude Code、Op…
基于 DeepSeek API 的 MCP 网页搜索服务,为 MCP 兼容客户端(如 Claude Code、OpenCode)提供网页搜索能力,避免依赖第三方搜索服务,仅需一个 DeepSeek API Key 即可使用。
@trendtech33566:想在日常使用的 AI 中接入 Jira 或 Confluence 的人看过来,atlassian-mcp-server,约 1.1k stars。Atlassian 官方……
Atlassian 正式发布开源的 atlassian-mcp-server(约 1.1k stars),作为云端托管的 Model Context Protocol 服务器,让 Claude、Cursor 等 AI 工具安全地实时访问 Jira、Confluence、Bitbucket 等产品,支持 OAuth 2.1 或 API token 认证,免去手动复制粘贴内部信息的繁琐。

