openfda-unii-identifiers
# openfda-unii-identifiers-mcp
Live OpenFDA Unique Ingredient Identifier (UNII) lookup over Model Context Protocol (MCP). Pharmaceutical formulary teams, SPL labeling engineers, clinical terminology specialists, and regulatory automation agents can resolve active ingredient names to official 10-character FDA UNIIs, run batch UNII verifications, and query ingredient counts 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-unii-identifiers-mcp.lipmichal.workers.dev/mcp
```
## Available tools
| Tool | Purpose |
| --- | --- |
| `search_unii_records` | Search FDA Unique Ingredient Identifier (UNII) records by active ingredient name or UNII code |
| `get_unii_by_code` | Fetch official FDA UNII identifier record and substance name by exact 10-character UNII code |
| `lookup_unii_by_name` | Resolve an exact or partial pharmaceutical active ingredient name to its official FDA UNII identifier |
| `batch_lookup_uniis` | Resolve up to 10 FDA UNII codes in a single query for formulary and SPL labeling verification |
| `get_unii_stats` | Aggregate FDA UNII dataset term counts grouped by substance name or UNII identifier |
## Client configuration
Add the remote URL to Claude Desktop, Cursor, or VS Code MCP settings.
```json
{
"mcpServers": {
"openfda-unii-identifiers": {
"url": "https://openfda-unii-identifiers-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/unii.json` with a polite `User-Agent` header (`mcpstamp-openfda-unii-identifiers/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-unii-identifiers-mcp) with hosted commercial servers and priority endpoints.
TDQS
Scored across 5 tools
The tools mostly map to distinct actions: stats, record search, exact code lookup, name resolution, and batch code lookup. Some overlap remains between search_unii_records and lookup_unii_by_name, and between single-code and batch-code retrieval, but descriptions make the intended use cases fairly clear.
Names generally follow a verb_noun pattern around UNII lookups, such as get_unii_stats, search_unii_records, get_unii_by_code, and lookup_unii_by_name. Minor inconsistency appears with batch_lookup_uniis using a batch prefix and plural noun compared with the singular patterns elsewhere.
Five tools is a well-scoped set for a focused FDA UNII identifier lookup service. Each tool has a distinct role: aggregate stats, search, exact code retrieval, name resolution, and batch code resolution.
The surface covers the core lifecycle for reference-data lookup: search, exact retrieval, name-to-identifier resolution, batch lookup, and aggregate stats. Minor gaps exist, such as batch name resolution or broader search/filter options, but the main UNII workflows are supported.