insync-mcp
MCP server for an InSync Healthcare (Qualifacts) patient portal — the
behavioral-health portals at https://<practice>intouch.insynchcs.com (the
owner's is pfbhintouch). It reads appointments, medications, allergies, secure
messages, forms, surveys, documents, profile and account balance; downloads
portal files; uploads an insurance-card image; and sends secure messages,
refill requests, appointment requests and cancellation requests.
This project was developed and is maintained by AI. Use at your own discretion.
It reads personal health information, and only ever from the signed-in user's own account.
Not read-only
This server is not read-only. Alongside the reads it:
-
downloads message attachments and account documents (a download changes no
portal state and has an inverse — not persisting — so the download tools are
still annotated readOnly);
-
uploads an insurance-card image to your own profile — a real write the
practice sees, with no delete/undo through this server, so it is annotated
destructive and confirm-gated (see below);
-
insync_get_message opening an unread message can mark it read, which
the practice can see and which has no inverse. That tool is annotated
destructive and gated behind allow_mark_read (default false): until you
pass it, the tool returns the list-row metadata and a note, and never fetches
the detail;
-
sends things to the practice, each one confirm-gated and annotated
destructive, because none can be unsent or withdrawn through this server:
| Tool | What it sends | Look up first with |
|---|
insync_send_message | a new secure message to a practice group | insync_list_message_recipients |
insync_reply_message | a reply to a message (refuses an unread one unless allow_mark_read) | insync_list_messages |
insync_request_refill | a refill request for current medications | insync_get_refill_options |
insync_request_appointment | an appointment request in an open slot (the practice confirms it) | insync_find_appointment_slots |
insync_cancel_appointment | a cancellation request with a reason (the practice reviews it) | insync_list_appointments |
Not built: message attachments and patient signatures on messages, the
"flexible window" appointment request, withdrawing a request, payments, and
form submission.
Reading a message
insync_get_message returns the body as plain text by default: lines, numbered
items and link targets kept. format: "markdown" keeps bold, lists, tables and
links with their text as well. Either way, text the sender hid from view
(display:none) is dropped. Messages you send are plain text.
Two ways to authenticate
| Mode | When | Credentials held |
|---|
| Bridge-less (default) | INSYNC_USERNAME + INSYNC_PASSWORD set | your portal password, in memory for the process |
| Browser bridge | no credentials configured | none |
Bridge-less signs in server-side with its own cookie jar — no browser, no
extension — which is what makes hosting possible. The password login was
live-verified on 2026-10-28 against the owner's practice: a single POST to
Login/userLogin, no MFA, no device challenge. A rejected sign-in is never
retried automatically, because the portal counts failed attempts toward an
account lockout. The cookie jar lives in memory for the life of the process;
nothing is written to disk.
Browser bridge relays requests through your own signed-in portal tab via the
fetchproxy bridge and the ContextMint
Bridge extension, reusing that session. It holds no credentials at all — its
one virtue — so prefer it unless you specifically want the hosted, bridge-less
path.
Selection is automatic: server when both credentials are set, otherwise
fetchproxy. INSYNC_TRANSPORT=server|fetchproxy forces one.
Storage configuration is held, never used directly
The login response carries some object-storage configuration. This server
never uses it to talk to object storage directly — all file transfer goes
through the portal's own session-authorized endpoints, so every read and write
stays under the portal's per-patient authorization. Any such configuration is
captured onto the session only, and is scrubbed by value from every tool
result, error and log. A download URL is refused unless it stays on
*.insynchcs.com.
Writes are unverified on the wire