medicaid-intelligence
This MCP server enables querying Medicaid drug utilization, managed-care enrollment, and state enrollment data from CMS's public Medicaid Open Data API, with tools for trends, market analysis, and program mix without authentication.
README
@pipeworx/medicaid-intelligence
Medicaid drug utilization, managed-care enrollment and state enrollment operations from the CMS Medicaid Open Data API. Keyless.
Tools
| Tool | What it returns |
|---|---|
medicaid_drug_utilization |
Quarterly state utilization rows for one NDC, fee-for-service and managed care kept separate |
medicaid_drug_state_market |
One NDC aggregated across states for a year |
medicaid_drug_trend |
Annual prescriptions, units and gross reimbursement for one NDC from 2020 |
medicaid_managed_care_summary |
Annual state enrollment, and enrollment in any or comprehensive managed care |
medicaid_managed_care_program_mix |
State enrollment by program type — comprehensive MCO, PCCM, MLTSS, behavioral health, dental, transportation, PACE |
medicaid_plan_market |
Bounded sample of managed-care plan/program rows by state, with the authoritative matching-row count |
medicaid_monthly_managed_care |
Monthly Medicaid/CHIP enrollment for one state and participation category |
medicaid_enrollment_operations |
Monthly enrollment and application-processing indicators for one state |
Auth
None. Every endpoint is public CMS infrastructure at data.medicaid.gov.
Reading these numbers correctly
This source is easy to misread, and most of the pack's design is about preventing that. Each
response carries an interpretation field stating the caveat that applies to it.
- Reimbursement is gross, before rebates.
total_amount_reimbursedis what state Medicaid programs paid pharmacies. It is neither manufacturer revenue nor net price — Medicaid rebates are substantial and are not in this data. Treating these figures as a manufacturer's Medicaid revenue overstates it, often by a lot. - Suppressed is not zero. CMS suppresses small cells (
DS,*,--, or asuppression_usedflag). Those becomenull, never0, and a channel that is entirely suppressed is reported as unavailable rather than as an absence of utilization. Tests guard this specifically. - Fee-for-service and managed care are separate measures and stay separate. Adding them is not meaningful for most questions, because a state's mix shifts over time.
- Managed-care program categories overlap and must not be summed. A beneficiary can appear
under comprehensive MCO and MLTSS and behavioral health.
medicaid_managed_care_program_mixsays so in itsinterpretation. - Enrollment counts are state-reported program enrollment, not covered lives attributable to a particular insurer. They do not map cleanly onto a payer's book of business.
- A zero in the plan file can be confidentiality suppression, not an empty plan.
medicaid_plan_marketreturns a bounded sample plus the authoritative total row count, so a short list never implies a small market.
Argument conventions
The underlying datasets disagree about how a state is written — the drug files use two-letter
codes, the enrollment and managed-care files use full names. Both forms are accepted on every
tool and converted internally. This matters: before that, asking the managed-care summary for
"CA" matched nothing and returned a confident total: 0, which reads as "California has no
managed care" rather than as a wrong argument.
ndc takes an exact 11-digit National Drug Code, hyphenated or not. A brand or ingredient name
returns {found:false, reason:'ndc_expected_got_name'} with a hint pointing at openfda_drug_label
or rxnorm to resolve it first.
Failure shapes
A recoverable caller mistake resolves to {found:false, reason, hint} naming what to do instead.
An upstream failure or a genuine defect resolves to {error, hint}. The two are deliberately
distinguishable, so a monitoring sweep can tell "CMS refused us" apart from "we returned garbage".
Data sources
All datasets are queried through the CMS Medicaid Open Data datastore API,
https://data.medicaid.gov/api/1/datastore/query:
- State Drug Utilization Data — one dataset per year, 2020 through 2026
- Managed Care Enrollment Summary and enrollment by program
- Managed Care Plan and Program data
- Monthly Medicaid and CHIP managed-care enrollment
- Medicaid and CHIP enrollment and operations reports
Quick Start
Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
{
"mcpServers": {
"medicaid-intelligence": {
"url": "https://gateway.pipeworx.io/medicaid-intelligence/mcp"
}
}
}
Or connect to the full Pipeworx gateway for access to all 1395+ data sources:
{
"mcpServers": {
"pipeworx": {
"url": "https://gateway.pipeworx.io/mcp"
}
}
}
Using with ask_pipeworx
Instead of calling tools directly, you can ask questions in plain English:
ask_pipeworx({ question: "your question about Medicaid Intelligence data" })
The gateway picks the right tool and fills the arguments automatically.
More
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。