Skip to main content
Glama
MyMedi-AI

mymedi-ai-mcp-server

by MyMedi-AI
README.md
# @mymedi-ai/mcp-server

[![npm version](https://img.shields.io/npm/v/%40mymedi-ai%2Fmcp-server)](https://www.npmjs.com/package/@mymedi-ai/mcp-server)
[![license: MIT](https://img.shields.io/badge/license-MIT-teal)](./LICENSE)
[![MCP](https://img.shields.io/badge/MCP-Streamable_HTTP-teal)](https://mymedi-ai.com/mcp-stream)

MCP server for healthcare AI. Connect Claude, Cursor, VS Code, or any MCP client to **32 medical billing + clinical intelligence tools** backed by 81K+ codes and 7 free government data sources — plus DME billing prompts and CMS dataset resources. Six tools work with no API key at all, and everything is read-only and PHI-free by design.

**Claude (web or desktop) users:** Settings → Connectors → **Add custom connector** → paste `https://mymedi-ai.com/mcp-stream` — no authentication, tools work immediately.

## Quick Start

### Register for credits

```bash
curl -X POST https://mymedi-ai.com/bot-marketplace/register \
  -H "Content-Type: application/json" \
  -d '{"name": "my-agent"}'
# → { apiKey, credits }
```

Registration includes free starter credits. Top up with Stripe at
[`/bot-marketplace/credits/pricing`](https://mymedi-ai.com/bot-marketplace/credits/pricing).

### Or try free

```bash
curl "https://mymedi-ai.com/agent/v1/demo?code=99213"
```

Returns basic code metadata (60/hour rate-limited). Paid tier unlocks RVU, Medicare reimbursement (PFS + OPPS), crosswalks, and AI features.

## Works without an API key

Six tools are free and need no API key — install the server with no `MCP_API_KEY` and they work immediately (rate-limited 60/hour/IP):

| Tool | Description |
|------|-------------|
| `pa_required_check` | Medicare DMEPOS prior-auth required check — CMS Required Prior Authorization List (42 CFR 414.234) |
| `denial_code_info` | DME denial code (CARC) explainer — meaning, common causes, fixes, appealability |
| `code_lookup_basic` | Basic medical code lookup — code, type, description, category, active status |
| `reimbursement_basic` | Medicare national PFS payment + DMEPOS fee-schedule ranges (rental/purchase) |
| `order_readiness_checklist` | Blank DMEPOS pre-delivery checklist — SWO elements, F2F/WOPD, prior auth (42 CFR 410.38) |
| `modifier_advisor` | DMEPOS billing-modifier guidance — KX/GA/GY/GZ, RR/NU/UE, laterality |

The other 20 paid tools need an API key from `POST /bot-marketplace/register` (free starter credits).

## Client Setup

### Claude Desktop

Add to `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "mymedi-ai": {
      "command": "npx",
      "args": ["-y", "@mymedi-ai/mcp-server"],
      "env": {
        "MCP_API_KEY": "your-api-key"
      }
    }
  }
}
```

### Cursor / VS Code

Add to MCP settings:

```json
{
  "mymedi-ai": {
    "command": "npx",
    "args": ["-y", "@mymedi-ai/mcp-server"],
    "env": {
      "MCP_API_KEY": "your-api-key"
    }
  }
}
```

### Claude Code

```bash
claude mcp add mymedi-ai -- npx -y @mymedi-ai/mcp-server
```

## Tools (32)

### Free (no API key)
| Tool | Description | Price |
|------|-------------|-------|
| `pa_required_check` | Medicare DMEPOS prior-auth required check (42 CFR 414.234) | free |
| `denial_code_info` | DME denial code (CARC) explainer | free |
| `code_lookup_basic` | Basic code metadata lookup | free |
| `reimbursement_basic` | Medicare national PFS payment + DMEPOS fee-schedule ranges | free |
| `order_readiness_checklist` | Blank DMEPOS pre-delivery checklist (SWO, F2F/WOPD, PA) | free |
| `modifier_advisor` | DMEPOS billing-modifier guidance (KX/GA/GY/GZ, RR/NU/UE, laterality) | free |

### Account (free — uses your sign-in / API key)
| Tool | Description | Price |
|------|-------------|-------|
| `account_status` | Credit balance, usage, and recent transactions | free |
| `buy_credits` | Get a Stripe checkout link to top up credits | free |

### Medical Coding
| Tool | Description | Price |
|------|-------------|-------|
| `code_lookup` | Look up ICD-10, CPT, HCPCS codes (81K+ codes); labeled DMEPOS fee schedule + optional state | $0.001 |
| `code_lookup_batch` | Batch lookup — up to 25 codes per call, per-item results; refunds when every code misses | $0.001/code |
| `code_suggest` | Code suggestions from clinical text (term-search + coverage ranking; refunds on no match) | $0.01 |
| `code_validate` | Validate code correctness and status | $0.005 |
| `code_validate_batch` | Batch validation — up to 25 codes per call, per-item results | $0.005/code |
| `code_crossref` | Cross-reference codes across ICD-10/CPT/HCPCS | $0.02 |
| `code_reimbursement` | Medicare PFS + OPPS reimbursement rates (RVU, $) | $0.01 |
| `fee_schedule_lookup` | DMEPOS fee schedule — rental/purchase, rural/non-rural, by state | $0.01 |

### Prior Auth & Claims
| Tool | Description | Price |
|------|-------------|-------|
| `pa_predict` | Prior-auth approval rate from real cohorts, else CMS requirement facts (no fabricated number) | $0.05 |
| `pa_status` | Check prior auth status | $0.02 |
| `pa_exposure_report` | PA/WOPD catalog exposure report — map up to 100 HCPCS codes against the CMS PA + F2F/WOPD lists with gates and denial-risk flags | $0.01/code |
| `claims_validate` | Pre-submission claims validation | $0.05 |
| `ner_extract` | Extract medical entities from clinical text | $0.02 |
| `compliance_audit` | HIPAA compliance audit | $0.25 |

### Drug Intelligence
| Tool | Description | Price |
|------|-------------|-------|
| `drug_lookup` | OpenFDA drug info + adverse events | $0.01 |
| `drug_interactions` | FDA co-reported adverse event signals | $0.03 |
| `drug_rxnorm` | NIH RxNorm + clinical interactions | $0.02 |
| `drug_enrich` | AI-enriched drug intelligence | $0.03 |

### Providers & Market
| Tool | Description | Price |
|------|-------------|-------|
| `provider_search` | NPI provider directory search | $0.005 |
| `provider_enrich` | AI-enriched provider intelligence | $0.05 |
| `provider_payments` | Sunshine Act physician payments (CMS Open Payments) | $0.02 |
| `market_analysis` | Specialty market analysis by state | $0.10 |

### Clinical & Public Health
| Tool | Description | Price |
|------|-------------|-------|
| `trials_search` | Active clinical trials (ClinicalTrials.gov) | $0.03 |
| `disease_surveillance` | CDC NNDSS case counts + trends | $0.02 |

## Prompts

| Prompt | Arguments | What it does |
|--------|-----------|--------------|
| `decode-denial` | `code` (CARC, e.g. `CO-50`) | Decodes the denial via `denial_code_info`, then builds a fix/resubmit/appeal action plan |
| `order-readiness` | `code` (HCPCS, e.g. `E0466`) | Assembles the blank pre-delivery paperwork checklist via `order_readiness_checklist` |
| `scrub-claim` | `procedureCodes`, `diagnosisCodes?` | Runs `claims_validate` and turns the findings into a prioritized pre-submission fix list |
| `draft-appeal` | `code` (CARC), `procedureCode?` | Decodes the denial and structures a redetermination/appeal letter outline with documents to attach |
| `estimate-reimbursement` | `code` (HCPCS), `state?` | Pulls `fee_schedule_lookup` and explains rental-vs-purchase and rural-vs-non-rural options |

## Resources

| Resource | URI | Contents |
|----------|-----|----------|
| PA Required List | `mymedi://datasets/pa-required-list` | Full CMS Required Prior Authorization List (42 CFR 414.234) with categories and effective dates |
| F2F + WOPD List | `mymedi://datasets/f2f-wopd-list` | Full CMS face-to-face/WOPD list (42 CFR 410.38(d)) plus the universal SWO elements |
| Platform overview | `https://mymedi-ai.com/llms.txt` | What MyMedi-AI is, tool catalog, pricing, integration paths |

## Environment Variables

| Variable | Description | Default |
|----------|-------------|---------|
| `MCP_API_KEY` | API key from registration (omit to use only the free tools) | — |
| `MCP_API_BASE_URL` | API base URL | `https://mymedi-ai.com` |
| `MCP_CONNECTOR_TOKEN` | Shared-egress rate-limit token for hosted multi-user deployments (not needed for individual installs) | — |

## Payment

- **Free tier**: free starter credits on registration — currently enough to run `pa_predict` once and sample the cheap tiers
- **Credit rate**: $0.001 per credit (1 credit = 1 cheapest call)
- **Stripe**: Credit packages at [mymedi-ai.com/bot-marketplace/credits/pricing](https://mymedi-ai.com/bot-marketplace/credits/pricing)

## Credit Balance Headers

Every paid response includes:

| Header | Meaning |
|--------|---------|
| `X-Credits-Remaining` | Balance after this call |
| `X-Credits-Spent` | Credits this call consumed |
| `X-Credits-Warning` | `low` (<50), `critical` (<10), `depleted` (0) |
| `X-Credits-Action-Required` | `top-up` or `top-up-soon` when balance is tight |

Your SDK/agent can watch for these to trigger auto-top-up.

## SDK

For programmatic use without MCP, install the SDK:

```bash
npm install @mymedi-ai/sdk
```

```javascript
import { MyMediAI } from '@mymedi-ai/sdk';

const client = new MyMediAI({ apiKey: 'your-api-key' });
const result = await client.codeLookup('M79.3');
```

## Data Sources

All 7 license-free government sources:

- **ICD-10 / HCPCS / CPT**: CMS PFS RVU 2026 (public domain)
- **NPI provider directory**: CMS (public domain)
- **OpenFDA**: drug labels, adverse events, interactions
- **RxNorm**: NIH normalized drug terminology
- **ClinicalTrials.gov**: active clinical trials
- **CMS Open Payments**: Sunshine Act physician payments
- **CDC NNDSS**: notifiable disease surveillance

## Troubleshooting

- **"Payment required" / 402 responses** — the tool you called is pay-per-call and no API key is configured. Register a free key (free starter credits): `curl -X POST https://mymedi-ai.com/bot-marketplace/register -H "Content-Type: application/json" -d '{"name":"your-agent"}'`, then set `MCP_API_KEY`. The six free tools never need a key.
- **429 / rate-limited on free tools** — free endpoints allow 60 requests/hour per IP. Wait, or register a key and use the paid equivalents.
- **Connector won't connect** — the hosted endpoint is `https://mymedi-ai.com/mcp-stream` over Streamable HTTP. Verify it from a terminal: `npx -y @modelcontextprotocol/inspector --cli https://mymedi-ai.com/mcp-stream --transport http --method tools/list`.
- **Code not found** — lookups expect bare code strings (`E1390`, `99213`, `M79.3`). Denial codes accept `CO-50`, `co50`, or `50`.
- **Stale data concerns** — reference data follows CMS release cycles (HCPCS April 2026, PFS RVU Jan 2026, PA/F2F lists per Federal Register notices); each response carries its list version where applicable.
- **Still stuck?** Email support@mymedi-ai.com or open an issue at https://github.com/MyMedi-AI/mymedi-ai-mcp-server/issues.

## Links

- [API Discovery](https://mymedi-ai.com/agent/v1/discovery)
- [Try the demo](https://mymedi-ai.com/agent/v1/demo?code=99213)
- [Register for API Key](https://mymedi-ai.com/bot-marketplace/register)
- [Pricing](https://mymedi-ai.com/bot-marketplace/credits/pricing)
- [Marketplace homepage](https://mymedi-ai.com/bot-marketplace/)

## License

MIT

TDQS

A3.5/5.0

Scored across 20 tools

Disambiguation4/5

Most tools are clearly distinct by their targeted resource and action (e.g., claims_validate vs. code_lookup), but the multiple drug tools (drug_lookup, drug_enrich, drug_rxnorm) have overlapping purposes that could cause confusion despite descriptive names.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern in snake_case (e.g., claims_validate, code_lookup, provider_search), making the naming predictable and easy to parse.

Tool Count4/5

With 20 tools, the set is slightly larger than the typical well-scoped range, but the breadth of healthcare domains (claims, codes, drugs, providers, compliance, trials) justifies the count; no tool feels superfluous.

Completeness4/5

The tool surface covers a wide range of medical workflows (code management, drug interactions, provider intelligence, compliance, etc.). Minor gaps like claim submission or patient data management exist, but core informational and validation tasks are well covered.

Maintenance

ActivitySlowing
ResponsivenessNo issues