GnistAI GnistAI
Log in

CMS Open Data (Medicare & Medicaid)

US hospital quality ratings, provider/clinician search, and Medicare spending data from the CMS Provider Data Catalog — search hospitals by name or state, get quality measures, find Medicare-enrolled doctors, and compare spending per beneficiary.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 5 tools tools 5 5 Health

Data source: CMS Provider Data Catalog (data.cms.gov)

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/cms/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-cms": {
      "url": "https://context.gnist.ai/mcp/cms/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
Shell
curl -X POST "https://context.gnist.ai/mcp/cms/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "get_hospital_quality", "arguments": {"facility_id": "example"}}}'

API REST API

API Root https://context.gnist.ai/rest/cms/

5 endpoints available:

Shell
curl "https://context.gnist.ai/rest/cms/get_hospital_quality?facility_id=example" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/cms/get_hospital_quality",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "facility_id": "example"
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc cms

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (5)

search_hospitals
Search US hospitals by name, city, or state using CMS General Information data.
ParameterTypeRequiredDescription
queryanyoptionalFree-text search string matched against hospital name and city (e.g. "Mayo Clinic", "Houston").
stateanyoptionalTwo-letter US state code to filter results (e.g. "CA", "NY", "TX").
limitintegeroptionalMaximum number of hospitals to return (1-50, default 10). (default: 10)
get_hospital_quality
Get quality measures for a specific hospital by its CMS facility ID.
ParameterTypeRequiredDescription
facility_idstringrequired6-digit CMS facility ID for the hospital (e.g. "050324"). Use search_hospitals to find IDs.
search_providers
Search doctors and clinicians in the NPPES NPI Registry.
ParameterTypeRequiredDescription
nameanyoptionalProvider last name or organization name to search (e.g. "Smith", "Cleveland Clinic").
stateanyoptionalTwo-letter US state code (e.g. "OH", "FL").
specialtyanyoptionalMedical specialty to filter by (e.g. "Internal Medicine", "Cardiology").
limitintegeroptionalMaximum number of providers to return (1-50, default 10). (default: 10)
get_spending
Get Medicare spending per beneficiary for a hospital.
ParameterTypeRequiredDescription
facility_idstringrequired6-digit CMS facility ID for the hospital (e.g. "050324"). Use search_hospitals to find IDs.
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related