12306

Developer tools

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

Your AI app calls the 12306 MCP server, which does the developer tools work and sends the result back to the chat.

About 12306

12306 is a community MCP server from Joooook, filed in our directory under developer tools. This is a 12306 ticket search server based on the Model Context Protocol (MCP).

At a glance

Publisher
Joooook (community)
Runs
See the README for setup
Written in
JavaScript
License
MIT
GitHub stars
2,485

How to set up 12306

  1. Follow the install steps in the 12306 README; it is written in JavaScript, so have that toolchain ready.
  2. Check the 12306 README for keys or settings; the registry lists none that 12306 requires.
  3. Add 12306 to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the 12306 tools to confirm the connection.
  5. Run one read-only task with 12306 first, and keep your app asking before each tool call until the results look right.

12306 compared with similar servers

  • Mcp2cli by knowsuchagency has fewer GitHub stars than 12306 (2.4k against 2.5k); both are community servers, and both run locally.
  • Motion Skills by iart-ai has more GitHub stars than 12306 (2.5k against 2.5k); both are community servers, and both run locally.
  • boss-agent-cli by can4hou6joeng4 has fewer GitHub stars than 12306 (2.3k against 2.5k); both are community servers, and both run locally.

Before you connect 12306

  • Give 12306 its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each 12306 tool call until you trust what it does with them.
  • Treat text that 12306 fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for 12306 on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for 12306

How marketing and sales teams put 12306 to work, by company size. Pick the size closest to yours and start 12306 on one use case.

Small business

  • A small business with a developer can use 12306 to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask 12306 to explain and fix a marketing site issue without context switching between tools.
  • 12306 runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use 12306 to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect 12306 to keep scripts and automations documented and versioned as they change.
  • Start 12306 on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise engineering teams can roll out 12306 with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on 12306 so web and marketing engineering share one reviewed way of working with AI.
  • 12306 is a community server, so have security review the code and pin a version before 12306 touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

12306 README

From Joooook/12306-mcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

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

☕️Donate

请我喝杯奶茶吧。

Questions about 12306

What is the 12306 MCP server?

This is a 12306 ticket search server based on the Model Context Protocol (MCP). 12306 is maintained by Joooook on GitHub at Joooook/12306-mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the 12306 MCP server?

12306 doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (Joooook/12306-mcp). Like most servers, 12306 ends with a command or URL you paste into your AI app's MCP config.

Does 12306 need an API key?

The registry lists no required keys for 12306. Check the 12306 README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is 12306 an official MCP server?

No. 12306 is a community server maintained by Joooook. Community servers can be excellent; read the code and the open issues before you give 12306 access to company data.

What license is 12306 under?

12306 is released under the MIT license, according to its GitHub repository. The license covers the code of 12306; the service it connects to has its own terms.