Medical Billing MCP
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., "@Medical Billing MCP What does denial code CO-50 mean and how to fix it?"
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.
π₯ Medical Billing MCP
Open-source billing knowledge for AI assistants
The Problem: A billing staff member gets a denial code. They Google it, read 5 articles, call the payer, wait on hold for 45 minutes, and maybe get an answer. Cost: 30-60 minutes per denial.
The Solution: Ask an AI assistant. Get instant answers with resolution steps. Cost: 2 minutes.
What Is This?
An MCP (Model Context Protocol) server that gives AI assistants like Claude access to medical billing knowledge:
Tool | What It Does |
| Look up diagnosis codes |
| Look up procedure codes |
| Understand when to use modifiers (25, 59, etc.) |
| Understand denial codes + how to fix them |
| Get payer-specific rules (timely filing, etc.) |
| Check if codes are bundled together |
This is a knowledge layer. You bring your own payer connectivity (Stedi, Availity, Change Healthcare, etc.).
Related MCP server: MCP Healthcare Server
Quick Start
Option 1: Docker (Recommended)
# Clone the repo
git clone https://github.com/Kustode-ce/medical-billing-mcp.git
cd medical-billing-mcp
# Run with Docker
docker compose up -d
# Test it
docker compose exec mcp python -m medical_billing_mcp --testOption 2: Local Install
# Clone and install
git clone https://github.com/Kustode-ce/medical-billing-mcp.git
cd medical-billing-mcp
pip install -e .
# Run the server
python -m medical_billing_mcpConfigure Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"medical-billing": {
"command": "python",
"args": ["-m", "medical_billing_mcp"]
}
}
}Config locations:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Restart Claude Desktop.
Usage Examples
Once installed, ask Claude questions like:
Understanding Codes
"What does ICD-10 code E11.9 mean?"
"What's CPT code 99214 and what documentation do I need?"
"When should I use modifier 25?"
Resolving Denials
"I got denial code CO-50. What does it mean and how do I fix it?"
"My claim was denied for 'not medically necessary'. What are the resolution steps?"
Payer Rules
"What's Medicare's timely filing limit?"
"What are Blue Cross MA's known billing issues?"
Bundling
"Are CPT codes 99213 and 36415 bundled?"
See docs/examples/ for sample conversations.
Architecture
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β AI ASSISTANT (Claude) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
β MCP Protocol
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β MEDICAL BILLING MCP β
β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β server.py β β
β β (Tool definitions + routing) β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β handlers.py β β
β β (Lookup functions) β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β data/ β β
β β β β
β β icd10.json cpt.json modifiers.json β β
β β denials.json payers.json bundling.json β β
β β β β
β β [Community contributes here] β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββSee ARCHITECTURE.md for detailed design documentation.
What This Is NOT
Not In Scope | Why | You Already Have |
Claim submission | Not our job | Stedi, Availity |
Eligibility checks | Real-time payer data | Stedi, payer portals |
Prior auth submission | Payer integration | Cohere, eviCore |
EOB/ERA parsing | Clearinghouse function | Stedi, clearinghouse |
PHI storage | Security/compliance | Your EHR/PMS |
We provide knowledge. You provide connectivity.
Data Sources
All data is from public sources:
Data | Source |
ICD-10 codes | CMS |
CPT descriptions | AMA (limited - full requires license) |
HCPCS codes | CMS |
Denial codes (CARC/RARC) | X12 / Washington Publishing |
Payer rules | Public payer manuals |
Contributing
We welcome contributions! The easiest way to help:
Add Payer Rules
Know a payer's quirks? Edit data/payers.json:
{
"bcbs_tx": {
"name": "Blue Cross Blue Shield Texas",
"timely_filing_days": 95,
"known_issues": ["Requires modifier 25 documentation"]
}
}Add Denial Resolution Steps
Fixed a tricky denial? Share how in data/denials.json:
{
"CO-151": {
"description": "Service not covered",
"resolution_steps": [
"Check if service requires prior auth",
"Verify correct place of service code",
"Appeal with medical necessity documentation"
]
}
}See CONTRIBUTING.md for full guidelines.
Project Structure
medical-billing-mcp/
βββ src/medical_billing_mcp/
β βββ __init__.py
β βββ __main__.py
β βββ server.py # MCP server
β βββ handlers.py # Lookup functions
β βββ data/ # JSON knowledge base
β βββ icd10.json
β βββ cpt.json
β βββ modifiers.json
β βββ denials.json
β βββ payers.json
β βββ bundling.json
βββ tests/
βββ docs/
β βββ diagrams/ # Architecture diagrams
β βββ api/ # API documentation
β βββ examples/ # Usage examples
βββ docker/
β βββ Dockerfile
β βββ docker-compose.yml
βββ ARCHITECTURE.md
βββ CONTRIBUTING.md
βββ LICENSE
βββ README.mdLicense
MIT License - see LICENSE
Note: CPT codes are copyrighted by the AMA. This tool provides limited descriptions for educational purposes. For full CPT data, obtain an AMA license.
Support
π Issues: GitHub Issues
π¬ Discussions: GitHub Discussions
Made for the healthcare community β€οΈ
Because providers should spend time with patients, not fighting insurance companies.
Available Tools
6 toolslookup_bundlingC
Check if procedure codes are bundled together
Inputs: codes (required).
lookup_cptA
Look up CPT procedure codes by code or search term
Inputs: code, search.
lookup_denialB
Look up denial codes (CARC/RARC) with resolution steps
Inputs: code, search.
lookup_icd10A
Look up ICD-10 diagnosis codes by code or search term
Inputs: code, search.
lookup_modifierB
Look up billing modifier usage and documentation requirements
Inputs: modifier (required).
lookup_payerC
Look up payer-specific billing rules
Inputs: payer (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 6 tools
Each tool targets a distinct category of medical billing data (CPT, ICD-10, modifiers, bundling, denials, payer rules), with no overlap or ambiguity.
All tools follow the consistent 'lookup_<entity>' pattern using snake_case, making predictable and easy to understand.
6 tools cover the major lookup types for medical billing without being overly numerous or sparse, a well-scoped set.
Core billing lookups (CPT, ICD-10, modifiers, bundling, denials, payer rules) are covered; missing HCPCS or other minor codes are not critical for most scenarios.
Maintenance
Related MCP Connectors
Telehealth support for Claude, Codex and Cursor: investigate cases and connect your tools.
Medical RAG: semantic search for clinical guidelines, drug interactions, diagnoses & EHR data.
Medical RAG: semantic search for clinical guidelines, drug interactions, diagnoses & EHR data.
Connect your team's living knowledge base β docs, data, issues, CRM β to Claude and ChatGPT.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to access Medikode's medical coding platform for validating CPT/ICD-10 codes, performing chart quality assurance, parsing EOBs, calculating RAF scores, and extracting HCC codes from clinical documentation.19 npm2ISC
- AlicenseNot gradedqualityDmaintenanceProvides real-time access to medical data including drug interactions, ICD-10 codes, FDA adverse event reports, and clinical guidelines. It enables LLMs to query databases like openFDA, PubMed, and CMS for pharmaceutical and clinical information.1MIT
- AlicenseAqualityBmaintenanceHealthcare billing AI for agents β 12 tools for ICD-10/CPT/HCPCS code lookup (80K+ codes), prior auth prediction, medical NER, claims validation, HIPAA compliance auditing, and provider/drug enrichment. Pay-per-call via credits or USDC.32187 npm3MIT
- FlicenseNot gradedqualityDmaintenanceEnables LLMs to interact with clinical patient records using tools for document ingestion, structured conversion, patient profiling, record listing, search, and secure Q&A over patient documentation.-