1

12306 MCP

A 12306 ticket purchase search server based on Model Context Protocol, providing API interfaces for querying ticket information.
2.5 points
58

What is 12306-mcp?

12306-mcp is a train ticket query service based on Model Context Protocol (MCP). It allows users to search for train ticket information on the 12306 website through simple API interfaces. This service is particularly suitable for integration into chatbots or other AI applications.

How to use 12306-mcp?

You can query train ticket information through simple API calls or run it as an MCP server. The service provides functions such as filtering trains and querying passing stations.

Applicable scenarios

Suitable for AI applications and chatbots that need to integrate train ticket query functions, or scenarios that require automated query of 12306 ticket information.

Main features

12306 ticket purchase information queryIt can query train ticket information on the 12306 website, including train numbers, times, fares, etc.
Train information filteringIt can filter the displayed train information according to conditions such as seat types and train types.
Passing station queryIt can query the information of passing stations of trains.
Transfer query (under development)In the future, it will support querying transfer plans.

Advantages and limitations

Advantages
Simple and easy - to - use API interfaces
Supports the MCP protocol, facilitating integration with AI applications
Provides a variety of query and filtering functions
Limitations
The transfer query function is not yet completed
Requires self - deployment of the server

How to use

Installation
Clone the repository and install dependencies
Running
Build and start the service
MCP server configuration
Add the 12306 - mcp server to your MCP configuration

Usage examples

Query high - speed train tickets from Beijing to ShanghaiQuery high - speed train ticket information from Beijing to Shanghai through the API
Filter and display second - class seatsOnly display trains with second - class seats

Frequently Asked Questions

Is this service the official 12306 service?
When will the transfer query function be available?
Do I need to deploy the server myself?

Related resources

GitHub repository
Project source code
MCP protocol
Official documentation of Model Context Protocol
TypeScript SDK
TypeScript SDK for MCP
Bilibili channel
Author's Bilibili channel
Installation
Copy the following command to your Client for configuration
Note: Your key is sensitive information, do not share it with anyone.
N
Notte Browser
Certified
Notte is an open-source full-stack network AI agent framework that provides browser sessions, automated LLM-driven agents, web page observation and operation, credential management, etc. It aims to transform the Internet into an agent-friendly environment and reduce the cognitive burden of LLMs by describing website structures in natural language.
665
4.5 points
M
MCP Server Airbnb
Certified
MCP service for Airbnb listing search and details query
TypeScript
252
4 points
B
Bing Search MCP
An MCP server for integrating Microsoft Bing Search API, supporting web page, news, and image search functions, providing network search capabilities for AI assistants.
Python
233
4 points
B
Baidu Map
Certified
Baidu Maps MCP Server is the first domestic map service compatible with the MCP protocol, offering 10 standardized API interfaces such as geocoding and route planning, supporting quick access via Python and Typescript, and enabling agents to implement map - related functions.
Python
724
4.5 points
C
Cloudflare
Changesets is a build tool for managing versions and releases in multi - package or single - package repositories.
TypeScript
1.5K
5 points
E
Eino
Eino is an LLM application development framework designed specifically for Golang, aiming to simplify the AI application development process through concise, scalable, reliable, and efficient component abstraction and orchestration capabilities. It provides a rich component library, powerful graphical orchestration functions, complete stream processing support, and a highly scalable aspect mechanism, covering the full-cycle toolchain from development to deployment.
Go
3.5K
5 points
M
Modelcontextprotocol
Certified
This project is an implementation of an MCP server integrated with the Sonar API, providing real-time web search capabilities for Claude. It includes guides on system architecture, tool configuration, Docker deployment, and multi-platform integration.
TypeScript
1.1K
5 points
S
Serena
Serena is a powerful open - source coding agent toolkit that can transform LLMs into full - fledged agents that can work directly on codebases. It provides IDE - like semantic code retrieval and editing tools, supports multiple programming languages, and can be integrated with multiple LLMs via the MCP protocol or the Agno framework.
Python
820
5 points
Featured MCP Services
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
1.7K
5 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
148
4.5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
95
4.3 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
836
4.3 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
572
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
6.7K
4.5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
286
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
760
4.8 points
AIbase
Zhiqi Future, Your AI Solution Think Tank
© 2025AIbase