# medprice.ai > Illuminating medical markets — real hospital procedure pricing, surfaced through AI assistants via the Model Context Protocol (MCP). medprice.ai provides real hospital charge data for medical procedures, across a large and growing network of hospitals nationwide — see https://medprice.ai/hospitals for the live, current, full directory grouped by state. ## What it does - Returns min, max, average, and median costs for any procedure by billing code, for a specific hospital - Website pages at https://medprice.ai/codes/{codeType}/{code} (e.g. https://medprice.ai/codes/CPT/27447) compare pricing for one billing code across every hospital in the network that reports it - Each code page can be filtered to a single billing methodology at https://medprice.ai/codes/{codeType}/{code}/{methodology} (e.g. https://medprice.ai/codes/CPT/27447/fee-schedule) — valid {methodology} values: case-rate, fee-schedule, per-diem, percent-of-total-billed-charges, other - Data covers both inpatient and outpatient procedures - Tracks costs across multiple payment methodologies (case rate, fee schedule, per diem, percent of billed charges, etc.) - Accessible via six MCP tools: list_hospitals, get_hospital_chargemaster_cost, batch_get_hospital_chargemaster_cost, list_hospital_code_costs, list_code_types and list_codes (see "MCP tools" below) ## How to connect ### Claude Code ``` claude mcp add --transport http mcp-medprice-ai https://mcp.medprice.ai/mcp ``` ### OpenAI Codex ``` codex mcp add medprice-ai --url https://mcp.medprice.ai/mcp ``` ### OpenAI app listing Open the official medprice.ai listing in ChatGPT's Plugin Directory: https://chatgpt.com/plugins/plugin_asdk_app_6a4d477c3fe0819182f242110de5ff14 Select Connect if available, complete sign-in or OAuth, then use the app in chat with @ mentions or by selecting + and then More. OpenAI has migrated app discovery to the Plugin Directory, and availability can depend on plan, workspace settings, role, and region. ### Claude Desktop (claude_desktop_config.json) ```json { "mcpServers": { "medprice-ai": { "url": "https://mcp.medprice.ai/mcp" } } } ``` ## Example queries - "What hospitals does medprice.ai cover?" - "What does Medical City Alliance charge for a knee replacement?" - "How much does an MRI brain with contrast cost at Trinity Medical Center?" - "Compare knee replacement costs across all hospitals in the network" - "What is the average cost of CPT 99213 at University of Iowa Health Care?" - "What does Meriter Hospital charge for a knee replacement under a fee schedule?" ## MCP tools ### list_hospitals Returns the hospitals supported by the medprice.ai API, with their hospital_id (opaque handle), EIN, name, structured_locations (addresses with geocoded coordinates where available), last_updated_on, and revision history (with per-revision has_payer_data, revision_id, and added_at - when medprice ingested that revision). Call this first to discover a hospital's hospital_id. Parameters: - page_size: (optional) maximum number of hospitals to return. Defaults to 500, capped at 500. - page_token: (optional) opaque token from a previous response's next_page_token. Omit for the first page. If next_page_token is non-empty the result was truncated: keep calling with it until it is empty, and compare total_count against the number accumulated before concluding anything about coverage. ### get_hospital_chargemaster_cost Looks up cost stats (min, max, average, median) for a billing code at a single hospital. Parameters: - hospital_id: (required) opaque hospital identifier from list_hospitals. - code_type: (required) code system the code belongs to, e.g. "APR-DRG", "CDM", "CPT", "HCPCS", "MS-DRG", "RC". Hospitals may support additional proprietary code types not listed here. - code: (required) the procedure code (e.g. "27447", "70553") - methodologies: (optional) list of pricing methodologies, one result per entry. Valid values: - "case rate" — flat fee per case regardless of services used - "fee schedule" — fixed price per individual service - "per diem" — daily rate for inpatient stays - "percent of total billed charges" — payer pays a percentage of the hospital's billed amount - "other" — other methodologies - Omit or pass an empty list to aggregate across all methodologies (recommended for general queries) - revision_id: (optional) a revision_id from list_hospitals to price a specific past revision instead of the latest. ### batch_get_hospital_chargemaster_cost The batch counterpart to get_hospital_chargemaster_cost: prices several (code_type, code) pairs at one hospital in a single call. Capped at 100 codes per call. Takes hospital_id, codes (each with code_type, code and optional methodologies) and an optional revision_id; results come back in request order. ### list_hospital_code_costs Returns cost stats for every hospital that reports a given code_type/code, so one call answers cross-hospital questions such as "which hospital has the cheapest MS-DRG 652?". Parameters: - code_type, code: (required) - methodology: (optional) one of the methodology values above. Omit to aggregate across all. - min_sample_count: (optional) only return hospitals whose price is backed by at least this many billing records. 0 (default) disables the filter. - page_size / page_token: (optional) paging, up to 500 per page. If next_page_token is non-empty, keep calling with it until it is empty; total_count gives the full size of the result set. ### list_code_types Lists every code_type (e.g. CPT, MS-DRG) with catalogued cost data, with each type's distinct code count and total hospital reports. Use it to discover which code systems have data before calling list_codes. ### list_codes Lists the codes catalogued under a code_type, paginated, with each code's raw description and the number of hospitals reporting it. Pass query to text-search codes and descriptions (descriptions are searched for queries of 4+ characters) instead of listing a whole code_type, and hospital_id to restrict results to codes that one hospital reports. Supports sorting (by code, hospital count, sample count, or text relevance). ## Links - Website: https://medprice.ai - Browse all billing codes: https://medprice.ai/codes - Full hospital directory (grouped by state): https://medprice.ai/hospitals - Cross-hospital pricing comparison by billing code: https://medprice.ai/codes/{codeType}/{code} - Same, filtered to one billing methodology: https://medprice.ai/codes/{codeType}/{code}/{methodology} - MCP server: https://mcp.medprice.ai/mcp