5 AI agents. 3,000+ hospitals. Real Medicare data. Plain English answers in 8 seconds.
Since January 2021, every US hospital must publish a machine-readable price file. Here's what that looks like — vs what ClearPrice gives you from the same data.
Medicare paid $32,039 — 12% below the national median of $36,400.
CMS quality: ★★★★ · 4.7 miles away
vs UCSF Medical Center: $72,100 (+98% vs national)
vs CPMC Van Ness: $61,969 (+70% vs national)
ASC alternative: Highland Surgical Center — $18,200 outpatient. Save ~43% vs hospital inpatient.
From your question to ranked hospital comparison — 5 specialized agents, 1 custom MCP server, MongoDB Atlas.
Each agent is a Gemini 3.5 Flash specialist with a focused job and access only to the tools it needs.
Any query with a procedure name
DRG/APC codes with plain names
Any query with a location (zip/city)
Hospital list with CCNs, distances, coordinates
After hospital list + procedure codes are known
Medicare payments + national median benchmark
After hospital list is known
CMS stars, Leapfrog grades, charity care ratios
When user asks about doctors or surgeons
Physician list with specialties, ratings, NPI
Receives user query, decomposes it into workstreams, dispatches sub-agents in parallel, synthesizes final ranked response.
Checks session context before asking for zip code. Handles ambiguous procedure names with one clarifying question.
Built with @modelcontextprotocol/sdk. Bridges AI agents to MongoDB Atlas and external APIs. Each agent only sees the tools it needs.
Semantic search: natural language → DRG/APC codes
Geocode ZIP/address → $near geo query on hospitals collection
Aggregation pipeline: DRG/APC prices per hospital vs national
ASC outpatient alternative pricing — surface the cheaper option
CMS star ratings + Leapfrog safety grades per hospital
Charity care ratio and uncompensated care from HCRIS
Physicians at a hospital — Atlas Full-Text Search on specialty
Google Places rating for hospital or individual provider
Composite score: price + quality + distance + ratings (weighted)
Persist zip, payer, filters across conversation turns (TTL: 30d)
All public, all free. No synthetic data — ever.
Annual bulk CSV from data.cms.gov. What Medicare actually paid per DRG per hospital — the definitive national benchmark.
Covers knee replacement, cardiac bypass, C-section, hip replacement + hundreds more inpatient DRGs.
Outpatient procedures billed to Medicare: colonoscopy, MRI, CT scan, minor surgeries, infusion therapy.
Combined with ASC data to surface the cheapest setting for each procedure.
CMS 1–5 star ratings, addresses, CCN join key. Every hospital geocoded via Google Maps API.
The primary join key (CCN) connects pricing data to quality ratings and financial data.
More meaningful than CMS stars for surgical procedures. Leapfrog grades focus specifically on preventable errors.
Displayed alongside CMS stars — two independent quality signals for each hospital.
HCRIS data shows charity care costs and uncompensated care per hospital — critical for uninsured patients.
"This hospital forgives ~2% of charges — ask about financial counseling before your visit."
Links doctors to their affiliated hospital via CCN. Free API, no key required.
Combined with CMS Doctors & Clinicians dataset for quality scores and malpractice flags.
Consumer ratings and review counts for hospitals and individual practices. Cached in MongoDB after first lookup.
$200/mo free credit — zero cost at demo scale.
From a ZIP code to a ranked list of nearby hospitals in under 2 seconds.
Google Maps Geocoding API converts any US ZIP code or address to lat/lng.
2dsphere index on hospitals.location enables sub-100ms geo queries across 5,000+ hospitals.
Haversine distance in miles attached to each result. Fed into composite rank_hospitals score.
DRG 470 — Major Knee/Hip Replacement. Medicare payment averages, fiscal year 2024.
| Hospital | City | Medicare Paid | vs National | CMS ★ | Discharges |
|---|---|---|---|---|---|
Good Samaritan Hospital | San Jose, CA | $29,800 | -18% | ★★★☆☆ | 156 |
BEST VALUEKaiser Foundation Hosp – SF | San Francisco, CA | $32,039 | -12% | ★★★★☆ | 187 |
Stanford Health Care | Palo Alto, CA | $48,200 | +32% | ★★★★★ | 445 |
CPMC Van Ness Campus | San Francisco, CA | $61,969 | +70% | ★★★☆☆ | 203 |
UCSF Medical Center | San Francisco, CA | $72,100 | +98% | ★★★★☆ | 312 |
Source: CMS Medicare Provider Utilization and Payment Data: Inpatient, FY2024. These are Medicare average payments — commercial rates are typically 150–300% higher. Individual patient costs vary based on plan, deductible, and network status.
Each MongoDB capability appears in the demo and directly shapes the user experience — not just listed in a README.
"knee replacement" → DRG 470 via semantic similarity — no exact match needed
National benchmark across 260K+ records in a single pipeline stage
Find 20 nearest hospitals to any coordinates — requires 2dsphere index
Hospital name autocomplete, live search-as-you-type across 5,000 hospitals
Sessions auto-expire after 30 days — built-in privacy, zero application code needed
Prerequisite for $near queries. Without this, geo search is a full collection scan
{ procedure_code, hospital_ccn, cms_year } — sub-100ms queries on 260K+ docs
$match → $group → $project → $round — multi-stage price rollup per hospital
100 million Americans carry medical debt. The data to prevent it has been public since 2021. Nobody made it usable — until now.
We believe in transparency. Here's exactly where ClearPrice falls short.
Commercial rates are typically 150–300% of Medicare. Your out-of-pocket depends on your specific plan, deductible, and network.
Medicare payments shown are hospital-level averages. Individual cases vary by complexity, length of stay, and complications.
CMS publishes annually with a 1–2 year lag. Prices reflect 2022–2024 data. Hospital rates change each year.
ClearPrice presents data — it does not recommend providers, procedures, or treatments. Always consult your physician.
Critical Access Hospitals and some rural facilities report differently or are excluded from CMS bulk datasets.
Session context (zip code, payer) is ephemeral with a 30-day TTL. Never linked to patient identity. No login required.
Ask about any procedure, any zip code — 3,000+ hospitals, real Medicare prices, zero signup.
Ask About Hospital Prices →No account required · CMS FY2024 data · Free forever