J1

joooook/12306-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

2.4천 stars 336 forks 품질 66 트렌드 32MIT

이 서버는 모델 컨텍스트 프로토콜(MCP)을 기반으로 한 12306 티켓 검색 서버입니다.

개요

모델 컨텍스트 프로토콜(MCP)을 기반으로 한 12306 티켓 검색 서버입니다. 이 서버는 사용자가 12306 티켓을 검색할 수 있도록 간단한 API 인터페이스를 제공합니다. 基于 Model Context Protocol (MCP) 的12306购票搜索服务器。 提供了简单的API接口,允许大模型利用接口搜索12306购票信息。 ~~~배시 기트 클론 https://github.com/Joooook/12306-mcp.git npm i ~~~ ~~~bash, NPX -Y 12306-MCP --port [端口号] ~~~ ~~~json { "mcpServers": { "12306-mcp": { "command": "npx", "args": [ "-y", "12306-mcp" ] } } ~~~bash, 도커 빌드. -t 12306-mcp 도커 런 --rm -it 12306-mcp NPX 12306-MCP ~~~ ~~~Bash, 도커 빌드. -T 12306-MCP 도커 실행 -p [your_port]:8080 -d 12306-mcp NPX 12306-MCP --포트 8080 ~~~ - modelcontextprotocol/modelcontextprotocol - modelcontextprotocol/typescript-SDK

개요(AI 번역)

모델 컨텍스트 프로토콜(MCP)을 기반으로 한 12306 티켓 검색 서버입니다. 이 서버는 사용자가 12306 티켓을 검색할 수 있도록 간단한 API 인터페이스를 제공합니다.

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

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

🚩특징

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

⚙️설치

git 클론 https://github.com/Joooook/12306-mcp.git
NPM I

▶️퀵 스타트

CLI-stdio

NPX -Y 12306-MCP

CLI-http

NPX -Y 12306-MCP --port [端口号]

실행 시간 요구사항

서버는 Node.js 18 이상을 요구합니다. npm run debug 명령어는 MCP 인스펙터 2.0.0은 Node.js 22.19.0 이상이 필요합니다.

MCP 서버 구성

{ 
 "mcpServers": { 
 "12306-MCP": { 
 "명령": "NPX", 
 "ARGS": [ 
 "-y", 
 "12306-MCP" 
 ]
 }
 }
}

도커-스티디오

도커 빌드. -T 12306-MCP
도커 런 --rm -it 12306-mcp NPX 12306-MCP

도커-http

도커 빌드. -T 12306-MCP

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

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

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

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

GitHub에서 전체 README 보기

설치

npx -y 12306-mcp
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →