12306 MCP Server

v1.0.0APIsstable

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

12306mcpmcp-servertrain-tickets
Share:
889
Stars
0
Downloads
0
Weekly
0/5

About

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

Features

  • get-current-date
  • get-stations-code-in-city
  • get-station-code-of-citys
  • get-station-code-by-names
  • get-station-by-telecode

Use Cases

获取当前日期,以上海时区(Asia/Shanghai, UTC+8)为准,返回格式为 'yyyy-MM-dd'。主要用于解析用户提到的相对日期(如“明天”、“下周三”),为其他需要日期的接口提供准确的日期输入。
通过中文城市名查询该城市 **所有** 火车站的名称及其对应的 'station_code',结果是一个包含多个车站信息的列表。
通过中文城市名查询代表该城市的 'station_code'。此接口主要用于在用户提供**城市名**作为出发地或到达地时,为接口准备 'station_code' 参数。
通过具体的中文车站名查询其 'station_code' 和车站名。此接口主要用于在用户提供**具体车站名**作为出发地或到达地时,为接口准备 'station_code' 参数。
通过车站的 'station_telecode' 查询车站的详细信息,包括名称、拼音、所属城市等。此接口主要用于在已知 'telecode' 的情况下获取更完整的车站数据,或用于特殊查询及调试目的。一般用户对话流程中较少直接触发。
Joooook

Maintainer

LicenseMIT
Languagejavascript
Versionv1.0.0
UpdatedMay 19, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx 12306

Examples

Basic Configuration

Configure 12306 MCP Server

npx 12306

Configuration

Configuration Details

Config File

claude_desktop_config.json

Web UI

Not available

Security

Authentication

RequiredNo

Features

Data Encryption
Audit Logging
RBAC Support

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

More APIs MCP Servers

Explore other servers in the APIs category.

Quick Config Preview

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

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use 12306 MCP Server?

Browse our complete directory of 60+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

60+ ServersFree & Open SourceStep-by-Step Guides