Catalog npm
Back to packageRELEASE DETAILS

0.3.6

npm

12306-mcp

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

12306mcpmcp-server
Published7 Oct 2025
Direct dependencies11
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 11

Native requirements
11 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
date-fns
Environment
{
  "local_name": "date-fns",
  "alias": false,
  "peer_metadata": null
}
^4.1.0runtime
commander
Environment
{
  "local_name": "commander",
  "alias": false,
  "peer_metadata": null
}
^14.0.0runtime
date-fns-tz
Environment
{
  "local_name": "date-fns-tz",
  "alias": false,
  "peer_metadata": null
}
^3.2.0runtime
mcp-http-server
Environment
{
  "local_name": "mcp-http-server",
  "alias": false,
  "peer_metadata": null
}
^1.1.5runtime
@modelcontextprotocol/sdk
Environment
{
  "local_name": "@modelcontextprotocol/sdk",
  "alias": false,
  "peer_metadata": null
}
^1.9.0runtime
@modelcontextprotocol/inspector
Environment
{
  "local_name": "@modelcontextprotocol/inspector",
  "alias": false,
  "peer_metadata": null
}
^0.16.5runtime
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
run-script-os
Environment
{
  "local_name": "run-script-os",
  "alias": false,
  "peer_metadata": null
}
^1.1.6development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "1e5e41a90b080332e70053e69beffbfadb7a047d",
  "tarball": "https://registry.npmjs.org/12306-mcp/-/12306-mcp-0.3.6.tgz",
  "fileCount": 5,
  "integrity": "sha512-FFvSjVDo2aGyR/aVXcs8uCsb1qAEY1JI7h1HItGQ9aoXcaOnVPsJX1qBXOe+lBJRICAavWnpXtTFcMJjr/g+Dw==",
  "signatures": [
    {
      "sig": "MEYCIQCU40zg9/b9xKe6rStNv1Mr+ZqE5CASMxJocOAU+06PcAIhAP0REzV0vCmSPMvPj3T0BiqZYJO25+PAla+FFO9D4Vhl",
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
    }
  ],
  "unpackedSize": 52454
}

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:fc072016a4c8b8863369fadc4db9330db0f4996fe97aff37e1b29ace3afdd306

Other collected versions

0.3.1030 Jul0.3.929 Jun0.3.88 Mar0.3.710 Oct0.3.522 Aug0.3.410 JulView all collected versions →