Catalog npm
PACKAGE EXPLORERView in registry

12306-mcp

npm

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

12306mcpmcp-server
Versions collected18
Direct dependencies11From release 0.3.10
Last observed20 Oct, 18:08 UTC

README

Current package documentation

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 [端口号]

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

☕️Donate

请我喝杯奶茶吧。

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 18

Collected releases
VersionPublishedDirect dependenciesOpen version
0.3.10Registry latest30 Jul 202611
0.3.929 Jun 202611
0.3.88 Mar 202611
0.3.710 Oct 202511
0.3.67 Oct 202511
0.3.522 Aug 202511
0.3.410 Jul 202510
0.3.31 Jul 202510
0.3.230 May 20257
0.3.119 May 20257
0.3.018 May 20257
0.2.514 May 20255
0.2.47 May 20255
0.2.326 Apr 20255
0.2.226 Apr 20255
0.2.117 Apr 20255
0.2.015 Apr 20255
0.1.015 Apr 20255

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:08 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:63ca4654944b1ce829c0f1cb833cfe47790246244ac59ed94ff88881f36b84b8