openfda_lookup_ndc
ActiveTool of @cyanheads/openfda-mcp-server
Look up drugs in the NDC (National Drug Code) Directory. Identify drug products by NDC code, find active ingredients, packaging details, or manufacturer info. Pair with openfda_get_drug_label using the returned brand_name or set_id to read the package insert.
Parameters schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"search"
],
"properties": {
"skip": {
"type": "number",
"default": 0,
"maximum": 25000,
"minimum": 0,
"description": "Number of records to skip for pagination (0-25000, default 0)"
},
"sort": {
"type": "string",
"description": "Sort expression (field:asc or field:desc). Example: listing_expiration_date:desc. Invalid or non-sortable fields cause a query error — use a documented field name."
},
"limit": {
"type": "number",
"default": 10,
"maximum": 1000,
"minimum": 1,
"description": "Maximum number of records to return (1-1000, default 10)"
},
"search": {
"type": "string",
"description": "openFDA search query. Examples: product_ndc:\"0363-0218\", brand_name:\"aspirin\", generic_name:\"metformin\", openfda.manufacturer_name:\"walgreen\", active_ingredients.name:\"ASPIRIN\""
},
"canvas_id": {
"type": "string",
"description": "DataCanvas session id from a prior call. Omit to start a fresh canvas; the response returns a new one when canvas is enabled. When canvas (CANVAS_PROVIDER_TYPE=duckdb) is enabled the full matched set is staged for SQL and limit/skip apply only to the inline path."
}
}
}Parent server
@cyanheads/openfda-mcp-server
https://github.com/cyanheads/openfda-mcp-server
2/7 registries