Token导航 LogoToken导航

MCP Server · 搜索检索

RapidKL MCP

RapidKL MCP Server是一个基于FastMCP的MCP服务,提供票价查询、站点搜索、行程规划和完整站点资源的地理服务端点。

stdio官方级别未说明来源级核验工具 3
Python搜索文档处理

快速开始

作者 / 组织
philyeolabs
提供方
philyeolabs
运行时
Python

工具数量

3

来源目录标注

资源数量

0

来源目录标注

提示词数量

0

来源目录标注

GitHub Star

0

仓库热度

收录来源

1 个

MCP World

选型结论

RapidKL MCP 属于搜索检索类 MCP Server,公开资料标注 3 个工具,通过stdio 本地进程接入,客户端适配情况以官方文档为准,有可以直接复制的安装命令;接入前先确认权限范围。

分类

搜索检索

传输方式

stdio

认证方式

无需认证

部署方式

公开资料未说明

安装与配置

安装命令

python -m pip install httpx mcp

公开命令不是通用的启动方式,拼不出可靠配置示例;请在客户端 MCP 配置里按官方文档填写 command 和 args。

上手步骤

  1. 1

    准备运行环境

    stdio 服务在本地起进程,需要先装好 Python,再按安装命令拉取依赖。

  2. 2

    安装服务

    复制下面的安装命令执行;命令里带占位符的位置换成自己的密钥或路径。

  3. 3

    写入客户端配置

    在客户端的 MCP 配置里填启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4

    验证是否可用

    连接成功后客户端会列出 3 个工具,随便调一个只读工具确认能返回结果。

接入前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

详细介绍

RapidKL MCP Server

FastMCP-based MCP service exposing RapidKL (MYRAPID) geoservice endpoints for fares, station search, journey planning and a full stations resource.

Features

  • Tool: get_fare(frm: str, to: str)

Returns fares between two station identifiers (adult, cash, cashless, concession, standard).

  • Tool: get_stations(input: str)

Search stations by place or station name; returns formatted name, id, category and coordinates.

  • Tool: get_journey_planner(from_long: float, from_lat: float, to_long: float, to_lat: float, mode: str, journey_type: str, departure_datetime: str)

Request journey plans between coordinates. Accepts departure time as YYYY-MM-DD or YYYY-MM-DD HH:MM:SS.

  • Resource: get_all_stations()

Fetches full stations payload and returns a human-readable listing of routes and stops (skips empty placeholders).

Requirements

  • Python 3.10+
  • Packages:

- httpx - mcp

Install:

python -m pip install httpx mcp

Endpoints used

Base MYRAPID geoservice: https://jp.mapit.myrapid.com.my/endpoint/geoservice

Common endpoints used by the service:

  • /geocode — used by get_stations
  • /fares — used by get_fare
  • /journeyPlanner — used by get_journey_planner
  • /stations — used by get_all_stations

Running (Windows)

From repository root:

python c:\Dev\RapidKL_MCP\server.py

The script runs the FastMCP server with mcp.run(transport='stdio'). Use an MCP-compatible client to call tools/resources.

Usage notes

  • make_myrapid_request(url) performs HTTP GET requests with a 30s timeout and returns parsed JSON (or None on error).
  • Handlers accept responses already parsed as dicts or as JSON strings and attempt to normalize them.
  • get_all_stations() details:

- Validates top-level structure (success, message, data). - Formats each route and its stops to a readable multi-line string. - Skips empty placeholder objects often present in stops. - Normalizes accessibility (isOKU) into "Accessible"/"Not Accessible". - Shows stop id, name, coordinates and trip count if available.

Example outputs (truncated)

get_fare:

Adult Fare: $2.40
Cash Fare: $2.40
Cashless Fare: $2.00
Concession Fare: $1.20
Standard Fare: $2.40

get_stations:

Station Name: Bandar Utama
Station ID: poi_12345
Category: MRT
Coordinates: (3.142857, 101.606666)
Latitude : 3.142857
Longitude: 101.606666

get_all_stations (route excerpt):

Route: MRT Putrajaya Line (PYL, MRT)
--------------------------------------------------
  Stop: KWASA DAMANSARA (ID: PY01)
    Coordinates: (3.1763324, 101.5721456)
    Accessibility: Accessible
    Trips known: 0

get_journey_planner (route summary excerpt):

Journey from (3.142857, 101.606666) to (3.076, 101.607)
Departure: 2025-10-27 08:00:00

Route 1:
  Estimated Arrival: 2025-10-27 09:00:00
  Total Duration: 3600 seconds (60.0 minutes)
  Fare (Adult/Cash/Cashless/Concession): RM2.4/RM2.4/RM2.0/RM1.2
  Legs:
    Leg 1 (Transit):
      Route: MRT Putrajaya Line (PYL)
      Departure: 2025-10-27 08:05:00
      Arrival: 2025-10-27 08:45:00
      Stops:
        - Station A (ID: S123)
        - Station B (ID: S124)

Error handling & logging

  • Handlers return descriptive error strings on network, parsing or API errors.
  • get_stations and get_journey_planner configure logging at DEBUG level for runtime diagnostics.

Development notes

  • The code uses Python 3.10+ union type syntax (dict[str, Any] | None).
  • Add tests to validate parsing of edge cases: missing fields, malformed coordinates, alternative boolean encodings for isOKU, placeholder stop objects.
  • When the MYRAPID API changes structure, update parsing logic in the corresponding handlers.

Contributing

  • Improve parsing robustness, add unit tests, or expand formatting to include additional fields returned by the API.

工具与能力

工具数量

3

资源数量

0

提示词数量

0

能力标签

公共交通Python本地部署地理服务票价查询站点搜索行程规划

数量来自来源目录的标注,具体工具清单以官方文档为准。

典型使用场景

查资料带出处

把网页、论文和文档的检索结果连同链接一起带回对话。

站内知识检索

在自己的文档库里做语义搜索,比关键词更贴题。

事实核对

交叉多个来源确认一条信息,减少模型凭记忆作答。

选择建议

值得选的地方

  • 只提供 3 个工具,职责集中,接入后不容易误操作。
  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。
  • 公开说明写得比较完整,接入前能看清能力边界。

先想清楚的地方

  • stdio 方式要求本地装好 Python,换机器要重新装一遍。
  • 第三方目录整理,版本更新和行为细节以官方仓库为准。

更适合

  • 需要在搜索检索场景里让模型直接调用外部能力的人。
  • 想先快速试一下、能接受在本地跑服务的人。

不太适合

  • 完全不想在本地装环境的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

5 个同类
MCP Server工具数传输方式安装命令收录来源最后核验
RapidKL MCP

MCP World · 本页

3stdio有1 个2026-05-17
Baidu Netdisk

MCP World

未标注未说明未标注1 个2026-05-17
Sequentialthinking

MCP.so

1SSE有2 个2026-05-17
Brave Search 433812ff

MCP World

2未说明未标注1 个2026-05-17
mindsdb (430e18)

MCP World

0未说明有1 个2026-05-17

按同分类和工具数量挑出最接近的几条,字段以各自详情页为准。

常见问题

5 条

RapidKL MCP 怎么安装?

公开资料给出的安装命令是 python -m pip install httpx mcp,运行环境为 Python。装完后按客户端要求写进 MCP 配置,重启客户端生效。

RapidKL MCP 怎么在 Claude Desktop、Cursor 里配置?

它是stdio 本地进程,客户端配置里要写启动命令和参数,运行环境是 Python;保存后完全退出客户端再打开,配置才会生效。

RapidKL MCP 收费吗?

本站只整理公开资料,不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

RapidKL MCP 需要 API Key 吗?

公开资料标注为无需认证,装好就能连;如果实际调用时报鉴权错误,按官方文档补上凭据。

RapidKL MCP 支持哪些客户端?

公开资料没有标注具体客户端;能配置本地 MCP 命令的客户端都能接,配置方式参照官方文档。

来源信息

继续浏览同类 MCP