SafetySearch

SafetySearch

Real-time FDA food safety data: recalls, adverse events, analysis.

0
Stars
1
Forks
0
Releases

Overview

SafetySearch is a modular MCP server that exposes FDA food safety data through eight specialized tools. It enables users to search recalls by product description, product type, specific product, classification, code information, and date range; and to examine adverse events and symptom summaries for foods. The server architecture centers on server.py as the MCP entrypoint, a safetyscore package housing tool logic, and an api_client that handles asynchronous HTTP requests to the openFDA API endpoints (enforcement and adverse events). The tools reside in safetyscore/tools/food.py and leverage openFDA data to provide detailed analyses, safety insights, and reporting. A test suite under test_safetyscore ensures reliability. The project relies on Python 3.10+, MCP CLI, and dependencies like httpx and pydantic. Endpoints used include https://api.fda.gov/food/enforcement.json and https://api.fda.gov/food/event.json. The Quick Start describes installation via MCP CLI or uv, and provides commands to run the inspector, start the server, and install for production. This description focuses on MCP-level access to FDA safety information, structured around modular tools.

Details

Owner
surabhya
Language
Python
License
Updated
2025-12-07

Features

search_recalls_by_product_description

Searches for food recalls with detailed analysis, safety insights, and comprehensive reporting.

search_recalls_by_product_type

Searches for recalls by product type with detailed analysis, company trends, and safety recommendations.

search_recalls_by_specific_product

Checks for recalls on specific products with detailed safety information and recommendations.

search_recalls_by_classification

Searches for recalls by classification with detailed analysis and risk assessment.

search_recalls_by_code_info

Searches for recalls by code info with detailed product tracking and safety alerts.

search_recalls_by_date

Searches for recalls by date range with detailed timeline analysis and safety trends.

search_adverse_events_by_product

Searches for adverse events with detailed case analysis and safety insights.

get_symptom_summary_for_product

Gets detailed symptom analysis, case details, and safety insights for a specific food product.

Tags

FDAFood Safetyrecallsadverse eventsopenFDAMCPdata accessanalyticstrendsFDA API