Queries China Railway 12306 train schedules and remaining seats by Chinese station name and date; read-only, with a hosted endpoint.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add --transport http 12306-train https://mcp.pianam.cn/train-mcp/mcp~/.codex/config.toml
[mcp_servers.12306-train]
url = "https://mcp.pianam.cn/train-mcp/mcp"
# codex mcp add 12306-train --url https://mcp.pianam.cn/train-mcp/mcp~/.cursor/mcp.json
{
"mcpServers": {
"12306-train": {
"url": "https://mcp.pianam.cn/train-mcp/mcp"
}
}
}.vscode/mcp.json
{
"servers": {
"12306-train": {
"type": "http",
"url": "https://mcp.pianam.cn/train-mcp/mcp"
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"12306-train": {
"httpUrl": "https://mcp.pianam.cn/train-mcp/mcp"
}
}
}claude_desktop_config.json · Customize › Connectors › Add custom connector
{
"mcpServers": {
"12306-train": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.pianam.cn/train-mcp/mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"12306-train": {
"url": "https://mcp.pianam.cn/train-mcp/mcp"
}
}
}