USDA api
About
This server allow you to ask questions with way more accurate nutrition facts.
Details
- Author
- rpassafaro
- Categories
- Search, API, Other
Jump to
Setup
Install USDA api in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/rpassafaro/usda-api-mcp
Follow the installation instructions in the repository README, then restart your MCP client.
Add powerful food and nutrition data to Claude for Desktop using the USDA's comprehensive food database.
- Download:USDA Food Tools Installer.zip(11KB)
- Extractand double-click the app
- Get API Key: Free atapi.nal.usda.gov
- Follow the installer- opens in your browser
- Restart Claude- tools appear automatically!
curl -sSL https://raw.githubusercontent.com/yourusername/usda-api-mcp/main/install.sh | bash
- Search Foods- Find any food with detailed nutrition facts
- Nutrition Analysis- Complete nutrient breakdowns
- Brand Information- Ingredients, categories, manufacturers
- Bulk Lookups- Multiple foods at once
- Research Data- USDA's gold-standard food database
- Claude for Desktop (latest version)
- Free USDA API key fromapi.nal.usda.gov
- macOS 10.15+ (GUI installer) or Python 3.11+ (command line)
- "What's the nutrition info for salmon?"
- "Compare chicken breast vs tofu protein"
- "Find high-fiber breakfast foods"
- "Show vitamin content of spinach"
# Clone the repository git clone https://github.com/yourusername/usda-api-mcp.git cd usda-api-mcp # Install dependencies uv sync # Set up environment echo "USDA_API_KEY=your_key_here" > .env # Run the MCP server uv run main.py
usda-api-mcp/ ├── main.py # MCP server implementation ├── gui_installer.py # Web-based GUI installer ├── install.sh # Command-line installer ├── pyproject.toml # Dependencies ├── create_app.sh # Build Mac app bundle └── dist/ # Distribution files
- search_foods(query, page_size, page_number)- Search food database
- get_food_details(fdc_id, nutrients)- Get detailed food information
- get_multiple_foods(fdc_ids, nutrients)- Bulk food lookup
- list_foods(data_type, page_size, page_number)- Browse foods
- get_food_nutrients(fdc_ids, nutrients)- Get specific nutrients
# Build Mac app bundle ./create_app.sh # Create distribution zip cd dist && zip -r "USDA-Food-Tools-Installer.zip" "USDA Food Tools Installer.app" # Test the app open "USDA Food Tools Installer.app"
The server integrates with USDA FoodData Central API v2:
- Base URL:https://api.nal.usda.gov/fdc/v2/
- Authentication: API key in query parameters
- Rate Limits: 3600 requests/hour (free tier)
- Data Types: Foundation, SR Legacy, Survey, Branded foods
- Fork the repository
- Create a feature branch:git checkout -b feature-name
- Make your changes and test thoroughly
- Submit a pull request
# Test MCP server directly uv run main.py # Test GUI installer python3 gui_installer.py # Test command-line installer ./install.sh
The project uses a simple Mac app bundle approach:
- No complex packaging (py2app issues resolved)
- Shell script launcher with embedded Python
- Self-contained with port conflict resolution
- Automatic cleanup of existing processes
Search global news using natural language. Webz.io News Search API returns the most relevant articles and content, with filters for source, country, language, date, sentiment, and category.
Search and access clinical trial data from ClinicalTrials.gov.
An AI-powered API for medical research, unifying ClinicalTrials.gov, PubMed, and FDA databases with intelligent analysis.
Edama remote MCP effectively gives an AI the ability to "understand" food in the same way a nutritionist would, by translating natural language descriptions, images or barcodes into structured nutrition and food.
A server for searching, retrieving, and analyzing articles from the PubMed database.
Medical device regulatory intelligence. Classify devices, query alerts, find pathways across 15 jurisdictions (FDA, EU MDR, HSA, TGA, PMDA, NMPA +9 more). REST API + MCP.
Real-time Amazon data API built for AI agents. 200M+ products, 1B+ reviews, live BSR, pricing, and competitor data as clean JSON. 10 agent skills for market research, competitor monitoring, pricing, listing audits, and more. 1,000 free credits.
A healthcare MCP server for EMRs like Cerner and Epic, providing tools to interact with FHIR data and medical resources.
A Model Context Protocol (MCP) server that provides comprehensive access to the ALMA (Atacama Large Millimeter/submillimeter Array) archive through a clean, extensible architecture.
Bioinformatics data for AI agents — gene search, protein structures, clinical variants, PubMed literature, and DNA sequences via NCBI and UniProt. No API key required.
A nutrition analysis platform integrating Canada's Food Guide recipes with Health Canada's official nutrition databases.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.




