medicaid-intelligence

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.

Category
Visit Server

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_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"
    }
  }
}

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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured