What is 12306 Mcp?
12306 Mcp is a ticket search server for the Chinese railway system (12306) built on the Model Context Protocol (MCP). It provides a simple API interface that allows large language models to search for 12306 ticket information. The project is intended for developers integrating train ticket lookup into AI applications and is described as for learning purposes.
How to use 12306 Mcp?
Clone the repository and run npm i. Use npx -y 12306-mcp to start with stdio transport, or npx -y 12306-mcp --port [port] for HTTP transport. Docker images can be built and run with similar commands. The MCP server configuration for clients requires setting the command and args as shown in the README.
Key features of 12306 Mcp
- Query 12306 ticket information
- Filter train information
- Pass-through station query
- Transfer (connecting) query
Use cases of 12306 Mcp
- Search for available trains between two stations
- Filter trains by criteria
- Find trains that pass through a specific intermediate station
- Plan journeys involving train transfers
コメント