fatsecret4
3.5
FatSecret4 MCP Server provides global food and nutrition data for developers and organizations.
FatSecret4 is a robust MCP server designed to provide accurate food and nutrition data globally. It serves as a vital tool for developers, nutritionists, dietitians, and organizations looking to integrate detailed nutrition information into their applications, websites, and devices. With over 15 years of industry experience, the platform is utilized by more than 40,000 developers across 56 countries, contributing to over 700 million API calls every month.
Features
- Comprehensive Database: Access a curated database of nutritional and calorie data across generic foods, branded products, and restaurant items.
- Global Reach: Provides verified local food and nutrition data for 55+ countries and supports 24 languages.
- Advanced Search Capabilities: Features high-quality auto-complete search algorithms and barcode scanning capabilities.
- Extensive Data Coverage: Offers data on more than 1.9 million food items, ensuring language agnostic results across different regions.
- Premier Free Tier: Available for start-ups, non-profits, students, and research organizations, providing unlimited access to the US dataset and premium features with required attribution.
MCP Tools
- Food Search v1: Conducts a search in the food database using specified search expressions. Returns detailed nutritional information for the queried food.
- Food Get: Retrieves food elements best matching the search expression, ordered by relevancy.
- Food Autocomplete Search (Premier Only): Provides food elements matching the search expression with enhanced relevancy.
- Find ID For Barcode (Premier Only): Returns the food ID matching a specified barcode, supporting various barcode formats.
- Food Search v2 (Premier Only): Similar to Food Search v1 but with additional features for premium users.
- Recipe Search: Searches the recipe database using specified search expressions, returning detailed nutritional information, ingredients, and cooking directions.
- Recipe Get: Provides detailed information for a specified recipe, including nutrition values for standard servings.
Usage with Different Platforms
python
python
import requests
url = 'https://api.fatsecret.com/rest/server.api'
params = {
'method': 'foods.search',
'search_expression': 'apple',
'format': 'json',
'oauth_consumer_key': 'your_consumer_key',
'oauth_signature_method': 'HMAC-SHA1',
'oauth_timestamp': 'timestamp',
'oauth_nonce': 'nonce',
'oauth_version': '1.0',
'oauth_signature': 'your_signature'
}
response = requests.get(url, params=params)
print(response.json())