@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…

X AI KOLs Timeline Tools

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.

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-mcp… It currently supports ticket search, train information filtering, stopover query, and transfer query. What's more exciting: with MCP, perhaps the entire travel process—from route planning, ticket purchase to hotel booking—can be handled by AI in one go.
Original Article
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

Joooook Bilibili

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 DescriptionStatus
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

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…

X AI KOLs Timeline

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.

API to MCP

Product Hunt

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 →...

X AI KOLs Timeline

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.