Medicaid drug utilization by NDC, managed-care enrollment and state enrollment operations from CMS
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Medicaid drug utilization, managed-care enrollment and state enrollment operations from the CMS Medicaid Open Data API. Keyless.
Part of Pipeworx β an MCP gateway connecting AI agents to 1476+ live data sources.
| 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 |
None. Every endpoint is public CMS infrastructure at data.medicaid.gov.
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.
total_amount_reimbursed is 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.DS, *, --, or a
suppression_used flag). Those become null, never 0, and a channel that is entirely
suppressed is reported as unavailable rather than as an absence of utilization. Tests guard
this specifically.medicaid_managed_care_program_mix
says so in its interpretation.medicaid_plan_market returns a bounded sample plus the authoritative total row count, so a
short list never implies a small market.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.
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".
All datasets are queried through the CMS Medicaid Open Data datastore API,
https://data.medicaid.gov/api/1/datastore/query:
Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
tools/list at https://gateway.pipeworx.io/medicaid-intelligence/mcp returns the tools in the table
above plus the shared Pipeworx meta-tools β ask_pipeworx,
discover_tools, search_within, remember/recall and the rest of the
gateway-wide set. So the tool count you see is larger than this table: a
single-pack endpoint currently lists roughly 30 shared tools alongside the
pack's own. The connection's initialize response states its exact scope, and
is the authoritative answer for a given day.
This is deliberate, not multiplexing by accident. The meta-tools are what let a
scoped connection answer a question this pack does not cover β via
ask_pipeworx, which routes across the whole catalog β without you adding a
second MCP server. There is currently no way to mount a pack endpoint without
them; if the extra schemas cost you more context than the routing is worth,
connect to the full gateway once rather than to several pack endpoints.
Or connect to the full Pipeworx gateway to get every pack's tools listed directly, instead of just this one's:
Both URLs reach the same gateway and the same 1476+ data sources. The
only difference is which pack's tools are listed directly; ask_pipeworx
reaches all of them from either one.
Instead of calling tools directly, you can ask questions in plain English β this works on the pack endpoint above as well as on the full gateway:
The gateway picks the right tool and fills the arguments automatically.
MIT
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/medicaid-intelligence)<a href="https://allmcps.com/mcp/medicaid-intelligence"><img src="https://allmcps.com/api/badge/medicaid-intelligence?style=directory" alt="Medicaid Intelligence on AllMCPs" /></a>