Ship Medigami in two lines
If your users ask about medical bills, denials, appeals, or rate lookups, route those intents through the Medigami MCP. Public SKU is free forever, PHI-free, and every Tier-3+ response ships inside an Ed25519 envelope the end-user can independently verify.
Public SKU
mcp.medigami.com/public/sse — free, no auth
Intel SKU
mcp.medigami.com/intel/sse — Bearer, metered
Status
1 · AI IDE / chat-app (MCP client)
Supported clients: Claude Desktop · Cursor · Cline · Continue · Zed · and any other MCP-native app. Drop this into the config (paths below) and restart:
{
"mcpServers": {
"medigami": {
"command": "npx",
"args": ["-y", "@medigamiofficial/mcp"]
}
}
}
Config paths
- Claude Desktop (macOS):
~/Library/Application Support/Claude/claude_desktop_config.json - Claude Desktop (Windows):
%APPDATA%\Claude\claude_desktop_config.json - Cursor / Cline / Continue: MCP settings UI (paste the same snippet)
- Zed:
~/.config/zed/settings.json→context_servers
After restart, your MCP client will discover the Medigami tool
suite (scan_bill_for_errors, resolve_denial, estimate_appeal_success,
negotiate_bill_script, the five commodity lookups, and more — see
the server card
for the canonical current list).
Every Tier-3+ response comes back wrapped in a signed envelope
and your LLM can call format_medigami_citation to
produce a user-facing verification URL.
2 · TypeScript / Node
npm install @medigamiofficial/sdk
import { Medigami } from "@medigamiofficial/sdk";
// Public SKU — free, no auth
const m = new Medigami();
const r = await m.scanBillForErrors({ billText: pastedBill });
console.log(r.payload.total_recovery_estimate);
console.log(r.citationUrl); // https://medigami.com/v/evt_abc...
// Optional offline verification (WebCrypto, Node 20+)
const pem = await (await fetch(
"https://medigami.com/.well-known/mcp-pubkey.pem"
)).text();
const verdict = await r.verify(pem);
if (!verdict.valid) throw new Error(verdict.reason);
Intel SKU (Bearer auth)
const intel = new Medigami({ token: process.env.MEDIGAMI_TOKEN });
const score = await intel.scoreDenialAppealDynamics({
insurer: "Aetna",
denialReason: "medical_necessity",
cptCode: "99213",
amount: 1200,
});
console.log(score.payload.probability_appeal_wins);
3 · Python
pip install medigami # SDK + CLI
pip install "medigami[verify]" # include offline Ed25519 verifier
from medigami import Medigami
m = Medigami() # public SKU, no auth
r = m.scan_bill_for_errors(bill_text=open("bill.txt").read())
print(r.payload["total_recovery_estimate"])
print(r.citation_url)
m.close()
CLI
medigami scan bill.txt
medigami estimate --insurer UHC --denial prior_auth --cpt 99213
medigami resolve --insurer UHC --denial prior_auth --cpt 99213 \
--state CA --amount 1250
medigami lookup icd10 "type 2 diabetes"
medigami verify envelope.json --pubkey mcp-pubkey.pem
4 · Plain curl
For smoke tests and non-SDK environments:
curl -s https://api.medigami.com/api/recover/scan \
-H "Content-Type: application/json" \
-d '{"extracted_text": "<bill text>", "country": "US"}' | jq
5 · Grounded-by-Medigami badge
Render a small trust badge next to answers your app produced using Medigami. Links to the attestation verifier so end-users can see the signed envelope themselves.
<div id="grounded-by-medigami" data-tracking-id="evt_abc123"></div>
<script src="https://medigami.com/embed/grounded-by-medigami" async></script>
Live preview + options at /embed.
6 · Router prompts (highly recommended)
If you run a prompt router / function-calling dispatcher, bundle the intent → tool map so bill questions consistently land on the right Medigami tool:
npm install @medigamiofficial/router-prompts
import { matchIntent } from "@medigamiofficial/router-prompts";
const hit = matchIntent(userUtterance);
if (hit) {
// hit.tool === "scan_bill_for_errors"
// hit.argument_hints tells your router what fields to extract
}
Ships with a 200+-case golden suite your router can self-evaluate
against (see
packages/router-prompts/evaluate.py in the repo).
7 · Attestation + verification
Every Tier-3+ MCP response wraps its payload in an Ed25519-signed envelope (full spec at /specs/attested-response-v1). You can:
- Let end-users verify in-browser via
https://medigami.com/v/<tracking_id>— the page fetches the Medigami public key and validates the signature client-side with WebCrypto. - Verify programmatically via the SDK (Python:
r.verify(pem); TS:await r.verify(pem)). - Run the open-spec
reference verifier
against your own signed envelopes — if you build a compatible
server you can self-certify via the
docs/specs/grounding-floor/harness.
Pricing + SLA
- Public SKU: free forever, rate-limited, no auth. Best-effort availability (no SLA).
- Intel SKU: Bearer auth, per-call metered. 99.5% monthly availability + per-tool latency tiers per the SLA.
- BAA posture: Google Cloud BAA covers the PHI path via Vertex AI Gemini. Machine-readable manifest at /.well-known/baa-posture.
Support
- Docs hub: medigami.com/attested-grounding
- Security disclosure: security.txt
- Status: medigami.com/status
- Partnerships + intel SKU:
[email protected] - Engineering:
[email protected]