Back to MCP directory
publicPublicdnsLocal runtime

12306-mcp

基于Model Context Protocol的12306购票搜索服务器,提供API接口供查询车票信息。

article

README

🚀 12306-mcp

12306-mcp 是一个基于模型上下文协议(MCP)的12306购票搜索服务器。它提供了简单的API接口,方便用户搜索12306的车票信息。

🚀 快速开始

你可以按照以下步骤快速启动 12306-mcp 服务:

安装

git clone https://github.com/Joooook/12306-mcp.git
npm i

启动服务

CLI 方式

npm run build
node ./build/index.js

MCP 服务配置

{
    "mcpServers": {
        "12306-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "12306-mcp"
            ]
        }
    }
}

✨ 主要特性

| 功能描述 | 状态 | | ---- | ---- | | 查询12306购票信息 | ✅ 已完成 | | 过滤列车信息 | ✅ 已完成 | | 过站查询 | ✅ 已完成 | | 中转查询 | 🚧 计划中 | | 其余接口,欢迎提feature | 🚧 计划中 |

📚 详细文档

参考链接

模型上下文协议(MCP)官方文档

📄 许可证

本项目的许可证信息可通过 GitHub license 查看。

鸣谢与捐赠

如果你想对本项目进行捐赠,可以点击 PayPal 捐赠链接 进行支持。

项目状态与作者信息

  • GitHub stars
  • GitHub last commit
  • GitHub
  • Bilibili
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client