Skip to main content
Glama
openfda-nsde-drug-packages-mcp

openfda-nsde-drug-packages-mcp

README.md
# openfda-nsde-drug-packages-mcp

Live OpenFDA National Drug Code (NDC) Structured Product Labeling Data Elements (NSDE) lookup over Model Context Protocol (MCP). Pharmacy billing engineers, payer formulary teams, pharmaceutical supply-chain analysts, and regulatory specialists can look up package NDCs, verify marketing start and end dates, trace NDA/ANDA/BLA applications, and inspect billing units with zero API keys and zero sign-up. It connects right away.

## Hosted endpoint

Point any Streamable HTTP MCP client at the free hosted Cloudflare Worker endpoint.

```text
https://openfda-nsde-drug-packages-mcp.lipmichal.workers.dev/mcp
```

## Available tools

| Tool | Purpose |
| --- | --- |
| `search_nsde_packages` | Search FDA NDC SPL Data Elements by proprietary name, dosage form, application citation, or product type |
| `get_nsde_by_package_ndc` | Fetch full FDA NSDE package details including marketing start/end dates, billing unit, and dosage form by package NDC |
| `get_nsde_stats` | Aggregate top FDA NSDE drug package counts by product type, marketing category, dosage form, proprietary name, or billing unit |
| `search_nsde_by_application` | Trace all FDA NSDE drug packages linked to a specific NDA, ANDA, BLA, or OTC monograph citation |
| `search_nsde_by_marketing_category` | Filter FDA NSDE drug packages by marketing category such as NDA, ANDA, BLA, or OTC Monograph Drug |

## Client configuration

Add the remote URL to Claude Desktop, Cursor, or VS Code MCP settings.

```json
{
  "mcpServers": {
    "openfda-nsde-drug-packages": {
      "url": "https://openfda-nsde-drug-packages-mcp.lipmichal.workers.dev/mcp"
    }
  }
}
```

## Run locally over stdio

You can also run the server locally on Node 20 or newer over stdio.

```bash
npm install
npm run build
npm start
```

## Compliance and reliability

Every upstream request queries `api.fda.gov/other/nsde.json` with a polite `User-Agent` header (`mcpstamp-openfda-nsde-drug-packages/1.0.1 (hello@mcpstamp.com)`) and automatic retry on transient network or 5xx errors. Cloudflare edge caching applies only to HTTP 2xx responses, so upstream faults don't linger in cache. All five tools declare read-only, non-destructive, idempotent, open-world annotations, and the Worker negotiates future protocol versions down to the SDK version cleanly.

## More MCP servers and readiness check

This server belongs to the public MCP directory maintained by MCPStamp and Zovo.

- [Free live-data MCP directory](https://www.mcpstamp.com/free-servers/) with hosted keyless endpoints and client setup guides.
- [Free MCP readiness checker](https://www.mcpstamp.com/check/) to score any MCP server for Claude, ChatGPT, and registry submission.
- [MCP Readiness Audit ($490)](https://www.mcpstamp.com/services/#audit) for teams shipping a production server who want a hands-on security, schema, and store review.
- [Zovo Pro MCP Bundle ($39 one-time)](https://mcp.zovo.one/buy/bundle?src=gh.openfda-nsde-drug-packages-mcp) with hosted commercial servers and priority endpoints.

TDQS

A3.5/5.0

Scored across 5 tools

Disambiguation3/5

get_nsde_by_package_ndc and get_nsde_stats are clearly distinct, but three tools are all searches: search_nsde_packages, search_nsde_by_application, and search_nsde_by_marketing_category. Since the generic search explicitly accepts application number as a filter, search_nsde_by_application is largely redundant, and the marketing-category variant is a thin narrow slice of the same query.

Naming Consistency4/5

All names use snake_case with a consistent nsde domain token and start with a verb (search_/get_). Minor inconsistency: search_nsde_packages uses search_nsde_<resource> while the others use search_nsde_by_<facet>, so the pattern shifts mid-set.

Tool Count5/5

Five tools is well-scoped for a read-only drug-package lookup API. Each tool covers a recognizable access pattern (free-text search, keyed lookup, aggregation, and two faceted searches), so nothing feels bloated or missing at the count level.

Completeness4/5

The surface covers search, single-record retrieval, and aggregation, which is the core of a read-only FDA dataset. Gaps are minor but real: no product-level (non-package) NDC lookup, no batch/multi-NDC retrieval, and no way to enumerate valid marketing categories or product types before filtering.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues