Price Per TokenPrice Per Token

12306 MCP Server

by Joooook

0

About

12306 MCP Server connects AI assistants to China's official railway ticketing platform, enabling real-time train ticket searches and schedule queries. Key features of 12306 MCP Server: - Search for available trains between stations on specific dates - Filter results by train type, departure time, and seat class - Query ticket prices, availability, and remaining inventory in real-time - Support for through-stop and transfer/transit route planning for complex journeys - Direct integration with 12306.cn, China's national railway booking system

README

12306-mcp

[](https://github.com/Joooook) [](https://space.bilibili.com/3546386788255839)

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

| 功能描述 | 状态 | |------------------------------|--------| | 查询12306购票信息 | ✅ 已完成 | | 过滤列车信息 | ✅ 已完成 | | 过站查询 | ✅ 已完成 | | 中转查询 | ✅ 已完成 | | 其余接口,欢迎提feature | 🚧 计划内 |

⚙️Installation

~~~bash git clone https://github.com/Joooook/12306-mcp.git npm i ~~~

▶️Quick Start

CLI-stdio

~~~bash npx -y 12306-mcp ~~~

CLI-http

~~~bash npx -y 12306-mcp --port [端口号] ~~~

MCP sever configuration

~~~json { "mcpServers": { "12306-mcp": { "command": "npx", "args": [ "-y", "12306-mcp" ] } } }

~~~

Docker-stdio

~~~bash docker build . -t 12306-mcp docker run --rm -it 12306-mcp npx 12306-mcp ~~~

Docker-http

~~~bash docker build . -t 12306-mcp docker run -p [your_port]:8080 -d 12306-mcp npx 12306-mcp --port 8080 ~~~

📚Documentation

  • 服务原理详解 12306-MCP服务的工作原理
  • 架构图 12306-MCP服务的架构图
  • 👉️Reference

  • modelcontextprotocol/modelcontextprotocol
  • modelcontextprotocol/typescript-sdk
  • 💭Murmurs

    本项目仅用于学习,欢迎催更。

    🎫Badges

    [](https://mseep.ai/app/joooook-12306-mcp)

    ☕️Donate

    请我喝杯奶茶吧。

    Related MCP Servers

    AI Research Assistant

    AI Research Assistant

    hamid-vakilzadeh

    AI Research Assistant provides comprehensive access to millions of academic papers through the Semantic Scholar and arXiv databases. This MCP server enables AI coding assistants to perform intelligent literature searches, citation network analysis, and paper content extraction without requiring an API key. Key features include: - Advanced paper search with multi-filter support by year ranges, citation thresholds, field of study, and publication type - Title matching with confidence scoring for finding specific papers - Batch operations supporting up to 500 papers per request - Citation analysis and network exploration for understanding research relationships - Full-text PDF extraction from arXiv and Wiley open-access content (Wiley TDM token required for institutional access) - Rate limits of 100 requests per 5 minutes with options to request higher limits through Semantic Scholar

    Web & Search
    12 8
    Linkup

    Linkup

    LinkupPlatform

    Linkup is a real-time web search and content extraction service that enables AI assistants to search the web and retrieve information from trusted sources. It provides source-backed answers with citations, making it ideal for fact-checking, news gathering, and research tasks. Key features of Linkup: - Real-time web search using natural language queries to find current information, news, and data - Page fetching to extract and read content from any webpage URL - Search depth modes: Standard for direct-answer queries and Deep for complex research across multiple sources - Source-backed results with citations and context from relevant, trustworthy websites - JavaScript rendering support for accessing dynamic content on JavaScript-heavy pages

    Web & Search
    2 24
    Math-MCP

    Math-MCP

    EthanHenrickson

    Math-MCP is a computation server that enables Large Language Models (LLMs) to perform accurate numerical calculations through the Model Context Protocol. It provides precise mathematical operations via a simple API to overcome LLM limitations in arithmetic and statistical reasoning. Key features of Math-MCP: - Basic arithmetic operations: addition, subtraction, multiplication, division, modulo, and bulk summation - Statistical analysis functions: mean, median, mode, minimum, and maximum calculations - Rounding utilities: floor, ceiling, and nearest integer rounding - Trigonometric functions: sine, cosine, tangent, and their inverses with degrees and radians conversion support

    Developer Tools
    22 81