Health
Data source: CMS Provider Data Catalog (data.cms.gov)
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"}}}'
REST API
API Root
https://context.gnist.ai/rest/cms/
5 endpoints available:
GET /rest/cms/search_hospitalsGET /rest/cms/get_hospital_qualityGET /rest/cms/search_providersGET /rest/cms/get_spendingGET /rest/cms/report_feedback
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())
Command Line
Command
gc cms
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (5)
search_hospitalsSearch US hospitals by name, city, or state using CMS General Information data.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | any | optional | Free-text search string matched against hospital name and city (e.g. "Mayo Clinic", "Houston"). |
state | any | optional | Two-letter US state code to filter results (e.g. "CA", "NY", "TX"). |
limit | integer | optional | Maximum number of hospitals to return (1-50, default 10). (default: 10) |
get_hospital_qualityGet quality measures for a specific hospital by its CMS facility ID.
| Parameter | Type | Required | Description |
|---|---|---|---|
facility_id | string | required | 6-digit CMS facility ID for the hospital (e.g. "050324"). Use search_hospitals to find IDs. |
search_providersSearch doctors and clinicians in the NPPES NPI Registry.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | any | optional | Provider last name or organization name to search (e.g. "Smith", "Cleveland Clinic"). |
state | any | optional | Two-letter US state code (e.g. "OH", "FL"). |
specialty | any | optional | Medical specialty to filter by (e.g. "Internal Medicine", "Cardiology"). |
limit | integer | optional | Maximum number of providers to return (1-50, default 10). (default: 10) |
get_spendingGet Medicare spending per beneficiary for a hospital.
| Parameter | Type | Required | Description |
|---|---|---|---|
facility_id | string | required | 6-digit CMS facility ID for the hospital (e.g. "050324"). Use search_hospitals to find IDs. |
report_feedbackReport a bug, feature request, or general feedback for this data source.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |