mcpField
M
Medicaid Intelligence

Medicaid Intelligence

Remote
pipeworx.ioHealth0Updated 1d ago

About Medicaid Intelligence

Medicaid Intelligence is an MCP server for analysts examining drug and healthcare markets. It queries CMS Medicaid Open Data on drug utilization, managed-care enrollment, and state enrollment operations, with interpretation notes that clarify suppression and data limitations.

Key features

  1. 01Query state drug utilization by NDC
  2. 02View annual drug trends and state markets
  3. 03Explore managed-care enrollment and program mix
  4. 04Check monthly enrollment and application indicators
  5. 05Flag suppression and interpretation caveats

Use cases

  1. 01Compare a drug’s Medicaid use across states
  2. 02Track annual prescriptions and gross reimbursement
  3. 03Analyze managed-care enrollment by state
  4. 04Review monthly enrollment and processing changes in a state

MCP support

It exposes CMS Medicaid Open Data query tools through the Pipeworx remote gateway or as a local stdio MCP server. The gateway connection also lists shared Pipeworx meta-tools; standalone mode exposes only this pack’s tools.

Configuration

Remote servers need no local install. Pick your client, then copy the config or install in one click.

Endpointhttps://gateway.pipeworx.io/medicaid-intelligence/mcp
Copy install command
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.

Tools

Details

From the project README

@pipeworx/medicaid-intelligence

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 1882+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.

Tools

ToolWhat it returns
medicaid_drug_utilizationQuarterly state utilization rows for one NDC, fee-for-service and managed care kept separate
medicaid_drug_state_marketOne NDC aggregated across states for a year
medicaid_drug_trendAnnual prescriptions, units and gross reimbursement for one NDC from 2020
medicaid_managed_care_summaryAnnual state enrollment, and enrollment in any or comprehensive managed care
medicaid_managed_care_program_mixState enrollment by program type — comprehensive MCO, PCCM, MLTSS, behavioral health, dental, transportation, PACE
medicaid_plan_marketBounded sample of managed-care plan/program rows by state, with the authoritative matching-row count
medicaid_monthly_managed_careMonthly Medicaid/CHIP enrollment for one state and participation category
medicaid_enrollment_operationsMonthly 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_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.
  • Suppressed is not zero. CMS suppresses small cells (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.
  • 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_mix says so in its interpretation.
  • 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_market returns 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:

Quick Start

Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):

{
  "mcpServers": {
    "medicaid-intelligence": {
      "url": "https://gateway.pipeworx.io/medicaid-intelligence/mcp"
    }
  }
}
What this endpoint actually serves

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:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://gateway.pipeworx.io/mcp"
    }
  }
}

Both URLs reach the same gateway and the same 1882+ data sources. The only difference is which pack's tools are listed directly; ask_pipeworx reaches all of them from either one.

No MCP client? Call it over HTTP

curl -X POST https://gateway.pipeworx.io/v1/tools/medicaid_drug_utilization \
  -H 'Content-Type: application/json' \
  -d '{"drug":"Ozempic","year":2026,"state":"CA"}'

No account needed for the first calls. Inspect any tool: GET https://gateway.pipeworx.io/v1/tools/medicaid_drug_utilization. Find one: POST https://gateway.pipeworx.io/v1/tools/search_packs with {"query":"..."}.

Standalone (no gateway account)

This package also runs as a local stdio MCP server — no Pipeworx account, no gateway round-trip:

{
  "mcpServers": {
    "medicaid-intelligence": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-medicaid-intelligence"]
    }
  }
}

Or run it directly to confirm it starts:

npx -y @pipeworx/mcp-medicaid-intelligence

It speaks MCP over stdin/stdout and answers initialize/tools/list/tools/call for only this pack's tools — none of the shared meta-tools the gateway connection above adds. Same source, same tools, no ask_pipeworx routing.

Using with ask_pipeworx

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:

ask_pipeworx({ question: "your question about Medicaid Intelligence data" })

The gateway picks the right tool and fills the arguments automatically.

More

License

MIT

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.