# 12306 Railway

> Use this tool when you need to integrate China's railway ticket booking system into your application, enabling users to search for train tickets, check schedules, and retrieve route information across the Chinese railway network. It solves problems related to travel planning, providing real-time ticket availability and pricing information, as well as detailed station data. The tool interfaces with the official 12306 API, accepting queries and returning parsed ticket information and station details, making it ideal for use in travel planning applications.

Canonical page: https://skillsregistry.net/skills/freestylefly-12306-railway  
JSON: https://api.skillsregistry.net/v1/skills/freestylefly-12306-railway

## Description

This MCP server provides integration with China's 12306 railway ticket booking system, enabling AI assistants to search for train tickets, check schedules, and retrieve route information across the Chinese railway network. Built with TypeScript and using axios for HTTP requests, it interfaces with the official 12306 API to fetch real-time ticket availability, pricing information across different seat classes, and detailed station data including departure/arrival times and journey durations. The implementation includes support for both direct routes and interline connections, comprehensive data parsing for ticket information and station details, and date handling with timezone support, making it valuable for travel planning applications that need to help users navigate China's extensive high-speed rail system and book appropriate train tickets.

## Trust

- **Trust score (0–1):** 0.65
- **Verification tier:** scanned
- **Last scanned:** 2026-09-02

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** search
- **Updated:** 2026-09-02

## Source

- **Source listing:** [PulseMCP](https://www.pulsemcp.com/servers/freestylefly-12306-railway)
- **Repository:** <https://github.com/freestylefly/12306-mcp>

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "freestylefly-12306-railway"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/freestylefly-12306-railway` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/freestylefly-12306-railway/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
