12306-mcp

by Joooook

This is a 12306 ticket search server based on the Model Context Protocol (MCP).

Travel & transportstdio or Streamable HTTPCommunity

Repository-wide counts · Cached 2025-10-28

Overview

The 12306-mcp MCP server is a publicly available project. Review the upstream repository for installation instructions, supported tools, compatibility, permissions, and current maintenance status.

Configuration

Configuration, transport, authentication, and runtime requirements vary by project. Open the repository before connecting and use the smallest set of credentials and permissions required.

Open the 12306-mcp repository to read the latest documentation.

KEEP EXPLORING

Compare source, connection, and authentication details before choosing an implementation.

View the complete category

LetsFG

LetsFG

Community

LetsFG provides AI-powered flight and hotel search and booking with real prices and no markup. Requires a payment method setup via zero-amount Stripe authorization using the CLI command 'letsfg auth'.

Airbnb Search & Listings - MCP Bundle (MCPB)

openbnb-org

Community

A comprehensive MCP Bundle for searching Airbnb listings with advanced filtering capabilities and detailed property information retrieval. Supports configuration via environment variable DISABLE_GEOCODING to disable third-party geocoding services.

Baidu Map MCP Server

baidu-maps

Community

Baidu Map MCP Server is a fully MCP-compliant, open-source Location-Based Service (LBS) solution providing geospatial APIs such as geocoding, POI search, route planning, weather, traffic, and more. Requires an API key configured via environment variables (e.g., BAIDU_MAPS_API_KEY or BAIDU_MAP_API_KEY).

12306 MCP 服务器

drfccv

Community

12306 MCP 服务器是基于模型上下文协议(MCP)的高性能火车票查询后台,支持官方的12306票务可用性、车站、停靠站、换乘查询以及智能时间工具。适用于人工智能、自动化和智能助手场景,界面友好,集成简便。在启动服务器前,需要通过脚本 'scripts/update_stations.py' 更新外部车站数据。

FROM THE SOURCE

Repository README

Build-time snapshot · Retrieved 2026-10-05

View original

12306-mcp

A 12306 ticket search server based on the Model Context Protocol (MCP). The server provides a simple API interface that allows users to search for 12306 tickets.

基于 Model Context Protocol (MCP) 的12306购票搜索服务器。提供了简单的API接口,允许大模型利用接口搜索12306购票信息。

如需Skill -> https://github.com/Joooook/12306-skill

🚩Features

功能描述 状态
查询12306购票信息 ✅ 已完成
过滤列车信息 ✅ 已完成
过站查询 ✅ 已完成
中转查询 ✅ 已完成
其余接口,欢迎提feature 🚧 计划内

⚙️Installation

git clone https://github.com/Joooook/12306-mcp.git
npm i

▶️Quick Start

CLI-stdio

npx -y 12306-mcp

CLI-http

npx -y 12306-mcp --port [端口号]

Runtime requirements

The server requires Node.js 18 or newer. The npm run debug command uses MCP Inspector 2.0.0, which requires Node.js 22.19.0 or newer.

MCP sever configuration

{
    "mcpServers": {
        "12306-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "12306-mcp"
            ]
        }
    }
}

Docker-stdio

docker build . -t 12306-mcp
docker run --rm -it 12306-mcp npx 12306-mcp

Docker-http

docker build . -t 12306-mcp
docker run -p [your_port]:8080 -d 12306-mcp npx 12306-mcp --port 8080

📚Documentation

👉️Reference

💭Murmurs

本项目仅用于学习,欢迎催更。

🎫Badges

☕️Donate

请我喝杯奶茶吧。