cpt-analysis-mcp-server
Connects to a SQLite database containing healthcare claims data, CPT codes, payer rates, and denial reasons, enabling natural-language analysis of CPT codes, reimbursement rates, payer performance, and denial patterns.
Click on "Install 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., "@cpt-analysis-mcp-serverCompare payer rates for surgery procedures"
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.
Healthcare CPT Code Analysis — MCP Server
An MCP (Model Context Protocol) server that connects Claude Desktop to a healthcare claims database, enabling natural-language analysis of CPT codes, reimbursement rates, payer performance, and denial patterns.
Built to demonstrate how MCP bridges the gap between AI assistants and domain-specific data systems in the healthcare/PBM space.
Architecture
Claude Desktop MCP Server (Python) SQLite Database
┌──────────────┐ JSON-RPC ┌─────────────────┐ ┌───────────────┐
│ │◄──── stdio ────►│ │◄── queries ──►│ cpt_codes │
│ User asks │ │ 6 Tools │ │ payers │
│ questions │ │ 3 Resources │ │ payer_rates │
│ in plain │ │ 2 Prompts │ │ claims (10K) │
│ English │ │ │ │ denial_reasons│
└──────────────┘ └─────────────────┘ └───────────────┘How it works:
Claude Desktop starts this server as a subprocess
The server announces its tools (functions Claude can call)
When you ask a question, Claude decides which tool(s) to use
The server queries SQLite and returns structured results
Claude interprets the data and responds in natural language
Related MCP server: MCPDB - Database Access MCP Server
What's Inside
Tools (Functions Claude Can Call)
Tool | Purpose | Example Question |
| Get details for a specific CPT code | "What is CPT 27447?" |
| Filter and search claims data | "Show me denied surgery claims over $5000" |
| Compare rates across payers | "How do payers compare for radiology rates?" |
| Find pricing outliers | "Where are we billing way above the allowed amount?" |
| Investigate denial patterns | "What are the top denial reasons for Aetna?" |
| Side-by-side payer comparison | "Which payer pays the most for cardiac procedures?" |
| Revenue and collection reporting | "Show me financials by category for Q2" |
Resources (Context Claude Can Read)
schema://claims-database— Full database schema with column descriptionsschema://cpt-categories— CPT code category reference with rate rangesdata://summary-stats— Quick overview of the entire dataset
Prompts (Structured Analysis Templates)
analyze-claim— Step-by-step analysis of a specific claimrate-review— Comprehensive payer/category rate review for contract negotiations
Dataset
70 CPT codes across 5 categories (E&M, Surgery, Radiology, Pathology, Medicine)
7 payers (5 commercial + Medicare + Medicaid)
10,000 claims with realistic denial patterns (~15% denial rate)
490 payer rate schedules (7 payers × 70 codes)
Medicare rates based on 2024 CMS Physician Fee Schedule
CARC denial reason codes from real 835 remittance standards
Setup
Prerequisites
Python 3.11+
Claude Desktop (with MCP support)
Install
git clone https://github.com/Ishaan24687/cpt-analysis-mcp-server.git
cd cpt-analysis-mcp-server
pip install -r requirements.txtSeed the Database
python -m src.seed_dataThis creates cpt_analysis.db with all reference data and synthetic claims.
Connect to Claude Desktop
Open Claude Desktop settings
Go to Developer > Edit Config
Add the server config from
claude_desktop_config.json:
{
"mcpServers": {
"cpt-analysis": {
"command": "python",
"args": ["-m", "src.server"],
"cwd": "/path/to/cpt-analysis-mcp-server"
}
}
}Restart Claude Desktop
You should see "cpt-analysis" in the MCP tools list (hammer icon)
Demo Conversations
Once connected, try these in Claude Desktop:
Overview:
"Give me an overview of the claims data"
CPT Lookup:
"What is CPT 27447 and how much do different payers reimburse for it?"
Denial Investigation:
"Which CPT codes have the highest denial rates? What are the main reasons?"
Payer Comparison:
"Compare all payers for surgery procedures — who pays the best and who denies the most?"
Anomaly Detection:
"Find pricing anomalies where we're billing more than 3x the allowed amount"
Contract Negotiation Prep:
"I'm preparing for a rate negotiation with UnitedHealthcare for radiology services. Give me a complete analysis."
Project Structure
cpt-analysis-mcp-server/
├── src/
│ ├── __init__.py
│ ├── server.py # MCP server — tools, resources, prompts
│ ├── database.py # SQLite schema and connection management
│ └── seed_data.py # Realistic healthcare data generation
├── claude_desktop_config.json
├── requirements.txt
├── .gitignore
└── README.mdWhy MCP?
Traditional approach: Copy data from database → paste into ChatGPT → get generic answer.
MCP approach: Ask Claude a question → Claude queries your actual database → get a specific, data-backed answer.
MCP turns an AI assistant from a "smart text generator" into a "smart analyst with direct access to your systems." For healthcare operations teams dealing with claims data, this means faster root cause analysis, better contract negotiation prep, and real-time anomaly detection — all through natural conversation.
Tech Stack
MCP SDK (
mcp[cli]) — Protocol implementationSQLite — Zero-config database (production would use Azure SQL / PostgreSQL)
Python 3.12 — Server runtime
Claude Desktop — MCP host application
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Ishaan24687/cpt-analysis-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server