JUHE API Marketplace
ythalorossy avatar
MCP Server

OpenFDA

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

3
GitHub Stars
3/10/2026
Last Updated
MCP Server Configuration
1{
2 "name": "openfda",
3 "command": "npx",
4 "args": [
5 "@ythalorossy/openfda"
6 ],
7 "env": {
8 "OPENFDA_API_KEY": "************"
9 },
10 "timeout": 60000
11}
JSON11 lines
  1. Home
  2. MCP Servers
  3. openfda

README Documentation

OpenFDA MCP Server

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

OpenFDA MCP server

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
        }
      }
    }
    

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

Want to run it local?

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

Usage

First, build the project:

npm run build

Then, start the server from the build folder:

node build/index.js

Key Points:

  • The build step (npm run build) compiles your source files into the build/ directory.
  • You should run the compiled output (e.g., build/bin/index.js), not the source file (bin/index.js), unless your project is set up to run directly from source.

Configuration

Create a .env file for any required environment variables.

License

MIT

Buy me a Coffee

coff.ee/ythalorossy

Quick Install

Quick Actions

View on GitHubView All Servers

Key Features

Model Context Protocol
Secure Communication
Real-time Updates
Open Source

Boost your projects with Wisdom Gate LLM API

Supporting GPT-5, Claude-4, DeepSeek v3, Gemini and more.

Enjoy a free trial and save 20%+ compared to official pricing.

Learn More
JUHE API Marketplace

Accelerate development, innovate faster, and transform your business with our comprehensive API ecosystem.

JUHE API VS

  • vs. RapidAPI
  • vs. API Layer
  • API Platforms 2025
  • API Marketplaces 2025
  • Best Alternatives to RapidAPI

For Developers

  • Console
  • Collections
  • Documentation
  • MCP Servers
  • Free APIs
  • Temp Mail Demo

Product

  • Browse APIs
  • Suggest an API
  • Wisdom Gate LLM
  • Global SMS Messaging
  • Temp Mail API

Company

  • What's New
  • Welcome
  • About Us
  • Contact Support
  • Terms of Service
  • Privacy Policy
Featured on Startup FameFeatured on Twelve ToolsFazier badgeJuheAPI Marketplace - Connect smarter, beyond APIs | Product Huntai tools code.marketDang.aiFeatured on ShowMeBestAI
Copyright © 2026 JUHEDATA HK LIMITED - All rights reserved