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

openfda-substance-registry-mcp

README.md
# 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.

```text
https://openfda-substance-registry-mcp.lipmichal.workers.dev/mcp
```

## 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.

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

```bash
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.

- [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-substance-registry-mcp) with hosted commercial servers and priority endpoints.

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