12306-mcp

Level ACN-accessibleLocal

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

Overview

12306-mcp is a Model Context Protocol (MCP) server for searching 12306 train tickets. It exposes a simple API that lets large language models query 12306 ticket information, with support for ticket search, filtering train results, stop-over queries, and transfer queries.

⭐ 2.5kCN-AccessibleJavaScriptRepo ↗Updated 2026-07-31

Installation

MCP client config (paste into mcp.json)

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

Agent install prompt

Copy and paste into Cursor / Claude / other agents to install this MCP for you

Please read this MCP repository and install it into my current environment:
https://github.com/Joooook/12306-mcp

Known working client config (can write into mcp.json):
{
  "mcpServers": {
    "joooook-12306-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "12306-mcp"
      ]
    }
  }
}

Please: 1) check README for deps and env vars; 2) write config for my client; 3) if secrets are missing, tell me what to fill — do not invent values.

Related servers