painprep-mcp-server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@painprep-mcp-server Show me the Medicare checklist for lumbar ESI."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
painprep-mcp-server
An MCP server for interventional pain medicine — Medicare documentation checklists, CPT/ICD-10 coding, ASRA anticoagulation guidance, prior-authorization letters, denial appeals, and research evidence for 85+ procedures.
Built from PainPrep by Keith Schmidt, MD (triple board-certified pain medicine). This server makes PainPrep's clinical reference data available to any MCP client — Claude Desktop, Claude Code, or your own agent.
⚠️ Clinical decision-support, not medical advice. All output must be reviewed by a licensed clinician. Coding, coverage, and anticoagulation guidance change frequently — always verify against current CMS/LCD policy and the latest ASRA guidelines.
What it does
Tool | Tier | Description |
| Free | Full catalog of procedures grouped by category, with ids and headline CPT codes. |
| Free | Primary + add-on CPT codes, work RVUs, facility setting, and billing notes. |
| Premium | Full LCD/Medicare documentation checklist with rationale, suggested wording, denial triggers, and admin checks. |
| Premium | Approved/supportive ICD-10 codes, codes to avoid, and coding tips. |
| Premium | Bleeding-risk tier + per-medication ASRA hold/resume guidance + safety checks. |
| Premium | Generates a payer-ready prior-authorization / medical-necessity letter from patient details + procedure data. |
| Premium | Common denial reasons with frequency, the fix for each, and an appeal letter snippet. |
| Premium | Evidence grade, summary, and key studies with citations. |
| Premium | Audits a note against the required checklist and scores completeness, highlighting commonly-missed gaps. |
Every tool accepts a procedure as a name, id, or CPT code (e.g. "Lumbar/Sacral Interlaminar ESI", "lesi", or "62323"). Unrecognized queries return "did you mean" suggestions.
Related MCP server: PubMed Advanced MCP Server
Quick start (no install)
The fastest way to run the server — npx clones, builds, and launches it in one step:
npx -y github:Goingparabolic/painprep-mcp-serverOr wire it straight into an MCP client (see examples/claude_desktop_config.json):
{
"mcpServers": {
"painprep": {
"command": "npx",
"args": ["-y", "github:Goingparabolic/painprep-mcp-server"],
"env": { "PAINPREP_LICENSE_KEY": "PP-XXXX-XXXX-XXXX" }
}
}
}Install & build (from source)
git clone https://github.com/Goingparabolic/painprep-mcp-server.git
cd painprep-mcp-server
npm install
# Extract the clinical data from the PainPrep source (one-time; see "Data" below)
npm run extract # reads the PainPrep HTML → src/data/*.json
npm run build # compile TypeScript → dist/ and copy data
npm run smoke # end-to-end test (optional)The repository ships with the extracted JSON in
src/data/, sonpm run extractis only needed to regenerate it from an updated PainPrep source.
Use with Claude Desktop
Add to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"painprep": {
"command": "node",
"args": ["/absolute/path/to/painprep-mcp-server/dist/index.js"],
"env": { "PAINPREP_LICENSE_KEY": "PP-XXXX-XXXX-XXXX" }
}
}
}Restart Claude Desktop. You'll then be able to ask things like:
"List the SI joint procedures."
"What are the CPT codes and RVUs for lumbar RFA?"
"Draft a prior-auth letter for a lumbar ESI for a patient with 5 months of L5 radiculopathy who failed 8 weeks of PT."
"My note for an LESI documents MRI findings and pain score — what's missing for Medicare?"
See examples/claude_desktop_config.json for an npx variant.
Use with Claude Code
claude mcp add painprep -- node /absolute/path/to/painprep-mcp-server/dist/index.jsInspect locally
npm run inspect # opens the MCP Inspector against the stdio serverRemote hosting (HTTP / SSE)
The same tools are served over Streamable HTTP for remote deployment (MCPize, a VPS, or serverless):
npm run build
PORT=3000 node dist/http.js
# → POST http://localhost:3000/mcp (GET /health for a liveness check)The HTTP transport is stateless and multi-tenant: the per-customer license key is read from a request header, so a single deployment can serve many customers.
X-PainPrep-License: PP-XXXX-XXXX-XXXX (preferred)
Authorization: Bearer PP-XXXX-XXXX-XXXX (also accepted)Pricing & availability
Tier | Price | Tools included |
Free | $0 |
|
Premium | $29/month | All 9 tools — Medicare checklists, ICD-10 guidance, ASRA anticoagulation checks, prior-auth letters, denial appeals, research evidence, documentation auditing |
Get Premium
Purchase a Premium license key via Stripe:
After subscribing you'll receive a license key in the format PP-XXXX-XXXX-XXXX. Set it in your MCP client configuration (see setup instructions above).
Where to find PainPrep
PainPrep is available on multiple MCP marketplaces:
MCPize Marketplace — deploy-and-subscribe hosting with 80% revenue share
Apify Store — pay-per-event pricing, distributed across Make, n8n, and partner platforms
Self-hosted — clone this repo and run it yourself (see Remote hosting above)
Monetization & licensing
The server has a built-in free / premium split designed to be wired to a billing provider (Stripe, MCPize) with minimal change.
Free tier:
get_procedure_list,get_cpt_codes.Premium tier: everything else.
Premium tools are still discoverable (they appear in tools/list so clients can advertise the upgrade), but calling one without a valid entitlement returns an upgrade prompt instead of data.
Entitlement resolution
Configured via environment variables (stdio) or request headers (HTTP):
Variable | Purpose |
| The customer's license key. |
| Force |
| Comma-separated allowlist of keys treated as valid premium (manual provisioning / testing). |
| Optional HTTP endpoint for remote key verification. When set, keys are validated against this service instead of locally. |
A locally-issued key matches the format PP-XXXX-XXXX-XXXX. For production, point PAINPREP_LICENSE_VERIFY_URL at your billing webhook; it should accept { "key": "..." } and return { "valid": true, "tier": "premium", "expiresAt": "..." }.
The verification layer lives entirely in src/licensing.ts behind a LicenseProvider interface — swap the implementation without touching any tool.
Project structure
painprep-mcp-server/
├── src/
│ ├── index.ts # stdio entry point (Claude Desktop / Code)
│ ├── http.ts # Streamable HTTP entry point (remote hosting)
│ ├── server.ts # builds the MCP server + tier gating
│ ├── licensing.ts # free/premium entitlement (pluggable)
│ ├── data.ts # data loading + procedure resolver
│ ├── types.ts # clinical data types
│ ├── tools/ # one file per MCP tool
│ └── data/ # extracted clinical data (JSON)
├── scripts/
│ ├── extract-data.mjs # parse PainPrep HTML → src/data/*.json
│ ├── copy-assets.mjs # copy JSON into dist/ at build
│ └── smoke-test.mjs # end-to-end MCP client/server test
├── examples/
│ └── claude_desktop_config.json
├── package.json
├── tsconfig.json
├── LICENSE
└── README.mdData
Clinical data is extracted from the PainPrep application source. The extractor
(scripts/extract-data.mjs) locates the embedded data objects (CATEGORIES,
CHECKLISTS, ANTICOAG, MED_NECESSITY, ICD10_REF, DENIAL_TEMPLATES,
CPT_DETAILS, RESEARCH_EVIDENCE), evaluates each literal in a sandbox, and
writes clean JSON to src/data/. To regenerate from an updated source:
npm run extract -- "/path/to/painprep-mvp.html"License
MIT © 2026 Keith Schmidt, MD
The clinical reference content is provided for educational and decision-support purposes only and does not constitute medical advice.
Available Tools
9 toolscheck_documentation_completenessCheck Documentation CompletenessARead-only
Given a procedure and the list of items already documented in the chart, audits the note against the Medicare required-documentation checklist and returns what is satisfied, what is still missing (with rationale and suggested wording), a spotlight on commonly-missed gaps, and an overall completeness score. PREMIUM tier.
Inputs: procedure (required), documented (required).
get_contraindicationsGet Contraindications & Anticoagulation GuidanceARead-only
Given a procedure, returns its bleeding-risk level and the ASRA-aligned anticoagulant/antiplatelet stop-and-restart guidance (per agent), special considerations, and general pre-procedure safety checks. Always verify against the current ASRA guidelines and institutional policy. PREMIUM tier.
Inputs: procedure (required).
get_cpt_codesGet CPT CodesARead-only
Given a procedure (name, id, or CPT code), returns the primary CPT code(s), add-on codes, work RVUs, typical facility setting (office/ASC/hospital), and billing notes. FREE tier.
Inputs: procedure (required).
get_denial_reasonsGet Denial Reasons & Appeal TemplatesARead-only
Given a procedure, returns the common payer denial reasons with their relative frequency, the concrete fix/remedy for each, and a ready-to-adapt appeal letter snippet. PREMIUM tier.
Inputs: procedure (required).
get_icd10_codesGet ICD-10 CodesARead-only
Given a procedure, returns the approved/supportive ICD-10 diagnosis codes, codes to AVOID (common denial triggers), and coding tips for medical-necessity support. PREMIUM tier.
Inputs: procedure (required).
get_medicare_checklistGet Medicare Documentation ChecklistARead-only
Given a procedure, returns the full Medicare/LCD documentation checklist: required documentation items with rationale and suggested chart wording, top denial triggers, and pre-submission admin checks. Flags items that are commonly missed. PREMIUM tier.
Inputs: procedure (required).
get_prior_auth_letterGenerate Prior Authorization LetterBRead-only
Generates a formal, payer-ready prior-authorization / medical-necessity letter for a procedure, merging supplied patient and clinical details with the procedure’s CPT codes, recommended primary ICD-10 code, evidence grade, and necessity rationale. Any field left unspecified is rendered as a clearly-marked fill-in blank. The structured medical-necessity worksheet is appended when available. PREMIUM tier.
Inputs: procedure (required), icd10, payer, memberId, +11 more.
get_procedure_listList Pain ProceduresARead-only
Returns the full catalog of interventional pain medicine procedures, grouped by category. Each entry includes the procedure id (used by other tools), display name, short name, and headline CPT code(s). Optionally filter by a category id or name. FREE tier.
Inputs: category.
get_research_evidenceGet Research EvidenceARead-only
Given a procedure, returns the overall evidence grade, a summary of the evidence base, and the key supporting studies (title, journal, year, and headline finding) for use in notes and appeals. PREMIUM tier.
Inputs: procedure (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool has a clearly distinct purpose: CPT codes, procedure list, Medicare checklist, ICD-10 codes, contraindications, prior authorization letter, denial reasons, research evidence, and documentation completeness audit. No two tools overlap in functionality.
The majority of tools follow a 'get_' + noun pattern (e.g., get_cpt_codes, get_procedure_list). The only exception is check_documentation_completeness, which uses a different verb. This is a minor inconsistency but still readable.
With 9 tools, the surface is well-scoped for the domain of interventional pain medicine procedure preparation. Each tool addresses a specific clinical or administrative need without being overwhelming.
The tool set covers key workflow steps: coding, documentation requirements, contraindications, prior authorization, denial management, and evidence. Minor gaps exist (e.g., no tool for payer-specific policies or patient education materials), but core operations are present.
Related MCP Connectors
Hosted MCP for denial, prior auth, reimbursement, workflow validation, batch scoring, and feedback.
Hybrid human + AI expertise for faster, trusted answers and decisions via MCP Server.
MCP server for detecting and redacting PII (Personally Identifiable Information) in PDF documents.
Academic research MCP server for paper search, citation checks, graphs, and deep research.
Related MCP Servers
- AlicenseAqualityCmaintenanceAn MCP server that provides access to PubMed and NCBI's biomedical literature database for searching articles, retrieving metadata, and tracking citations. It enables users to explore related research, browse MeSH vocabulary, and find free full-text links.6MIT
- AlicenseBqualityDmaintenanceThis MCP server provides 16 intelligent tools for searching, retrieving, and linking biomedical literature from PubMed and PMC. It enables LLM applications to perform complex queries, batch processing, and cross-database linking.168MIT
- AlicenseAqualityBmaintenanceMCP server for healthcare claims workflow scoring, validation, and feedback, supporting denial risk, prior authorization, and reimbursement assessment.8MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server that enables coding agents to search academic papers, ingest full-text PDFs, extract structured details, and manage citations in literature research workflows.33MIT