1
About
A 12306 ticket search server that allows AI assistants to search for China Railway train tickets. The server provides APIs to query train schedules, filter train information, check intermediate stations, and find transfer routes.
Features
- ✅ Query 12306 train ticket information
- ✅ Filter train information by various criteria
- ✅ Check intermediate station information
- ✅ Find transfer routes between stations
Usage
The server can be run in two modes:
stdio mode (default): For direct integration with MCP clients
npx -y 12306-mcp
HTTP mode: For remote access
npx -y 12306-mcp --port [port_number]
Docker Support
The server can also be run via Docker:
stdio mode:
docker build . -t 12306-mcp
docker run --rm -it 12306-mcp npx 12306-mcp
HTTP mode:
docker build . -t 12306-mcp
docker run -p [your_port]:8080 -d 12306-mcp npx 12306-mcp --port 8080
This server runs through your single 1Server connection. No extra config required.
0Installs
891Stars
Categories
SearchAPIProductivity