How to integrate openFDA MCP with Atomic Agent

Connect Atomic Agent to openFDA MCP. Search fda adverse event reports by drug, find drug labels with active ingredients, and more using natural language, with authentication handled for you.

openFDA logoopenFDA
Api Key

openFDA is the U.S. FDA's public API for drug and medical device data. It makes regulatory, safety, labeling, and recall information easy to access.

16 Tools

Introduction

Atomic Agent is an open-source AI agent that runs on your machine and supports local models through llama.cpp. Connect it to 1,700+ apps through Composio, including openFDA.

This guide uses Atomic Agent's built-in Composio integration. You need Atomic Agent v0.5.6 or later, your own Composio API key, and a openFDA account. See the Atomic Agent documentation for installation instructions.

For exact tool slugs and parameter tables, see the tool catalog in the Composio docs.

Also integrate openFDA with

How Atomic Agent connects to openFDA

Atomic Agent connects to Composio's Tool Router over Streamable HTTP MCP. It discovers the tools needed for your request, and Composio handles account authentication.

Execution and account-connection tools follow Atomic Agent's configured approval policy. Review any approval prompt before allowing an action on your connected account.

Connect openFDA to Atomic Agent

  1. Sign up or sign in to the Composio dashboard. Copy your API key.
  2. In Atomic Agent, open the Integrations tab and select Composio. Select API key, press e, paste the key, and press Enter. The tools become available immediately, without a restart.
  3. Ask Atomic Agent to do something in openFDA. It searches Composio for the right tool.
  4. On first use, open the sign-in link returned in the chat. Connect your openFDA account, then return to Atomic Agent to continue.

Headless setup

Add the following line to ~/.atomic-agent/.env, replacing YOUR_COMPOSIO_API_KEY with your key. Start Atomic Agent after saving the file.

bash
COMPOSIO_API_KEY=YOUR_COMPOSIO_API_KEY

What is the openFDA MCP server, and what's possible with it?

The openFDA MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your openFDA account. It provides structured and secure access to public FDA drug and medical device datasets, so your agent can search adverse events, review drug labels and approvals, track recalls and shortages, and analyze medical device records on your behalf.

  • Drug safety and labeling research: Have your agent search drug adverse event reports, medication errors, labels, ingredients, warnings, indications, and dosage information.
  • Medical device oversight: Let the agent find device adverse events, 510(k) clearances, PMA approvals, classifications, UDI records, registrations, and listings.
  • Recall and shortage tracking: Direct your agent to search drug and device recall reports, including status, reason, recalling firm, distribution, and enforcement dates, or find current and historical drug shortages.
  • Drug approval and product research: Instruct your agent to search Drugs@FDA applications, Orange Book products, therapeutic-equivalence data, and National Drug Code directory records.
  • FDA data analysis: Have your agent count records by supported fields across drug and device datasets to compare trends, products, manufacturers, classifications, or report categories.

Use openFDA from Atomic Agent

With your account connected, ask Atomic Agent to work with openFDA in natural language. You can connect more apps through the same Composio integration as you need them.

Visit the Atomic Agent website or inspect the Atomic Agent source code.

Troubleshooting

Why is my API key rejected?

Copy the key directly from the Composio dashboard. Atomic Agent requires ASCII characters because it sends the key in an HTTP header. Remove any extra characters introduced when copying.

Why are Composio tools unavailable after saving a key?

Check that you use Atomic Agent v0.5.6 or later and that Composio is enabled in your configuration. A "composio": { "enabled": false } setting disables the integration while keeping the saved key on disk.

Does Composio have a free plan?

The Hobby plan includes 100,000 tool calls per month. Composio-managed OAuth apps have a lower included allowance. See Composio pricing for the current limits that apply to your connection.

TOOLS

Supported Tools

Every openFDA action and event your agent gets out of the box.

Query Device 510(k) Clearances

Search FDA 510(k) premarket notification clearances for medical devices, including applicants, product codes, decision data, and clearance type, or count clearances by a field.

Query Device Adverse Events

Search FDA MAUDE medical device adverse event reports, including device, patient, event, manufacturer, and narrative data, or count reports by a field.

Query Device Classifications

Search FDA medical device product classifications, including product codes, device class, specialty, regulation, and exemptions, or count classifications by a field.

Query Device COVID-19 Serology Evaluations

Search independent US government evaluations of COVID-19 serological test devices and assay results, or count evaluations by a field.

Query Device PMA Approvals

Search FDA premarket approval applications and supplements for medical devices, including applicants, trade names, product codes, and decision data, or count approvals by a field.

Query Device Recall Enforcement Reports

Search FDA medical device recall enforcement reports, including classification, status, recalling firm, reason, distribution, and enforcement dates, or count reports by a field.

Query Device Recall Records

Search FDA medical device recall records with product, root-cause, corrective-action, contact, and recall-event details, or count recall records by a field; use the enforcement-report action for Recall Enterprise System enforcement classifications and status.

Query Device Registrations and Listings

Search FDA medical device establishment registrations and device listings, including establishment types, products, proprietary names, and premarket numbers, or count records by a field.

Query Device UDI Records

Search FDA Global Unique Device Identification Database records by device identifier, brand, model, company, product code, or other fields, or count UDI records by a field.

Query Drug Adverse Events

Search FDA FAERS drug adverse event and medication error reports, or count reports by a field.

Query Drug Labels

Search prescription and over-the-counter Structured Product Labeling records, including warnings, indications, ingredients, and dosage text, or count labels by a field.

Query Drug NDC Directory

Search National Drug Code Directory product and package records by NDC, name, labeler, ingredient, route, or other fields, or count products by a field.

Query Drug Recall Enforcement Reports

Search FDA drug recall enforcement reports, including classification, status, recalling firm, reason, distribution, and enforcement dates, or count reports by a field.

Query Drugs@FDA Applications

Search Drugs@FDA applications, sponsors, products, and submissions, or count applications by a field.

Query Drug Shortages

Search current and historical FDA drug shortage records, including status, availability, presentation, company, and update dates, or count shortages by a field.

Query Orange Book Drug Products

Search Orange Book approved drug products and therapeutic-equivalence data, or count products by a field.

FAQ

Frequently asked questions

Start with openFDA.It takes 30 seconds.

Managed auth, hosted MCP servers, and every openFDA tool your agent needs.Free to start.

Start building