Provides access to FDA drug information including labels, safety data, adverse events, and manufacturer details through the OpenFDA API.

Integrates with the FDA's OpenFDA API to provide access to drug information, safety data, adverse event reports, and manufacturer details through eight specialized search and retrieval tools with robust error handling and NDC format validation.

3347 views3Local (stdio)

What it does

  • Search drug information by brand or generic name
  • Retrieve adverse event reports and side effects
  • Find all brand versions of generic drugs
  • Get drug safety warnings and contraindications
  • Search drugs by manufacturer
  • Validate NDC (National Drug Code) formats

Best for

Healthcare developers building drug information systemsResearchers analyzing pharmaceutical safety dataMedical applications requiring FDA drug data
8 specialized search toolsRobust error handling with suggestionsNDC format validation

About OpenFDA

OpenFDA is a community-built MCP server published by ythalorossy that provides AI assistants with tools and capabilities via the Model Context Protocol. Access FDA drug info, faers data, and adverse event reports with OpenFDA’s robust tools for faers, vaers, and NDC valida It is categorized under developer tools, analytics data.

How to install

You can install OpenFDA in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

License

OpenFDA is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

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

Alternatives

Related Skills

Browse all skills
mcp-developer

Use when building MCP servers or clients that connect AI systems with external tools and data sources. Invoke for MCP protocol compliance, TypeScript/Python SDKs, resource providers, tool functions.

0
ccxt-typescript

CCXT cryptocurrency exchange library for TypeScript and JavaScript developers (Node.js and browser). Covers both REST API (standard) and WebSocket API (real-time). Helps install CCXT, connect to exchanges, fetch market data, place orders, stream live tickers/orderbooks, handle authentication, and manage errors. Use when working with crypto exchanges in TypeScript/JavaScript projects, trading bots, arbitrage systems, or portfolio management tools. Includes both REST and WebSocket examples.

0
dotnet-backend

.NET/C# backend developer for ASP.NET Core APIs with Entity Framework Core. Builds REST APIs, minimal APIs, gRPC services, authentication with Identity/JWT, authorization, database operations, background services, SignalR real-time features. Activates for: .NET, C#, ASP.NET Core, Entity Framework Core, EF Core, .NET Core, minimal API, Web API, gRPC, authentication .NET, Identity, JWT .NET, authorization, LINQ, async/await C#, background service, IHostedService, SignalR, SQL Server, PostgreSQL .NET, dependency injection, middleware .NET.

64
supabase-developer

Build full-stack applications with Supabase (PostgreSQL, Auth, Storage, Real-time, Edge Functions). Use when implementing authentication, database design with RLS, file storage, real-time features, or serverless functions.

59
data-storytelling

Transform data into compelling narratives using visualization, context, and persuasive structure. Use when presenting analytics to stakeholders, creating data reports, or building executive presentations.

13
python-expert

Senior Python developer expertise for writing clean, efficient, and well-documented code. Use when: writing Python code, optimizing Python scripts, reviewing Python code for best practices, debugging Python issues, implementing type hints, or when user mentions Python, PEP 8, or needs help with Python data structures and algorithms.

13