Meps logo

Meps

Query US prescription drug use by condition, treatment volume, spending, and out-of-pocket share from MEPS survey data.

Install Meps

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "meps": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-meps"
      ],
      "env": {
        "PIPEWORX_API_KEY": "YOUR_VALUE_HERE",
        "PIPEWORX_META_TOOLS": "YOUR_VALUE_HERE",
        "NODE_USE_ENV_PROXY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Automated check passed— started and listed 4 tools correctly ().

Overview

Meps MCP server exposes US prescription drug estimates from AHRQ's Medical Expenditure Panel Survey through four MCP tools. It connects to the Pipeworx gateway, either through a hosted streamable-HTTP endpoint or a local npm stdio bridge that forwards requests online. Use it to examine which generic drugs are associated with a condition, what conditions are linked to a drug, national drug utilization, and annual top-drug rankings. Results are survey estimates with respondent counts and reliability flags, so they suit broad rankings and magnitude checks rather than precise small-population totals.

Use cases

  • Rank drugs associated with a medical condition
  • Identify conditions linked to a generic drug
  • Compare national prescription volume and spending
  • Find the most-used prescription drugs for a year

Key features

  • Condition-to-drug rankings
  • Drug-to-condition lookups
  • National volume and spending estimates
  • Annual top-drug rankings
  • Sample-size and reliability fields
  • Hosted HTTP and local stdio access

Tools4

What Meps lets your agent do. Expand a tool for its parameters.

Verified live~801 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/13 checks healthy over the last 63d

What it can do

From the 4 tools this server returned when we ran it; 4 declare their own safety hints.

Makes network requests · 4Read-only tools · 4
Network at startup4 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age49 days
Maintainers1

Observed 2026-11-03 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16d ago via OSV.dev · @pipeworx/mcp-meps (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads789Package downloads in the last 30 days.
Last commit21d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed4Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Meps works

What Meps does

Meps provides MCP access to US prescription drug utilization data derived from AHRQ's Medical Expenditure Panel Survey. The data covers the civilian, non-institutionalized population across payers, ages, insured status, and uninsured status. Its distinctive use is connecting prescriptions with the medical conditions recorded for them, supporting questions such as which drugs are associated with depression or which conditions are linked to a generic drug.

The available data starts in 2019. Conditions can be supplied as ordinary terms such as depression, high cholesterol, or type 2 diabetes, or as HCUP CCSR codes such as MBD002. Drug names use cleaned generic names, such as atorvastatin rather than a brand name.

How it works

The hosted MCP endpoint is https://gateway.pipeworx.io/meps/mcp. A local package, @pipeworx/mcp-meps, provides a stdio bridge started with npx; it forwards calls to the same gateway and therefore requires network access. The full Pipeworx endpoint at https://gateway.pipeworx.io/mcp can also be used when all catalog packs should be available directly.

The pack endpoint includes shared Pipeworx gateway tools in addition to the Meps tools when connected through the hosted service. The local bridge lists the Meps tools by default and can expose the shared meta-tools with PIPEWORX_META_TOOLS=1. Requests can also be made without an MCP client through the gateway's HTTP tool API.

Underlying estimates are calculated from AHRQ public-use files for Prescribed Medicines, the Appendix to Event Files, and Medical Conditions. Condition labels come from the HCUP CCSR reference data. The refresh process checks AHRQ's file index monthly and loads years when the required files are available.

Setup and configuration

Add the hosted endpoint to an MCP client:

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

For a local stdio connection, use:

config.json
{
  "mcpServers": {
    "meps": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-meps"]
    }
  }
}

Anonymous calls are supported with a daily limit. A Pipeworx account and PIPEWORX_API_KEY provide a higher daily allowance. The key is sent as a Bearer token. Set PIPEWORX_META_TOOLS=1 to list gateway-wide tools through the local bridge. When using an HTTPS proxy, Node's environment proxy support may require NODE_USE_ENV_PROXY=1, depending on the Node version.

Tools and capabilities

  • meps_drugs_for_condition ranks drugs associated with a condition by the number of people treated.
  • meps_conditions_for_drug lists conditions associated with a drug, including potential off-label-use questions.
  • meps_drug_use reports one drug's national volume, total spending, and out-of-pocket share.
  • meps_top_drugs ranks the most-used prescription drugs in a selected year.

Responses include sample_persons, the number of survey respondents supporting a row, and a reliable flag. Results default to at least 60 respondents; min_sample can expose smaller cells, which are marked unreliable.

Limitations and notes

These are weighted survey estimates, not exact counts. They are better for broad rankings and approximate scale than for precise totals, small subgroups, or small year-over-year changes. Fewer than half of prescriptions may have an associated condition, so condition results represent captured links rather than all prescribing. A single fill can connect to multiple conditions; consequently, condition tables do not include expenditure totals.

Some entries represent therapeutic classes instead of individual products when more specific naming could identify a respondent. Cost rankings can therefore be dominated by class-level entries. Data from years before 2019 is not comparable because it uses older CCS condition coding rather than CCSR.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Meps

Meps is an MCP server that connects AI clients to AHRQ Medical Expenditure Panel Survey data through Pipeworx. Its main tools rank drugs for conditions, find conditions linked to drugs, report a drug's national volume and spending, and list the most-used prescription drugs for a year.

Install it as a local stdio bridge with `npx -y @pipeworx/mcp-meps` in your MCP client configuration. The package forwards requests to the Pipeworx gateway and needs network access. You can instead configure the hosted URL `https://gateway.pipeworx.io/meps/mcp` directly.

Yes, Meps can be configured in Cursor through the hosted MCP endpoint. Add `https://gateway.pipeworx.io/meps/mcp` as the server URL, or configure the npm stdio bridge for a local process.

No, Meps returns weighted survey estimates rather than exact counts. Each row includes the underlying respondent count, and rows with fewer than 60 respondents are marked `reliable: false`; use the results mainly for broad rankings and approximate magnitude.

No, the condition-linked tools do not report expenditure. A prescription can be linked to multiple conditions, so adding spending across condition rows would overstate national spending. Spending is available through `meps_drug_use` and `meps_top_drugs`, where each fill is counted once.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMeps AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/meps?style=directory)](https://allmcps.com/mcp/meps)
HTML Embed
<a href="https://allmcps.com/mcp/meps"><img src="https://allmcps.com/api/badge/meps?style=directory" alt="Meps on AllMCPs" /></a>