Skip to main content
Glama
openfda-substance-registry-mcp

openfda-substance-registry-mcp

openfda-substance-registry-mcp

Live OpenFDA Global Substance Registration System (GSRS) lookup over Model Context Protocol (MCP). Pharmaceutical chemists, regulatory CMC teams, toxicology analysts, and cheminformatics agents can search chemical and biologic substance records, inspect molecular formulas and SMILES structures, cross-reference CAS and RxNorm codes, and aggregate substance classes 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-substance-registry-mcp.lipmichal.workers.dev/mcp

Related MCP server: Comptox MCP Server

Available tools

Tool

Purpose

search_substances

Search FDA GSRS chemical and biologic substance records by name, UNII, external code, or substance class

get_substance_by_unii

Fetch full FDA GSRS substance details including preferred names, molecular structure, and external codes by 10-character UNII

get_substance_stats

Aggregate top FDA GSRS substance counts by substance class, code system, name type, or definition type

search_substances_by_code

Look up FDA GSRS substances by external identifier such as CAS Registry Number, EINECS, RxNorm, or PubChem

search_substances_by_formula

Search FDA GSRS chemical substances by molecular formula such as C9H8O4 or C8H9NO2

Client configuration

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

{
  "mcpServers": {
    "openfda-substance-registry": {
      "url": "https://openfda-substance-registry-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/substance.json with a polite User-Agent header (mcpstamp-openfda-substance-registry/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
get_substance_by_uniiGet FDA GSRS substance by UNIIA
Read-onlyIdempotent
Inspect

Fetch full FDA GSRS substance record including preferred names, synonyms, chemical structure, and external regulatory codes by 10-character UNII.

Inputs: unii (required).

get_substance_statsGet FDA GSRS substance statisticsB
Read-onlyIdempotent
Inspect

Aggregate FDA GSRS substance counts grouped by substance class, external code system, name type, or definition type.

Inputs: limit, query, group_by.

search_substancesSearch FDA GSRS substance registryA
Read-onlyIdempotent
Inspect

Search OpenFDA Global Substance Registration System (GSRS) chemical and biologic substances by name, UNII, external code, or substance class.

Inputs: query (required), limit, substance_class.

search_substances_by_codeSearch FDA GSRS substances by external codeB
Read-onlyIdempotent
Inspect

Look up FDA GSRS substance records by external identifier such as CAS Registry Number, EINECS, RxNorm, or PubChem.

Inputs: code (required), limit, code_system.

search_substances_by_formulaSearch FDA GSRS substances by molecular formulaA
Read-onlyIdempotent
Inspect

Search FDA GSRS chemical substances matching an exact molecular formula (e.g. "C9H8O4", "C8H9NO2").

Inputs: formula (required), limit.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 5 tools

    Disambiguation4/5

    Most tools have distinct roles: direct fetch by UNII, general text search, stats aggregation, formula search, and code-based lookup. The only real overlap is that search_substances already claims to accept external codes and UNIIs, making search_substances_by_code partially redundant. Formula search is clearly separable and the boundaries are well described.

    Naming Consistency4/5

    Names follow a predictable verb_noun pattern (get_substance_by_unii, search_substances, get_substance_stats, search_substances_by_code, search_substances_by_formula). The 'get_*' vs 'search_*' distinction maps cleanly to fetch vs query semantics. Minor inconsistency: get_substance_stats doesn't take a 'by_X' suffix like the other narrowed tools.

    Tool Count5/5

    Five tools is well-scoped for a focused substance registry lookup server. Each tool earns its place: a primary fetch, a general search, two specialized searches (formula, code), and an aggregation endpoint. No filler tools.

    Completeness4/5

    The surface covers the core lifecycle for a read-only registry: fetch by ID, search by name/code/formula, and aggregate stats. Gaps are minor — no browse/list-all or bulk retrieval and no weight/structure-based searching, but these are edge cases an agent can work around via search_substances and search_substances_by_formula.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers