Rxlocal Mcp

io.github.chrischall由 GitHub 帳號 chrischall 發布v0.3.1更新於 Nov 4, 2026

RxLocal pharmacy portal MCP — prescriptions, messages, confirm-gated refill requests

已驗證STDIO僅桌面位置與生活溝通與協作

概覽

AI 產生的概覽

讀取 RxLocal 藥局入口網站的處方、續領選項與訊息,並可在確認機制把關下申請續領或傳訊息給藥局。

可以做什麼
  • 列出在檔處方,含續領狀態、是否需重新開立,以及完整或原始檢視
  • 查詢各藥局據點的續領選項:自取、配送、郵寄、取藥時間與行事曆
  • 讀取最近的加密藥局訊息、帳戶資料、年齡門檻、通知與法律文件
  • 檢查工作階段與 API 是否正常
  • 在預覽並取得確認權杖後,為一或多張處方申請續領或請醫師重新開立
  • 傳送純文字加密訊息給主要藥局據點
適用情境
適合透過 RxLocal 病患入口網站管理自己處方的人,讓助理彙整在檔處方、查看續領選項,或在經你核准後準備續領申請或訊息。
執行需求
透過 npx 在本機執行(需 Node.js)。需安裝 ContextMint Bridge 瀏覽器擴充功能、保持已登入 patient.rxlocal.com 的分頁開啟,並核准一次配對碼。環境變數中不設定任何憑證;選用變數 FETCHPROXY_WS_HOST、FETCHPROXY_WS_PORT、FETCHPROXY_IDENTITY_DIR、RXLOCAL_DISABLE_FETCHPROXY、MCP_CONFIRM_MODE 與 MCP_CONFIRM_ELICITATION 可調整橋接與確認機制。
安裝前請注意
涉及健康資料:處方、訊息與帳戶資料會從你的登入工作階段讀出並交給助理。兩個寫入工具尚未在真實入口網站驗證,且只送出一次;遇到 5xx、逾時或連線中斷會回傳 status unknown,重試前應先確認。寫入須先核准預覽與確認權杖。專案由 AI 開發,使用風險自負。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Rxlocal Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

rxlocal-mcp

MCP server for the RxLocal pharmacy patient portal (patient.rxlocal.com, PioneerRx / RedSail Technologies). It reads your prescriptions, refill options and pharmacy messages, and can request refills and message the pharmacy behind a confirm gate, through your signed-in browser tab, reusing your authenticated session via the fetchproxy bridge.

This project was developed and is maintained by AI. Use at your own discretion.

What it can read

ToolReturns
rxlocal_list_prescriptionsPrescriptions on file: drug, Rx number, rxID, pharmacy, last fill, refills remaining, days supply, expiration, prescriber, and whether a refill can be requested now (canRequestRefill) or needs a renewal (requiresRenewal). view: full adds NDC, imprint and ids; view: raw is the whole response.
rxlocal_get_refill_optionsWhat a refill request can choose at a pharmacy location: pickup / delivery / mail, pickup times, the pickup calendar, the pharmacy's address, phone and hours, and its refill disclaimers. Your own addresses and phone are only in view: full/raw.
rxlocal_list_messagesRecent secure messages with the pharmacy, newest first. Never marks anything read; recipient email/phone are always removed.
rxlocal_profileAccount holder's name, email, phone, account type, patient + user IDs
rxlocal_age_gateWhether the account holder is under the portal's minimum age
rxlocal_notificationsThe portal's most-relevant notification banner state
rxlocal_legalThe Terms of Use or Privacy Policy document
rxlocal_healthcheckWhether the session and API are working

Pharmacy-written text (message bodies, refill disclaimers) comes back inside an untrusted-content envelope: it is data, never instructions.

How it reaches your data

The bridge reads two things from your signed-in tab: the short-lived bearer the web app holds, and the tab's session-id cookie. The server then calls the API itself, adding the portal's public portalid header (the web app's patientPortalID constant, sent on every request). Prescriptions and messages need all three; without the header or the cookie they answer 401. Earlier versions sent neither and concluded the data was unreachable; it is not (verified live, read-only, 2026-10-29).

The server reuses the tab's session and never opens one of its own: the portal keeps one session per user, and starting a new one signs your browser out. After a 401 it re-reads the tab on the next call, so reloading the tab is enough.

Writes

ToolDoes
rxlocal_request_refillRequests a refill, or a prescriber renewal for a prescription that needs one, of one or more of your prescriptions. You choose pickup, delivery or mail and, for pickup, a time and date. It is checked against the live refill list (each must show canRequestRefill) and that location's options and pickup calendar before the preview. All prescriptions in one request must be yours and at one location.
rxlocal_send_messageSends a plain-text secure message to your primary pharmacy location. No attachments.

UNVERIFIED on the wire. Both sends are derived from the RxLocal web app's JavaScript bundle (POST refill/<groupOwnerID>/v1 and POST Messaging/CreatePatientMessage). Neither has been sent to the live portal yet. An owner-supervised live test will confirm them later. Until then, check the result with rxlocal_list_prescriptions (refillRequestStatus) or rxlocal_list_messages.

Each write is sent once. It is never retried on a 429, and a 401 fails without re-reading the token or replaying the request. If a write was sent but the answer was a 5xx, a timeout or a dropped connection, the tool reports status: "unknown". That means it may already have gone through, so check before trying again.

Confirm gate

Every write is gated by @chrischall/mcp-utils' confirmWrite, through its defineWrite / registerWrite. The first call reads the portal to validate, sends nothing, and returns a preview + a confirmToken. Only a second call carrying that token sends, and only after you approve the preview. The exact request body and the shown preview are bound into the token, so an argument or portal state that changed since the preview is refused as DRAFT_CHANGED. MCP_CONFIRM_MODE / MCP_CONFIRM_ELICITATION tune this (see the env table).

Setup

No credential is configured in the environment — the server reads the short-lived Keycloak token from the signed-in tab via the ContextMint Bridge browser extension. Install the extension, sign in to patient.rxlocal.com, keep that tab open, and approve the one-time pair code the first tool call prints.

jsonc
// .mcp.json{ "mcpServers": { "rxlocal": { "command": "npx", "args": ["-y", "rxlocal-mcp"] } } }

Environment variables (all optional)

VariablePurpose
RXLOCAL_DISABLE_FETCHPROXYSet to 1 to refuse the browser-bridge read (CI/headless). Every tool then fails, since there is no other credential path.
FETCHPROXY_WS_PORTLocalhost port of the fetchproxy concentrator the extension connects to (default 37149). Shared by every MCP on the machine.
FETCHPROXY_WS_HOSTBind interface for the concentrator, a literal IP (default 127.0.0.1).
FETCHPROXY_IDENTITY_DIRWhere the fetchproxy identity keypair is stored (default ~/.fetchproxy/identity/).
MCP_CONFIRM_MODEConfirm-gate mode for every write (default ask-user). ask-user = preview + confirmToken round-trip; auto lets a capable host confirm in one step; an unrecognised value fails closed (refuse).
MCP_CONFIRM_ELICITATIONon (default) lets the host confirm a write interactively; off forces the confirmToken round-trip.

Shell-only alternative

A lightweight fpx skill ships under skills/rxlocal-fpx/, with no MCP process required. It covers the reads: profile, age gate, prescriptions, refill options, messages and notifications. It sends nothing.

Development

sh
npm installnpm run buildnpm test        # typecheck + vitest, fully mocked, no network

來源:README.md,提交 9ed8611

工具

0
SourceWeft 曾在隔離沙箱中以無憑證方式啟動該軟體包一次,以列出其工具,但未能完成:伺服器未能啟動。

版本歷史

2
  1. v0.3.1最新Nov 4, 2026
  2. v0.2.0Oct 29, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。