openfda-substance-registry-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@openfda-substance-registry-mcp Search FDA substances for aspirin and show its UNII and molecular formula"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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/mcpRelated MCP server: Comptox MCP Server
Available tools
Tool | Purpose |
| Search FDA GSRS chemical and biologic substance records by name, UNII, external code, or substance class |
| Fetch full FDA GSRS substance details including preferred names, molecular structure, and external codes by 10-character UNII |
| Aggregate top FDA GSRS substance counts by substance class, code system, name type, or definition type |
| Look up FDA GSRS substances by external identifier such as CAS Registry Number, EINECS, RxNorm, or PubChem |
| 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 startCompliance 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 with hosted keyless endpoints and client setup guides.
Free MCP readiness checker to score any MCP server for Claude, ChatGPT, and registry submission.
MCP Readiness Audit ($490) for teams shipping a production server who want a hands-on security, schema, and store review.
Zovo Pro MCP Bundle ($39 one-time) with hosted commercial servers and priority endpoints.
Available Tools
5 toolsget_substance_by_uniiGet FDA GSRS substance by UNIIARead-onlyIdempotentInspect
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 statisticsBRead-onlyIdempotentInspect
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 registryARead-onlyIdempotentInspect
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 codeBRead-onlyIdempotentInspect
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 formulaARead-onlyIdempotentInspect
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
Scored across 5 tools
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.
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.
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.
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
Related MCP Connectors
RxNorm MCP — wraps the NLM RxNav REST API (free, no auth)
FDA MCP — US Food and Drug Administration public API (free, no auth)
Public MCP endpoint for collaborative research and knowledge discovery.
PubChem MCP — NIH chemistry compound database (no auth)
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides chemical informatics endpoints for converting between chemical names and SMILES, processing molecule structures, and comparing molecules, with MCP compatibility.5MIT
- AlicenseCqualityBmaintenanceExposes EPA Computational Toxicology (CompTox) evidence federation through MCP, enabling chemical identity, hazard, exposure, and bioactivity data retrieval for AI agents.856Apache 2.0
- AlicenseAqualityBmaintenanceEnables looking up chemical compounds by name or molecular formula and retrieving molecular properties, synonyms, CAS identifiers, and curated descriptions over MCP without API keys.5MIT
- AlicenseAqualityBmaintenanceEnables live queries of RCSB PDB for macromolecular structures, polymer entities, small-molecule ligands, and primary citations over MCP, with no API keys or sign-up required.5MIT