Skip to content
FunCoding

12306-mcp

This is a 12306 ticket search server based on the Model Context Protocol (MCP).

Star
2,484
License
MIT
Last commit
Jul 31, 2026

12306-mcp

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购票信息。

如需Skill -> https://github.com/Joooook/12306-skill

🚩Features

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

⚙️Installation

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

▶️Quick Start

CLI-stdio

npx -y 12306-mcp

CLI-http

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

Runtime requirements

The server requires Node.js 18 or newer. The npm run debug command uses MCP Inspector 2.0.0, which requires Node.js 22.19.0 or newer.

MCP sever configuration

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

Docker-stdio

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

Docker-http

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

📚Documentation

👉️Reference

💭Murmurs

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

🎫Badges

请我喝杯奶茶吧。

Similar MCP servers

Featured

Douyin_TikTok_Download_API

Download watermark-free videos, fetch posts, authors, comments. Self-hosted, no signup or quota.

EVEvil0ctal/Douyin_TikTok_Download_API22k124 new stars in the last 7 days

Featured

xiaohongshu-mcp

Sign in to Xiaohongshu and publish image or video posts.

XPxpzouying/xiaohongshu-mcp17k105 new stars in the last 7 days

Featured

wenyan-mcp

Format Markdown articles and publish them to WeChat Official Accounts.

CAcaol64/wenyan-mcp1.4k4 new stars in the last 7 days

chubbyskills

把中文全渠道内容(抖音 / B站 / 小红书 / 公众号 / X / 播客)采集进个人知识库的 14 个 AI Skill:图文存图、视频转文字稿、字幕优先免 GPU、RSS/YouTube 订阅调度与每日情报简报,附带知识库 MCP server。| Ingest Chinese content into your personal knowledge base — image/video routing, subtitle-first transcription, feed subscriptions with daily digests, and a KB MCP server.

CHchubbyguan/chubbyskills1.4k11 new stars in the last 7 days

CloudBase

CloudBase MCP: DB, functions, storage, hosting via @cloudbase/cloudbase-mcp

TETencentCloudBase/CloudBase-AI-Toolkit1.2k3 new stars in the last 7 days

RedNote-MCP

🚀MCP server for accessing RedNote(XiaoHongShu, xhs).

IFiFurySt/RedNote-MCP1.1k