cpt-analysis-mcp-server

cpt-analysis-mcp-server

Connects Claude Desktop to a healthcare claims database for natural-language analysis of CPT codes, reimbursement rates, payer performance, and denial patterns.

Category
访问服务器

README

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:

  1. Claude Desktop starts this server as a subprocess
  2. The server announces its tools (functions Claude can call)
  3. When you ask a question, Claude decides which tool(s) to use
  4. The server queries SQLite and returns structured results
  5. Claude interprets the data and responds in natural language

What's Inside

Tools (Functions Claude Can Call)

Tool Purpose Example Question
lookup_cpt_code Get details for a specific CPT code "What is CPT 27447?"
query_claims Filter and search claims data "Show me denied surgery claims over $5000"
analyze_reimbursement Compare rates across payers "How do payers compare for radiology rates?"
detect_anomalies Find pricing outliers "Where are we billing way above the allowed amount?"
denial_analysis Investigate denial patterns "What are the top denial reasons for Aetna?"
compare_payers Side-by-side payer comparison "Which payer pays the most for cardiac procedures?"
financial_summary Revenue and collection reporting "Show me financials by category for Q2"

Resources (Context Claude Can Read)

  • schema://claims-database — Full database schema with column descriptions
  • schema://cpt-categories — CPT code category reference with rate ranges
  • data://summary-stats — Quick overview of the entire dataset

Prompts (Structured Analysis Templates)

  • analyze-claim — Step-by-step analysis of a specific claim
  • rate-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.txt

Seed the Database

python -m src.seed_data

This creates cpt_analysis.db with all reference data and synthetic claims.

Connect to Claude Desktop

  1. Open Claude Desktop settings
  2. Go to Developer > Edit Config
  3. 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"
    }
  }
}
  1. Restart Claude Desktop
  2. 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.md

Why 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 implementation
  • SQLite — Zero-config database (production would use Azure SQL / PostgreSQL)
  • Python 3.12 — Server runtime
  • Claude Desktop — MCP host application

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选