pipeworx-io

@pipeworx/medicaid-intelligence

Community pipeworx-io
Updated

Medicaid drug utilization by NDC, managed-care enrollment and state enrollment operations from CMS

@pipeworx/medicaid-intelligence

Medicaid drug utilization, managed-care enrollment and state enrollment operations from theCMS 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. Eachresponse carries an interpretation field stating the caveat that applies to it.

  • Reimbursement is gross, before rebates. total_amount_reimbursed is what state Medicaidprograms paid pharmacies. It is neither manufacturer revenue nor net price — Medicaid rebatesare substantial and are not in this data. Treating these figures as a manufacturer's Medicaidrevenue overstates it, often by a lot.
  • Suppressed is not zero. CMS suppresses small cells (DS, *, --, or asuppression_used flag). Those become null, never 0, and a channel that is entirelysuppressed is reported as unavailable rather than as an absence of utilization. Tests guardthis specifically.
  • Fee-for-service and managed care are separate measures and stay separate. Adding them isnot 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 appearunder comprehensive MCO and MLTSS and behavioral health. medicaid_managed_care_program_mixsays so in its interpretation.
  • Enrollment counts are state-reported program enrollment, not covered lives attributable toa 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 ashort list never implies a small market.

Argument conventions

The underlying datasets disagree about how a state is written — the drug files use two-lettercodes, the enrollment and managed-care files use full names. Both forms are accepted on everytool 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 nomanaged care" rather than as a wrong argument.

ndc takes an exact 11-digit National Drug Code, hyphenated or not. A brand or ingredient namereturns {found:false, reason:'ndc_expected_got_name'} with a hint pointing at openfda_drug_labelor 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 deliberatelydistinguishable, 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"
    }
  }
}

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

MCP Server · Populars

MCP Server · New

    MaximaLabs

    Dev MCP Suite 🚀

    Five local, file-based MCP servers for solo devs: persistent memory, session handoff/resume, file checkpoints, token-efficient briefings + optional Armada fleet ops. Works with any MCP client.

    Community MaximaLabs
    JollyToday

    Weydub Pro Subtitle Removal

    auto video translation-video translator can auto translate video hard subtitles, auto video translation and dubbing, remove any video text, auto remove video subtitles/text. 自动视频翻译配音,自动翻译视频字幕和回填样式,自动硬字幕翻译。

    Community JollyToday
    kitfunso

    Hippo

    One memory for every agent you'll ever use. Hippo writes what you teach a coding agent into a store in your repo, and your other agents read that same store.

    Community kitfunso
    Avazbek22

    DevProjex: MCP / GUI / CLI / TUI all in one

    Repomix alternative with up to 40% fewer tokens. Turn any codebase or Git repository into safe, token-efficient context for LLM and coding agents like Claude Code, Codex, and Cursor. GUI, TUI, CLI, and a read-only RAG MCP server with Live Context, agent journal, Smart Ignore, secret/PII redaction, and code compression. Windows, macOS, Linux.

    Community Avazbek22
    membaseai

    Membase

    Memory layer for AI agents — SDKs, CLI and MCP server for Membase

    Community membaseai