Skip to main content
Glama

OpenFDA

by ythalorossy

get-drug-by-ndc

Retrieve detailed drug information using National Drug Codes (NDC) in various formats—XXXXX-XXXX, XXXXX-XXXX-XX, or without dashes—via the OpenFDA API.

Instructions

Get drug information by National Drug Code (NDC). Accepts both product NDC (XXXXX-XXXX) and package NDC (XXXXX-XXXX-XX) formats. Also accepts NDC codes without dashes.

Input Schema

NameRequiredDescriptionDefault
ndcCodeYesNational Drug Code (NDC) - accepts formats: XXXXX-XXXX, XXXXX-XXXX-XX, or without dashes

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "ndcCode": { "description": "National Drug Code (NDC) - accepts formats: XXXXX-XXXX, XXXXX-XXXX-XX, or without dashes", "type": "string" } }, "required": [ "ndcCode" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ythalorossy/openfda'

If you have feedback or need assistance with the MCP directory API, please join our Discord server