MCP Server

Medical Cost Data for AI Assistants

Give Claude, ChatGPT, and other AI assistants direct access to 21,000+ medical procedure costs, drug prices, and injury treatment estimates using the Model Context Protocol.

What is MCP?

The Model Context Protocol (MCP) is an open standard that lets AI assistants connect to external data sources and tools. Instead of pasting data into a chat, the AI can directly query our medical costs database to answer your questions with real, cited data.

Real-Time Lookups

Ask Claude "How much does a knee MRI cost?" and get actual Medicare rates, not hallucinated numbers.

State Comparisons

Compare costs across states and see how geographic factors affect pricing.

Government Data

All costs from CMS Medicare fee schedules, CDC, and NHTSA -- not estimates or guesses.

Installation

1. Clone and build

git clone https://github.com/david-568/medical-costs-api.git
cd medical-costs-api/mcp-server
npm install
npm run build

2. Configure Claude Desktop

Add this to your Claude Desktop config file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows):

{
  "mcpServers": {
    "medical-costs": {
      "command": "node",
      "args": [
        "/path/to/medical-costs-api/mcp-server/dist/index.js"
      ]
    }
  }
}

Update the path to match where you cloned the repo.

Or: Configure Claude Code (CLI)

claude mcp add medical-costs node /path/to/medical-costs-api/mcp-server/dist/index.js

3. Start using it

Restart Claude Desktop. You should see the medical-costs tools in the tool list. Try asking: "How much does a knee MRI cost in California?"

Available Tools

lookup_procedure_cost

Look up the cost of a medical procedure by CPT/HCPCS code or search by name. Returns Medicare facility/non-facility rates, hospital outpatient costs, and RVU data.

Parameters

query (string) -- CPT/HCPCS code or search term (e.g., "99213", "knee replacement")
state (string, optional) -- Two-letter state code for geographic pricing
Example prompt

"How much does a knee MRI cost in California?"

get_condition_treatment_cost

Get treatment costs for a medical condition or injury with cost ranges by severity (mild/moderate/severe) and associated procedures.

Parameters

condition (string) -- Condition name (e.g., "whiplash", "concussion", "acl-tear")
severity (enum, optional) -- "mild", "moderate", or "severe"
Example prompt

"What does it cost to treat a concussion?"

compare_costs_by_state

Compare procedure costs across different U.S. states with Medicare and estimated commercial rates.

Parameters

procedure_code (string) -- CPT or HCPCS code (e.g., "27447")
states (string[]) -- Array of state codes (e.g., ["CA", "NY", "TX"])
Example prompt

"Compare knee replacement costs between California, New York, and Texas"

estimate_crash_injury_costs

Estimate medical costs from a car crash by severity. Returns weighted cost estimates, likely injuries, and NHTSA statistics.

Parameters

severity (enum) -- "minor", "moderate", "serious", "severe", or "critical"
state (string, optional) -- Two-letter state code (default: CO)
Example prompt

"How much does a serious car crash cost in medical bills?"

search_drug_price

Look up prescription drug or injectable pricing from Medicare/CMS data.

Parameters

drug_name (string) -- Drug name or HCPCS J-code (e.g., "adalimumab", "J0129")
Example prompt

"What does a Botox injection cost under Medicare?"

get_medical_cost_statistics

Get a database overview: total procedures, injury categories, geographic coverage, and data sources.

Example prompt

"What medical cost data is available?"

HTTP/SSE Mode

For web-based MCP clients, you can run the server in HTTP mode with Server-Sent Events:

npm run start:http
# Server runs on http://localhost:3100
# SSE endpoint: http://localhost:3100/sse
# Messages endpoint: http://localhost:3100/messages

Set the PORT environment variable to change the default port.

Data Sources

CMS Medicare Fee Schedule

21,000+ procedure costs from the CY 2026 Physician Fee Schedule with national and geographic rates.

CMS Hospital Outpatient

Hospital outpatient department rates for facility-based procedures.

CDC WISQARS

Cost of injury data including lifetime costs for severe injuries and trauma.

NHTSA Crash Cost Studies

Economic impact of motor vehicle crashes with severity-based cost estimates.

No API key required

All medical cost data is free and sourced from public U.S. government datasets.

Browse Procedures on the Web

My Cost List

0 procedures

No procedures added yet

Click "Add to My List" on any procedure to start building your estimate.