12306 MCP

by Joooook• 2.4k•• Scanned•Claim this listing•Request removal
Other12306mcpmcp servertrain tickets

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

12306 MCP is an open-source mcp server by Joooook, written mainly in JavaScript, with 2,421 GitHub stars and the MIT license. Its code was last updated Jul 31, 2026. The latest npm release is 12306-mcp 0.3.10, published Jul 30, 2026, with 13,250 downloads last week.

Scan summary: scanned Nov 5, 2026 at commit ff6439d. Seen able to connect to the internet. Scan policy

How to install 12306 MCP

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

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

What 12306 MCP 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 secretsNot seen in this scan
  • Control a web browserNot seen in this scan
  • Connect to databasesNot seen in this scan
  • Read or send messagesNot seen in this scan
  • Touch money or tradingNot seen in this scan
  • Connect to the internetContacted kyfw.12306.cn, www.12306.cn

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

Before you install 12306 MCP

AgenticMart scanned 12306 MCP 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 Joooook on GitHub, 2,421 stars and 336 forks. Popularity is not proof of safety.
  • Last code change: Jul 31, 2026.
  • Open-source license: MIT.

Tools 12306 MCP exposes (8)

Listed by the server itself during our scan of commit ff6439d.

  • get-current-date

    获取当前日期,以上海时区(Asia/Shanghai, UTC+8)为准,返回格式为 "yyyy-MM-dd"。主要用于解析用户提到的相对日期(如“明天”、“下周三”),提供准确的日期输入。

  • get-stations-code-in-city

    通过中文城市名查询该城市 **所有** 火车站的名称及其对应的 `station_code`,结果是一个包含多个车站信息的列表。

  • get-station-code-of-citys

    通过中文城市名查询代表该城市的 `station_code`。

  • get-station-code-by-names

    通过具体的中文车站名查询其 `station_code` 和车站名。

  • get-station-by-telecode

    通过车站的 `station_telecode` 查询车站的详细信息,包括名称、拼音、所属城市等。此接口主要用于在已知 `telecode` 的情况下获取更完整的车站数据,或用于特殊查询及调试目的。一般用户对话流程中较少直接触发。

  • get-tickets

    查询12306余票信息。

  • get-interline-tickets

    查询12306中转余票信息。尚且只支持查询前十条。

  • get-train-route-stations

    查询特定列车车次在指定区间内的途径车站、到站时间、出发时间及停留时间等详细经停信息。当用户询问某趟具体列车的经停站时使用此接口。

Hosts it contacted while running

kyfw.12306.cnwww.12306.cn

12306 MCP is an open-source mcp server by Joooook, written mainly in JavaScript. This is a 12306 ticket search server based on the Model Context Protocol (MCP).

At a glance

Stars
2.4k
Forks
336
Language
JavaScript
License
MIT
Created
Apr 2025
Last update
Jul 31, 2026
Type
MCP Server
Price
Free

Topics

12306mcpmcp-servertrain-tickets

Questions about 12306 MCP

What is 12306 MCP?

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

Who maintains 12306 MCP?

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

Is 12306 MCP safe to use?

AgenticMart scanned 12306 MCP 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 12306 MCP use?

It is published under the MIT license.

12306 MCP alternatives

View more →

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

NameStarsLicenceLast updatedScan
12306 MCP (this page)
Joooook
2.4kMITJul 31, 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