Skip to main content
Glama

12306-mcp

get-station-code-by-names

Retrieve station codes for specific Chinese train station names to prepare parameters for API requests. Input station names like "Beijing South" or "Shanghai Hongqiao" to get corresponding codes.

Instructions

通过具体的中文车站名查询其 station_code 和车站名。此接口主要用于在用户提供具体车站名作为出发地或到达地时,为接口准备 station_code 参数。

Input Schema

NameRequiredDescriptionDefault
stationNamesYes具体的中文车站名称,例如:"北京南", "上海虹桥"。若要查询多个站点,请用|分割,比如"北京南|上海虹桥"。

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "stationNames": { "description": "具体的中文车站名称,例如:\"北京南\", \"上海虹桥\"。若要查询多个站点,请用|分割,比如\"北京南|上海虹桥\"。", "type": "string" } }, "required": [ "stationNames" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Joooook/12306-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server