1. Conduid
  2. AI
  3. 12306 MCP
MCP server · AI

12306 MCP

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

Unclaimed MIT ai
81Excellent

Scored 7 days ago · breakdown

About 12306 MCP

12306 MCP is an MCP server published by Joooook in the AI category: this is a 12306 ticket search server based on the Model Context Protocol (MCP).

The repository has 2.4K stars and 342 forks, with the last commit 2 months ago. Recent commit activity is the strongest signal that reported issues will get attention.

Install

From source
git clone https://github.com/Joooook/12306-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about 12306 MCP

Powered by Claude · Grounded in docs

I know everything about 12306 MCP. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 17 hours ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v0.3.10v0.3.10 · 30 Jul 2026采用动态获取`get-tickets`查询URL 更新依赖版本
v0.3.9v0.3.9 · 29 Jun 2026修复`getLCQueryPath`中获取页面内容错误的问题。 安全性修复,删除`eval`用作字符串解析。
v0.3.8v0.3.8 · 8 Mar 2026优化`get-tickets`和`get-interline-tickets`的车站参数处理,支持直接使用中文站点名查询。 修复`get-station-code-by-names`中`substring`截取逻辑错误
v0.3.7v0.3.7 · 10 Oct 2025为`get-tickets`、`get-interline-tickets`、`get-train-route-stations`增加json格式输出。 目前仅`get-tickets`提供CSV格式输出。
v0.3.6v0.3.6 · 7 Oct 2025优化`get-train-route-stations`接口,现在仅通过车次和日期即可查询列车途径站信息。

README

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

MseeP.ai Security Assessment Badge

☕️Donate

请我喝杯奶茶吧。

README fetched from the repository 17 hours ago. The original is authoritative.

Questions

About 12306 MCP

How do I install 12306 MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is 12306 MCP safe to use with an AI agent?

Its trust score is 81 out of 100 (excellent). It passes 4 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is 12306 MCP still maintained?

Yes — the latest release is v0.3.10 (30 Jul 2026), and the last commit was 2 months ago. The repository has 2.4K stars and 11 open issues.