跳到正文
FunCoding

12306-mcp

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

Star
2,484
许可证
MIT
最近提交
2026年7月31日

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

请我喝杯奶茶吧。

同类 MCP Server

精选

Douyin_TikTok_Download_API

下载无水印视频,采集帖子、作者、评论,自托管无需注册。

EVEvil0ctal/Douyin_TikTok_Download_API22k近 7 天新增 124 个 star

精选

xiaohongshu-mcp

登录小红书账号,发布图文和视频笔记。

XPxpzouying/xiaohongshu-mcp17k近 7 天新增 105 个 star

精选

wenyan-mcp

把 Markdown 文章排版后发布到微信公众号。

CAcaol64/wenyan-mcp1.4k近 7 天新增 4 个 star

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.4k近 7 天新增 11 个 star

CloudBase

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

TETencentCloudBase/CloudBase-AI-Toolkit1.2k近 7 天新增 3 个 star

RedNote-MCP

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

IFiFurySt/RedNote-MCP1.1k