Medical Billing MCP
Enables AI assistants to look up medical billing codes, denial reasons, and payer rules for faster claim resolution.
README
🏥 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 |
|---|---|
lookup_icd10 |
Look up diagnosis codes |
lookup_cpt |
Look up procedure codes |
lookup_modifier |
Understand when to use modifiers (25, 59, etc.) |
lookup_denial |
Understand denial codes + how to fix them |
lookup_payer |
Get payer-specific rules (timely filing, etc.) |
lookup_bundling |
Check if codes are bundled together |
This is a knowledge layer. You bring your own payer connectivity (Stedi, Availity, Change Healthcare, etc.).
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 --test
Option 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_mcp
Configure 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.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.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.md
License
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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。