Catalog npm
Back to packageRELEASE DETAILS

0.2.2

npm

12306-mcp

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

12306mcpmcp-server
Published26 Apr 2025
Direct dependencies5
Transitive dependenciesNot calculated

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.

Declared dependencies 5

Native requirements
5 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
zod
Environment
{
  "local_name": "zod",
  "alias": false,
  "peer_metadata": null
}
^3.24.2runtime
axios
Environment
{
  "local_name": "axios",
  "alias": false,
  "peer_metadata": null
}
^1.8.4runtime
@modelcontextprotocol/sdk
Environment
{
  "local_name": "@modelcontextprotocol/sdk",
  "alias": false,
  "peer_metadata": null
}
^1.9.0runtime
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^5.8.3development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^22.14.1development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "96227fd2687eb78a4a5e8c82b621a4b4972e0a7e",
  "tarball": "https://registry.npmjs.org/12306-mcp/-/12306-mcp-0.2.2.tgz",
  "fileCount": 5,
  "integrity": "sha512-TZA852J460iM9rxPwmvQMstKFsNAnmhwPdtnxqN0aStlu6bVM+4mNOhUICP+WeRSb2ZU9kzyC8ZK2kXYWoV/gQ==",
  "signatures": [
    {
      "sig": "MEQCIEjYV9fnDkIMCIrsZML2R3ywI5+KlNrWGWXWqn2h/hIvAiAYItZLMzSKoSCUfjgvzy4mUn1Qb5jlu1Kba2EJac0r+A==",
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
    }
  ],
  "unpackedSize": 25383
}

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_version:a1cedd9b56e23dcedc8b58d864d716ad29fed5bd767deceebd94d0ca64d64000

Other collected versions

0.3.1030 Jul0.3.929 Jun0.3.88 Mar0.3.710 Oct0.3.67 Oct0.3.522 AugView all collected versions →