Skip to main content
Glama

get-stations-code-in-city

Retrieve all railway station names and their codes in a specific Chinese city using the 12306-MCP server to help identify departure or arrival points.

Instructions

通过中文城市名查询该城市 所有 火车站的名称及其对应的 station_code,结果是一个包含多个车站信息的列表。当用户想了解一个城市有哪些火车站,或者不确定具体从哪个车站出发/到达时可以使用此接口。

Input Schema

NameRequiredDescriptionDefault
cityYes中文城市名称,例如:"北京", "上海"

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "city": { "description": "中文城市名称,例如:\"北京\", \"上海\"", "type": "string" } }, "required": [ "city" ], "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/freestylefly/12306-mcp'

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