# Drug Prices [Health: Active]

**Category:** 🧬 Biology & Bioinformatics  
**Repository:** https://github.com/pipeworx-io/mcp-drug-prices  
**GitHub Stars:** 0  
**npm Downloads (last month):** 1156  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/drug-prices

## Description
US drug price benchmarks — what a pharmacy PAYS and what Medicare PAYS OUT.

## Tools
Capabilities this server exposes over MCP:

- **nadac_price** — What a US retail pharmacy actually PAYS to acquire a drug — the National Average Drug Acquisition Cost (NADAC), surveyed and published weekly by CMS. Look up by drug name ("atorvastatin 20 mg", "Eliquis", "insulin glargine") or by NDC. NAME MATCHING IS LITERAL: NADAC lists brand products under their BRAND name and generics under the ingredient name, so "Eliquis" finds rows where "apixaban" finds none — if one returns nothing, try the other. Returns the most recent weekly price per NDC with its pricing unit (EA/ML/GM), brand-or-generic classification, and the week the price applies to. This is the ACQUISITION cost, not a retail price, not an insurance copay, and not what Medicare pays a clinic — for a drug given in a doctor's office or infusion centre see asp_payment_limit. Keyless.
- **nadac_history** — Weekly price history for one drug NDC — how the pharmacy acquisition cost (NADAC) moved over time. Use for "has the price of this generic gone up", shortage-driven price spikes, or generic erosion after a patent expiry. Returns one row per published week, oldest to newest, with the pricing unit and the percentage change across the window. Keyless.
- **asp_payment_limit** — What Medicare Part B PAYS for a drug administered by a provider — the quarterly ASP payment limit, set by statute at 106% of the manufacturer-reported Average Sales Price. Look up by HCPCS J-code ("J9271") or drug name ("pembrolizumab", "Keytruda"). This is the clinic/infusion benchmark: oncology drugs, biologics, injectables and vaccines. Returns the limit per its dosage unit, the quarter it is in force, AND the earlier quarter of ASP data it was derived from — those differ by two quarters and the gap matters. For retail pharmacy acquisition cost use nadac_price instead. Keyless.
- **drug_price_compare** — Put the two US drug price benchmarks side by side for one drug — what a pharmacy pays to acquire it (NADAC, weekly) against what Medicare Part B pays a provider for it (ASP limit, quarterly). Use to see the spread between acquisition cost and reimbursement, or to check whether a drug is a retail or a clinic-administered product at all. States the vintage of each number and warns when they are measured months apart, because the ASP limit in force is derived from ASP data two quarters earlier. Returns whichever benchmarks exist — many drugs legitimately have only one. Keyless.
- **b340_covered_entities** — Find 340B drug pricing program covered entities registered with HRSA: hospitals, community health centers, Ryan White HIV clinics, family planning and STD grantees. Filter by state, entity type or name and get the 340B ID, registration start date, parent hospital, Medicare CCN, NPI numbers and how many contract pharmacies each one uses. Answers which providers can buy drugs at 340B ceiling prices in a given state, whether a named hospital participates, and when it joined.
- **b340_contract_pharmacies** — List the contract pharmacies a 340B covered entity dispenses through, or work backwards from a pharmacy chain to the covered entities it serves. Returns pharmacy name, city, state, contract begin date and termination date. Answers how large a hospital 340B pharmacy network is, which chains a health center contracts with, and how many 340B relationships a chain like Walgreens or CVS holds in a state.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "drug-prices": {
    "command": "npx",
    "args": ["-y","@pipeworx/mcp-drug-prices"]
  }
}
```

## Documentation

## What Drug Prices does

Drug Prices provides US drug pricing benchmarks and 340B program lookups through MCP. Its pricing tools cover two distinct measures:

- NADAC, the National Average Drug Acquisition Cost, represents what a retail pharmacy pays to acquire a product. It is published weekly and is generally keyed by NDC.
- The Medicare Part B ASP payment limit represents what Medicare pays a provider for an administered drug. It is issued quarterly, commonly for oncology drugs, biologics, injectables, and vaccines, and is keyed by HCPCS J-code or drug name.

The server also searches HRSA 340B covered-entity registrations and the contract pharmacies associated with them. Results can identify participating provider sites, registration details, parent relationships, and pharmacy links.

## How it works

NADAC data is queried live from the CMS dataset exposed through data.medicaid.gov. The server matches the requested drug or NDC before selecting the newest matching weekly record, which avoids mistaking a small correction file for the complete latest release. NDC inputs are normalized across dashed, 10-digit, and 11-digit formats. Results include both the week the price applies to and the date CMS published it.

CMS distributes ASP payment limits as quarterly ZIP files rather than through an API. Those files are ingested into an `asp_payment_limits` store and queried locally. Each ASP result includes both the quarter when the limit is in force and the earlier ASP-data quarter used to calculate it.

The comparison tool returns whichever of the two benchmarks exists and identifies their respective vintages. It intentionally does not calculate a margin or ratio because NADAC and ASP use different units and may represent data from different months.

340B searches use a mirror of HRSA OPAIS data. Covered-entity data is refreshed through a human-triggered export and load process, with the source date carried in each response.

## Tools and capabilities

- `nadac_price`: Find the latest NADAC record by drug name or NDC, including price, pricing unit, brand or generic status, and applicable week.
- `nadac_history`: Retrieve weekly NADAC records for an NDC, ordered from oldest to newest, with percentage movement across the requested period.
- `asp_payment_limit`: Look up a Medicare Part B limit by HCPCS J-code or drug name, including its dosage unit and source-data quarter.
- `drug_price_compare`: Place NADAC and ASP results together while retaining each benchmark’s cadence, unit, and vintage.
- `b340_covered_entities`: Search 340B entities by state, type, or name and return identifiers, registration dates, parent hospital information, Medicare CCN, NPIs, and contract-pharmacy counts.
- `b340_contract_pharmacies`: Find pharmacies linked to a covered entity or identify covered entities served by a pharmacy, with location and relationship dates.

## Limitations and notes

Drug-name matching for NADAC is literal. Brand products appear under their brand names while generics use ingredient names, so a failed search may require trying the alternative naming convention. NADAC is an acquisition cost, not a retail price or insurance copay. ASP is a provider payment limit per dosage unit, so the dosage unit must be preserved when interpreting the amount.

A drug may have only one benchmark: retail generics commonly have NADAC without ASP, while administered products may have ASP without a retail NADAC. The two values should not be treated as directly comparable financial margins.

340B identifiers apply to registered sites rather than entire health systems. Terminated registrations are excluded unless requested, and the dataset does not include contact-person records. The 340B source is refreshed periodically through a manual export workflow rather than an automated fetch.

_Full upstream README: https://allmcps.com/mcp/drug-prices/readme_

