12306-mcp

v1.0.0APIsstable

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

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

What is 12306-mcp?

12306-mcp is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 获取当前日期,以上海时区(asia/shanghai, utc+8)为准,返回格式为 'yyyy-mm-dd'。主要用于解析用户提到的相对日期(如“明天”、“下周三”),为其他需要日期的接口提供准确的日期输入。

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

This server falls under the APIs category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

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 License
Languagejavascript
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y 12306-mcp

Manual Installation

npx -y 12306-mcp

Examples

No examples available for this server.

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

Frequently Asked Questions about 12306-mcp

What is 12306-mcp?

12306-mcp is a Model Context Protocol (MCP) server that 获取当前日期,以上海时区(asia/shanghai, utc+8)为准,返回格式为 'yyyy-mm-dd'。主要用于解析用户提到的相对日期(如“明天”、“下周三”),为其他需要日期的接口提供准确的日期输入。 It connects AI assistants to external tools and data sources through a standardized interface.

How do I install 12306-mcp?

Install via npm with the command: npx -y 12306-mcp. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with 12306-mcp?

12306-mcp works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is 12306-mcp free to use?

Yes, 12306-mcp is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More APIs MCP Servers

Explore all apis servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

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

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

Read the full setup guide →

Ready to use 12306-mcp?

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

33,000+ ServersFree & Open SourceStep-by-Step Guides