← Back to Skills Marketplace
lancenas

Mcporter Railway Query

by Lance · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ✓ Security Clean
986
Downloads
0
Stars
2
Active Installs
7
Versions
Install in OpenClaw
/install mcporter-railway-query
Description
通过 mcporter CLI 查询中国铁路票务信息。适用于用户想要搜索 G/D/C 车票、查看列车时刻表、查询座位可用性或规划中国城市之间的铁路旅行。支持按日期、时间范围、列车类型进行筛选,并对结果进行排序。
Usage Guidance
This skill is a lightweight wrapper that runs the mcporter CLI; before installing, verify you trust the mcporter package source (npm) and inspect your ~/.mcporter/mcporter.json. The MCP server URL in that config is the endpoint that will receive your queries — prefer a trusted or local server (e.g., 127.0.0.1) to avoid sending requests to an unknown remote service. The scripts do not perform booking or store credentials, but they will call whatever MCP server you configure, so treat the server URL as sensitive and review it if you have privacy or security concerns.
Capability Analysis
Type: OpenClaw Skill Name: mcporter-railway-query Version: 1.1.0 The skill is a legitimate wrapper for the `mcporter` CLI tool designed to query Chinese railway (12306) ticket information. It provides helper bash scripts (e.g., `scripts/query-tickets.sh`, `scripts/get-station-code.sh`) and documentation that facilitate searching for train schedules and station codes. The analysis found no evidence of malicious intent, data exfiltration, or prompt injection; the scripts use standard practices for parameter handling and the `SECURITY.md` file explicitly outlines the tool's limited, read-only scope.
Capability Assessment
Purpose & Capability
Name/description match the code and docs: helper shell scripts call the mcporter CLI to query 12306 MCP endpoints. The requested artifacts (mcporter CLI and a mcporter.json config) are expected for this functionality.
Instruction Scope
SKILL.md and scripts only instruct running mcporter with user-supplied parameters and reading a config file (default ~/.mcporter/mcporter.json). They do not attempt to read unrelated files, access other environment variables, or transmit data to hidden endpoints in the repository itself.
Install Mechanism
No install spec in the skill bundle; developer recommends installing mcporter via npm in documentation. The repository contains only small shell scripts and reference docs — no downloads or archive extraction from untrusted URLs.
Credentials
The skill declares no required environment variables or credentials. The only config referenced is the user's mcporter.json (expected to hold MCP server URL). There are no unrelated credentials requested.
Persistence & Privilege
The skill is not 'always' enabled, does not modify other skills or system-wide settings, and does not persist secrets. Scripts are runtime helpers only.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install mcporter-railway-query
  3. After installation, invoke the skill by name or use /mcporter-railway-query
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.1.0
feat: default query includes all train types (G/D/C); remove --all flag; docs and security statement improvements
v1.0.9
feat: query-tickets.sh and query-afternoon.sh now include all train types (G/D/C) by default; remove --all flag; update docs to reflect unified query behavior
v1.0.8
fix: remove misleading 'booking' claim from description (query-only skill); fix security docs to transparently disclose mcporter CLI subprocess usage; fix invalid GDC filter value in examples (not supported by API)
v1.0.7
feat: add --all flag to include C-type intercity trains in query scripts; fix Hangzhou East station code (HGH); fix get-station-code.sh set -e fallback logic; update project structure docs
v1.0.6
- Added version and license fields to SKILL.md metadata. - Fixed YAML property quoting and formatting in the metadata block. - Updated station codes table: changed "杭州东" to "杭州". - General minor documentation clarifications and consistency improvements.
v1.0.5
- Updated the skill description in SKILL.md for improved clarity, using simplified Chinese. - No functional or workflow changes; documentation only.
v1.0.4
- Added a comprehensive usage guide in SKILL.md, including prerequisites, quick start scripts, direct CLI usage, and parameter reference. - Documented workflow for querying and booking Chinese railway tickets with mcporter CLI via 12306. - Provided troubleshooting tips and common station codes for convenience. - Linked to further references and example queries for user support.
Metadata
Slug mcporter-railway-query
Version 1.1.0
License MIT-0
All-time Installs 2
Active Installs 2
Total Versions 7
Frequently Asked Questions

What is Mcporter Railway Query?

通过 mcporter CLI 查询中国铁路票务信息。适用于用户想要搜索 G/D/C 车票、查看列车时刻表、查询座位可用性或规划中国城市之间的铁路旅行。支持按日期、时间范围、列车类型进行筛选,并对结果进行排序。 It is an AI Agent Skill for Claude Code / OpenClaw, with 986 downloads so far.

How do I install Mcporter Railway Query?

Run "/install mcporter-railway-query" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Mcporter Railway Query free?

Yes, Mcporter Railway Query is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Mcporter Railway Query support?

Mcporter Railway Query is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Mcporter Railway Query?

It is built and maintained by Lance (@lancenas); the current version is v1.1.0.

💬 Comments