Skip to content
appsgit

MCP Server 12306

MCP Server 12306 is an MCP server that provides 12306 ticket query. It has 405 GitHub stars, is released under the MIT license and runs locally with uvx mcp-server-12306. It works with Claude Desktop, Claude Code, Cursor and VS Code.

github.com/drfccv/mcp-server-12306 (opens in a new tab)

Install MCP Server 12306

Generated from the server's MCP registry entry. Replace your-value with your own values.

Claude Desktop

claude_desktop_config.json
{
  "mcpServers": {
    "mcp-server-12306": {
      "command": "uvx",
      "args": [
        "mcp-server-12306"
      ]
    }
  }
}

Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.

Claude Code

claude mcp add --transport stdio mcp-server-12306 -- uvx mcp-server-12306

Cursor

.cursor/mcp.json
{
  "mcpServers": {
    "mcp-server-12306": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-server-12306"
      ]
    }
  }
}

Project file; use ~/.cursor/mcp.json to enable it in every project.

VS Code

.vscode/mcp.json
{
  "servers": {
    "mcp-server-12306": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-server-12306"
      ]
    }
  }
}

Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).

About MCP Server 12306

基于 Model Context Protocol (MCP) 的 12306 火车票查询服务 MCP Server 通过标准输入/输出与客户端通信,不占用网络端口,适合 Claude Desktop、Cursor 等本地 MCP 客户端。

  • 12306
  • agent
  • ai
  • mcp
  • mcp-servers
  • mcp-tools

FAQ

MCP Server 12306 FAQ

Still curious? Email info@appsgit.com.

What is MCP Server 12306?

MCP Server 12306 is an MCP server that provides 12306 ticket query. It has 405 GitHub stars, is released under the MIT license and runs locally with uvx mcp-server-12306. It works with Claude Desktop, Claude Code, Cursor and VS Code. The source code is at github.com/drfccv/mcp-server-12306.

How do I install the MCP Server 12306 MCP server?

Add the command uvx mcp-server-12306 to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.

Is MCP Server 12306 free?

The server is open source under the MIT license, so running it is free. It does not declare any required API key.

Is MCP Server 12306 actively maintained?

The most recent commit was on Sep 30, 2026. appsgit only lists MCP servers with a commit in the last six months and re-checks every server daily.