@Jolyne_AI: A developer built a ticket query MCP server for 12306: 12306-mcp. It provides a clean API so AI assistants can directly query 12306 ticket information. GitHub: https://github.com/Joooook/12306-mc…
Summary
A developer created a 12306 ticket query MCP server based on MCP, offering a simple API for AI assistants to directly query ticket information, supporting functions such as ticket search, stopover query, and transfer query.
View Cached Full Text
Cached at: 07/01/26, 04:13 PM
A developer created a 12306 ticket query MCP server: 12306-mcp. It provides a simple API that allows AI assistants to directly query 12306 ticket information.
GitHub: https://github.com/Joooook/12306-mcp
Currently supports ticket query, train information filtering, station passing query, and transfer query.
What’s more exciting: with MCP, the entire travel process — from route planning, ticket purchase, to hotel booking — could be handled by AI in one go.
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
| Feature Description | Status |
|---|---|
| Query 12306 ticket information | ✅ Completed |
| Filter train information | ✅ Completed |
| Station passing query | ✅ Completed |
| Transfer query | ✅ Completed |
| Other endpoints — welcome to submit feature requests | 🚧 Planned |
⚙️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 [port]
MCP server 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
- Service Principle Details — How the 12306-MCP service works
- Architecture Diagram — Architecture diagram of the 12306-MCP service
12306-MCP Service Architecture Diagram
👉Reference
💭Murmurs
This project is for learning purposes only. Feel free to request updates.
🎫Badges
MseeP.ai Security Assessment Badge
https://mseep.ai/app/joooook-12306-mcp
☕Donate
Buy me a milk tea.
Similar Articles
@op7418: Twitter finally has MCP, this is very useful! If you rely on Twitter information like I do, you can have AI automatically organize, summarize, and analyze your data. However, you still need to register for Twitter API and pay as you go. I configured it this morning…
Twitter finally has an MCP interface, allowing AI to automatically organize, summarize, and analyze user data. Requires registering for Twitter API and paying per use, but personal information has a lower cost ($0.01 per call). The article details the configuration steps.
@QingQ77: MCP web search service based on DeepSeek API https://github.com/chengx-coding/forever-saint-liang-websearch... Provides web search capabilities for MCP-compatible clients (Claude Code, Op...
MCP web search service based on DeepSeek API, providing web search capabilities for MCP-compatible clients (such as Claude Code, OpenCode), avoiding reliance on third-party search services. Only one DeepSeek API Key is needed to use it.
@nuannuan_share: Someone built a self-hosted AI app that automatically processes all receipts and invoices. Upload a photo, it extracts products, taxes, dates, auto-converts currencies, and keeps your financial data 100% private. 100% open source. Link:
TaxHacker is a self-hosted AI accounting app that automatically extracts data from receipts and invoices, supports multi-currency conversion, and ensures data privacy.
API to MCP
API to MCP lets you turn any API into an MCP server for AI agents, enabling seamless integration.
@BTCqzy1: After Claude integrates real financial data, it really takes stock research to a new level~ Now through MCP, it directly calls real-time stock prices and other data, and every judgment given has data support. I have organized a set of Prompts I use in my daily trading: from pre-market scan → entry confirmation → position management →...
User shares a set of Prompts for stock trading after connecting Claude to real financial data (real-time stock prices, etc.) via the MCP protocol, covering pre-market scan, entry confirmation, position management, and other stages, demonstrating practical cases of AI-assisted investment decisions.