MCP Catalogs
Home12306-mcp screenshot

12306-mcp

by Joooook·878·Score 49

12306 MCP server provides ticket search functionality for Chinese railway booking.

ecommerceai-llmtravel
150
Forks
3
Open issues
2 mo ago
Last commit
2d ago
Indexed

Overview

12306-mcp is an MCP server that provides access to China's 12306 railway booking system. It allows AI models to search for train tickets, filter train information, check station transfers, and query routes. The server offers both stdio and HTTP modes of operation, making it compatible with different MCP client implementations.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:Travel planning AI assistants that can help users find train tickets
you:Automated travel booking systems that integrate with 12306
you:Multi-agent systems that need access to Chinese railway information
you:What MCP tools does this server provide?
you:How can I use this server with Claude Desktop?

When to choose this

Choose this server when you need to integrate real-time Chinese train ticket information into your AI application or workflow.

When NOT to choose this

Don't choose this server if you need access to non-Chinese railway systems or require ticket booking functionality (search only).

Tools this server exposes

4 tools extracted from the README
  • query_tickets

    查询12306购票信息

  • filter_trains

    过滤列车信息

  • query_stations

    过站查询

  • query_transfers

    中转查询

Note: 工具名称从功能描述表格中推断,没有明确的API文档或工具列表

Comparable tools

flight-search-mcptravel-booking-apiamtrak-mcp

Installation

# Install via npm
npm install -g @joooook/12306-mcp

# Run directly
npx -y 12306-mcp

# Or with specific port
npx -y 12306-mcp --port 8080

# Claude Desktop configuration
{
  "mcpServers": {
    "12306-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "12306-mcp"
      ]
    }
  }
}

FAQ

What MCP tools does this server provide?
The server provides tools for searching 12306 tickets, filtering train information, checking station transfers, and querying routes.
How can I use this server with Claude Desktop?
Configure the server in your Claude Desktop settings using the JSON configuration shown in the installation section.

Compare 12306-mcp with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.