Skip to main content
Glama

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.

https://openfda-unii-identifiers-mcp.lipmichal.workers.dev/mcp

Related MCP server: fdarecords

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.

{
  "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.

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.

Available Tools

5 tools
batch_lookup_uniisBatch resolve FDA UNII codesA
Read-onlyIdempotent
Inspect

Resolve up to 10 FDA 10-character UNII codes in a single query for formulary, SPL labeling, and ingredient verification.

Inputs: uniis (required).

get_unii_by_codeGet FDA UNII record by codeA
Read-onlyIdempotent
Inspect

Fetch official FDA Unique Ingredient Identifier (UNII) metadata by exact 10-character UNII code.

Inputs: unii (required).

get_unii_statsGet FDA UNII dataset statisticsB
Read-onlyIdempotent
Inspect

Aggregate FDA UNII dataset counts grouped by substance name or UNII code with optional ingredient filter.

Inputs: limit, query, group_by.

lookup_unii_by_nameResolve ingredient name to FDA UNIIA
Read-onlyIdempotent
Inspect

Resolve an exact or partial pharmaceutical active ingredient name to its official FDA UNII identifier(s).

Inputs: substance_name (required), exact, limit.

search_unii_recordsSearch FDA UNII recordsB
Read-onlyIdempotent
Inspect

Search OpenFDA Unique Ingredient Identifier (UNII) records by pharmaceutical active ingredient name or UNII code.

Inputs: query (required), limit.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 5 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables drug terminology standardization and name normalization via RxNav API, supporting drug name search, generic/brand name conversion, ATC classification, and ingredient lookup.
      6
      GPL 3.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables querying openFDA for drug label text, Drugs@FDA application records, and device submission and product-code classification data, including end-to-end validation of device application details. It also supports an experimental sweep of drug labels for real-world-evidence vocabulary.
      59 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables resolving generic or brand medication names to canonical RxCUIs, fetching FDA National Drug Codes, mapping related brand/ingredient/clinical drug equivalents, and looking up therapeutic and pharmacological classes through live NIH NLM RxNorm and RxClass APIs — with no API keys or sign-up. It ships as a free hosted Cloudflare Worker endpoint that also runs locally over stdio.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables querying live CMS Medicare Part D drug spending data — searching by brand, generic, or manufacturer, comparing drugs, and retrieving 2020–2024 spending, claims, beneficiary, and unit-cost trends — with no API key required. It supports both a hosted Streamable HTTP endpoint and local stdio use.
      MIT