Partner onboarding

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.

Jump to: AI IDEs (Claude Desktop / Cursor / …) TypeScript / Node Python curl Badge Router prompts Verify

Public SKU

mcp.medigami.com/public/sse — free, no auth

Intel SKU

mcp.medigami.com/intel/sse — Bearer, metered

Status

status page · JSON

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

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:

Pricing + SLA

Support

Everything on this page is free and requires no contract. The intel SKU (higher rate limits + enterprise-only tools) is the only path that needs a signed MSA.