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

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 query
It can query train ticket information on the 12306 website, including train numbers, times, fares, etc.
Train information filtering
It can filter the displayed train information according to conditions such as seat types and train types.
Passing station query
It can query the information of passing stations of trains.
Transfer query (under development)
In the future, it will support querying transfer plans.
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 Shanghai
Query high - speed train ticket information from Beijing to Shanghai through the API
Filter and display second - class seats
Only 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.

Alternatives

A
Assistant Ui
assistant - ui is an open - source TypeScript/React library for quickly building production - grade AI chat interfaces, providing composable UI components, streaming responses, accessibility, etc., and supporting multiple AI backends and models.
TypeScript
8.9K
5 points
N
Next Devtools MCP
The Next.js development tools MCP server provides Next.js development tools and utilities for AI programming assistants such as Claude and Cursor, including runtime diagnostics, development automation, and document access functions.
TypeScript
18.4K
5 points
P
Praisonai
PraisonAI is a production-ready multi-AI agent framework with self-reflection capabilities, designed to create AI agents to automate the solution of various problems from simple tasks to complex challenges. It simplifies the construction and management of multi-agent LLM systems by integrating PraisonAI agents, AG2, and CrewAI into a low-code solution, emphasizing simplicity, customization, and effective human-machine collaboration.
Python
17.6K
5 points
B
Blueprint MCP
Blueprint MCP is a chart generation tool based on the Arcade ecosystem. It uses technologies such as Nano Banana Pro to automatically generate visual charts such as architecture diagrams and flowcharts by analyzing codebases and system architectures, helping developers understand complex systems.
Python
11.7K
4 points
K
Klavis
Klavis AI is an open-source project that provides a simple and easy-to-use MCP (Model Context Protocol) service on Slack, Discord, and Web platforms. It includes various functions such as report generation, YouTube tools, and document conversion, supporting non-technical users and developers to use AI workflows.
TypeScript
38.1K
5 points
D
Devtools Debugger MCP
The Node.js Debugger MCP server provides complete debugging capabilities based on the Chrome DevTools protocol, including breakpoint setting, stepping execution, variable inspection, and expression evaluation.
TypeScript
10.7K
4 points
M
Mcpjungle
MCPJungle is a self-hosted MCP gateway used to centrally manage and proxy multiple MCP servers, providing a unified tool access interface for AI agents.
Go
0
4.5 points
N
Nexus
Nexus is an AI tool aggregation gateway that supports connecting multiple MCP servers and LLM providers, providing tool search, execution, and model routing functions through a unified endpoint, and supporting security authentication and rate limiting.
Rust
0
4 points
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
39.8K
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
24.1K
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
28.7K
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
83.3K
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#
39.5K
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
73.4K
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
24.3K
4.5 points
C
Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
110.2K
4.7 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase