Content
# Unofficial Tongcheng Travel MCP Server
## Overview
Currently, it supports docking with the train ticket interface on the Tongcheng Travel website to obtain the train list information of the specified train ticket.
Developed based on `MCP Typescript SDK`, it currently provides Node-based docking, and Java-based docking will be provided later.
## Features
Currently supports 2 tool methods:
Tool method 1: Train ticket train list query function
Tool method 2: Current time query function
See details: https://github.com/wuchubuzai2018/tongchenglvxing-mcp-server/tree/main/typescript-mcp
## Getting Started
Using MCP Server is mainly done in two forms, planned to be `java` and `Typescript`, and TypeScript is currently supported.
### Typescript Access
For detailed information, please refer to the instructions in the typescript-mcp folder.
#### nodejs Installation
Through Typescript access, you only need to install [node.js](https://nodejs.org/en/download).
When you can run in the terminal
```bash
node -v
```
It means that your `node.js` has been installed successfully.
### NPX Local Development Environment Access
After downloading the project, execute npm install to build the project, and then configure it in MCP Client.
```json
{
"mcpServers": {
"tongchenglvxing-mcp-server": {
"command": "npx",
"args": [
"-y",
"/Users/tongchenglvxing-mcp-server/dist/index.js"
]
}
}
}
```
### NPX Published Environment/MCP-enabled Client Access
```json
{
"mcpServers": {
"tongchenglvxing-mcp-server": {
"command": "npx",
"args": [
"-y",
"@wuchubuzai/tongchenglvxing-mcp-server"
]
}
}
}
```
## Update
| Version | Function Description | Update Date |
| ---- | ------------------------------ | ------------- |
| V0.0.1 | MCP Server initial version, simple support for train ticket train number query | 2025-04-29 |
| V0.0.2 | Code optimization, added UserAgent processing | 2025-04-29 |
## Feedback
If you encounter any problems while using MCP Server, you are welcome to give me feedback through `issue`, thank you very much for your support and contribution ❤️
Connection Info
You Might Also Like
awesome-mcp-servers
A collection of MCP servers.
git
A Model Context Protocol server for Git automation and interaction.
cc-switch
All-in-One Assistant for Claude Code, Codex & Gemini CLI across platforms.
TrendRadar
TrendRadar: Your hotspot assistant for real news in just 30 seconds.
oh-my-opencode
Background agents · Curated agents like oracle, librarians, frontend...
Appwrite
Build like a team of hundreds