MCP Server 12306

by drfccv• 416•• Scanned•Claim this listing•Request removal
Other12306agentaimcpmcp servers

12306 MCP Server​​ 是一个基于 ​​Model Context Protocol (MCP)​​ 的高性能火车票查询后端系统。它通过标准化接口提供官方 12306 的实时数据服务,包括余票查询、车站信息、列车经停站、中转换乘方案等核心功能。

MCP Server 12306 is an open-source mcp server by drfccv, written mainly in Python, with 416 GitHub stars and the MIT license. Its code was last updated Sep 30, 2026. The latest PyPI release is mcp-server-12306 0.5.0.post20261103, published Nov 5, 2026, with 354 downloads last week.

Scan summary: scanned Nov 5, 2026 at commit 413e3cb. Seen able to read environment and secrets, connect to databases, touch money or trading, connect to the internet. Scan policy

How to install MCP Server 12306

Built from the start command in the project's README: uvx mcp-server-12306. Check the README for required keys or settings.

Claude Code · Terminal
claude mcp add mcp-server-12306 -- uvx mcp-server-12306
Claude Desktop · claude_desktop_config.json
{
  "mcpServers": {
    "mcp-server-12306": {
      "command": "uvx",
      "args": [
        "mcp-server-12306"
      ]
    }
  }
}
Cursor · .cursor/mcp.json
{
  "mcpServers": {
    "mcp-server-12306": {
      "command": "uvx",
      "args": [
        "mcp-server-12306"
      ]
    }
  }
}
VS Code · Terminal
code --add-mcp '{"name":"mcp-server-12306","command":"uvx","args":["mcp-server-12306"]}'

What MCP Server 12306 can touch

  • Run shell commandsNot seen in this scan
  • Run dynamic codeNot seen in this scan
  • Read or write filesNot seen in this scan
  • Read environment and secretsFound in the code by our scan
  • Control a web browserNot seen in this scan
  • Connect to databasesListed as a tool: query-tickets
  • Read or send messagesNot seen in this scan
  • Touch money or tradingListed as a tool: query-transfer
  • Connect to the internetFound in the code by our scan

"Not seen" means our checks did not find it, and the tool may still do it. Covers commit 413e3cb, Nov 5, 2026. See the scan policy.

Before you install MCP Server 12306

AgenticMart scanned MCP Server 12306 on Nov 5, 2026 with automated checks for hidden code, known-malicious packages, leaked secrets and vulnerable dependencies. The result covers one commit under our scan policy, so review what access you give it and check any advisories shown here.

What it can access

  • An MCP server is a program your AI app starts and talks to. A local one runs with your user's permissions: it can see the files, environment variables and network your account can.

Before you install

  1. Pin the version you reviewed instead of always installing the latest release.
  2. Read the tool list or scripts before the first run, and keep approval prompts on for actions that write, send or delete.
  • Maintained by drfccv on GitHub, 416 stars and 59 forks. Popularity is not proof of safety.
  • Last code change: Sep 30, 2026.
  • Open-source license: MIT.

Tools MCP Server 12306 exposes (7)

Listed by the server itself during our scan of commit 413e3cb.

  • query-tickets

    官方12306余票/车次/座席/时刻一站式查询。输入出发站、到达站、日期,返回所有可购车次、时刻、历时、各席别余票等详细信息。支持中文名、三字码。 【智能筛选指南】返回结果通常包含出发/到达城市的所有相关车站(如北京/北京西/北京南)。请根据用户输入语境灵活处理: 1. 用户仅输入城市名(如'九江'):请展示所有相关站点的车次,不要过滤。 2. 用户指定具体车站(如'九江站'):优先展示匹配车站的车次,但若其他同城车站有更优方案(如时间更短、有票),也应作为补充选项提供。 请避免机械地仅通过字符串匹配过滤车次,以免遗漏用户可能感兴趣的出行方案。

  • query-ticket-price

    查询火车票价信息。输入出发站、到达站、日期,返回各车次的票价详情。支持指定车次号过滤。 【智能筛选指南】返回结果通常包含出发/到达城市的所有相关车站(如北京/北京西/北京南)。请根据用户输入语境灵活处理: 1. 用户仅输入城市名(如'九江'):请展示所有相关站点的车次,不要过滤。 2. 用户指定具体车站(如'九江站'):优先展示匹配车站的车次,但若其他同城车站有更优方案(如时间更短、有票),也应作为补充选项提供。 请避免机械地仅通过字符串匹配过滤车次,以免遗漏用户可能感兴趣的出行方案。

  • search-stations

    智能车站搜索。支持中文名、拼音、简拼、三字码(Code)。可用于模糊搜索(如'北京'),也可用于精确获取车站代码(如输入'BJP'返回北京站信息)。

  • query-transfer

    官方中转换乘方案查询。输入出发站、到达站、日期,可选中转站/无座/学生票,自动分页抓取全部中转方案,输出每段车次、时刻、余票、等候时间、总历时等详细信息。

  • get-train-route-stations

    列车经停站全表查询。支持输入车次号或官方编号,自动转换,返回所有经停站、到发时刻、停留时间。支持三字码/全名。

  • get-train-no-by-train-code

    车次号转官方唯一编号(train_no),支持三字码/全名。常用于经停站查询前置转换。

  • get-current-time

    获取当前日期和时间信息,支持相对日期计算。返回当前日期、时间,以及常用的相对日期(明天、后天等),方便用户在查询火车票时选择正确的日期。

MCP Server 12306 is an open-source mcp server by drfccv, written mainly in Python. 12306 MCP Server​​ 是一个基于 ​​Model Context Protocol (MCP)​​ 的高性能火车票查询后端系统。它通过标准化接口提供官方 12306 的实时数据服务,包括余票查询、车站信息、列车经停站、中转换乘方案等核心功能。

At a glance

Stars
416
Forks
59
Language
Python
License
MIT
Created
Jun 2025
Last update
Sep 30, 2026
Type
MCP Server
Price
Free

Topics

12306agentaimcpmcp-serversmcp-tools

Questions about MCP Server 12306

What is MCP Server 12306?

12306 MCP Server​​ 是一个基于 ​​Model Context Protocol (MCP)​​ 的高性能火车票查询后端系统。它通过标准化接口提供官方 12306 的实时数据服务,包括余票查询、车站信息、列车经停站、中转换乘方案等核心功能。

Who maintains MCP Server 12306?

MCP Server 12306 is maintained by drfccv on GitHub (drfccv/mcp-server-12306). AgenticMart lists it from public repository data.

Is MCP Server 12306 safe to use?

AgenticMart scanned MCP Server 12306 on Nov 5, 2026 with automated checks for hidden code, known-malicious packages, leaked secrets and vulnerable dependencies. The result covers one commit under our scan policy, so review what access you give it and check any advisories shown here.

What license does MCP Server 12306 use?

It is published under the MIT license.

MCP Server 12306 alternatives

View more →

Similar mcp servers in Other, ranked by GitHub stars. Compare licence, recent activity and scan status before you choose.

NameStarsLicenceLast updatedScan
MCP Server 12306 (this page)
drfccv
416MITSep 30, 2026Scanned, no flagged issues
Github MCP Server
github
34kMITOct 30, 2026Scanned, no flagged issues
Fastapi MCP
tadata-org
12kMITNov 24, 2025Scanned, no flagged issues
GhidraMCP
LaurieWired
12kApache-2.0Oct 10, 2026Scanned, no flagged issues
MCP Go
mark3labs
9.2kMITOct 30, 2026Scanned, no flagged issues
Git MCP
idosal
8.5kApache-2.0May 8, 2026Scanned, no flagged issues