1. Conduid
  2. AI
  3. openfda
MCP server · AI

openfda

OpenFDA MCP — wraps the openFDA API (free, no auth required)

Unclaimed security
39Low

Scored 5 days ago · breakdown

About openfda

openfda is an MCP server published by git+ythalorossy in the AI category: openFDA MCP — wraps the openFDA API (free, no auth required).

The repository has 4 stars and 0 forks, with the last commit a month ago. Recent commit activity is the strongest signal that reported issues will get attention.

Install

Install
npx @ythalorossy/openfda
Claude Code
claude mcp add openfda -- npx -y @ythalorossy/openfda
npx
npx -y @ythalorossy/openfda
uvx
uvx mcp-server-openfda
pip
pip install mcp-server-openfda

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about openfda

Powered by Claude · Grounded in docs

I know everything about openfda. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

4 checks have not been run yet.

README

OpenFDA MCP Server

A Model Context Protocol (MCP) server for querying drug information from the OpenFDA API.

Features

  • Retrieve drug label information by brand name
  • Retrieve drug information by generic (active ingredient) name
  • Get all brand versions of a generic drug
  • Get adverse event (side effect) reports for a drug (by brand or generic name)
  • Retrieve all drugs manufactured by a specific company
  • Get comprehensive drug safety information (warnings, contraindications, interactions, precautions, etc.)
  • Normalize and validate NDC (National Drug Code) formats
  • Helpful error messages and suggestions for failed queries
  1. Set up your OpenFDA API Key

    The MCP server requires an OpenFDA API key to access the OpenFDA API.
    Create a .env file in the root of your project and add the following line:

    OPENFDA_API_KEY=your_openfda_api_key_here
    

    Note: Never commit your real API key to version control.
    You can obtain an API key from OpenFDA API Key Registration.

  2. Example MCP Server Configuration

    If you are integrating this server with a larger MCP system, your configuration might look like:

     {
       "mcpServers": {
           "openfda": {
               "command": "npx",
               "args": [
                   "@ythalorossy/openfda"
               ],
               "env": {
                   "OPENFDA_API_KEY": "*****************************************"
               },
               "timeout": 60000,
               "autoApprove": [
                   "get-drug-by-name",
                   "get-drug-by-generic-name",
                   "get-drug-adverse-events",
                   "get-drugs-by-manufacturer",
                   "get-drug-safety-info",
                   "get-drug-by-ndc",
                   "get-drug-by-product-ndc"
               ]
           }
       }
     }
    

    Replace the asterisks with your actual API key, or ensure it is loaded from your .env file.

Want to run it locally?

git clone https://github.com/ythalorossy/openfda.git
cd openfda
npm install
npm run build

Then start the server:

node bin/index.js

Or use it directly with npx:

npx @ythalorossy/openfda

Configuration

Create a .env file for any required environment variables.

License

MIT

Buy me a Coffee

coff.ee/ythalorossy

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About openfda

How do I install openfda?

Run npx @ythalorossy/openfda, then add the server to your MCP client's configuration.

Is openfda safe to use with an AI agent?

Its trust score is 39 out of 100 (low). It passes 1 of the 2 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is openfda still maintained?

Yes — the last commit was a month ago. The repository has 4 stars and 0 forks.