npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ythalorossy/openfda

v1.0.12

Published

OpenFDA Model Context Protocol

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

    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