# API Ninjas MCP for AI Agents MCP

> API Ninjas gives your AI client instant access to fitness, nutrition, and health data. Calculate Basal Metabolic Rate (BMR), Total Daily Energy Expenditure (TDEE), body fat percentages, and calorie burn for any activity. It also lets you search thousands of exercises or check the nutritional facts for specific food items.

## Overview
- **Category:** data-analytics
- **Price:** Free
- **Tags:** fitness-tracking, calorie-calculator, health-data, exercise-search, nutrition-info, lifestyle-tools

## Description

You don't need to switch between multiple spreadsheets or look up complex metabolic formulas anymore. This MCP connects your AI client directly to a massive library of health data. Instead of manually calculating Basal Metabolic Rate (BMR) or estimating body fat using different formulas, your agent runs the necessary computations instantly.

Need to plan a workout? Your agent can search thousands of exercises by muscle group and difficulty level, giving you step-by-step instructions right away. Planning meals is easy too; just ask for nutrition facts on any food item—it delivers calories, protein, carbs, fat, and more. This robust toolset ensures that whether you're a personal trainer checking client metrics or an athlete tracking daily steps, your AI agent has the data it needs to act immediately. It’s one of the most powerful health-related MCPs available on the Vinkius catalog.

## Tools

### get_bmr
Calculates a person's Basal Metabolic Rate (BMR) using weight, height, age, and gender input.

### get_body_fat
Estimates body fat percentage by requiring measurements of the waist, neck, and hip circumference.

### get_calories_burned
Calculates estimated calories burned for a specific activity given the user's weight and duration.

### get_exercises
Searches a database of over 1000 exercises by name, muscle group (like glutes or chest), equipment, or difficulty level.

### get_nutrition
Provides detailed nutritional facts for any food item per 100g serving, including carbs, fat, and protein.

### get_sleep
Recommends an appropriate sleep duration range based on the user's age and gender.

### get_steps
Calculates both estimated calories burned and distance traveled using a step count, with optional weight and height inputs for accuracy.

### get_tdee
Determines the Total Daily Energy Expenditure (TDEE) by factoring in weight, height, age, gender, and activity level.

## Prompt Examples

**Prompt:** 
```
I'm 45, female, 72kg, 168cm. I walk about 8000 steps a day and run twice a week. What are my daily calorie needs?
```

**Response:** 
```
**Activity Profile: High Activity**

*   **BMR:** ~1,350 calories/day (minimum)
*   **TDEE Estimate:** You burn roughly 2,400 - 2,600 calories per day. This accounts for your daily steps and regular running.
*   **Goal:** To maintain weight, aim for this range. If you want to lose weight, subtract 300-500 calories.
```

**Prompt:** 
```
Find three exercises targeting my lower back that I can do at home with no equipment.
```

**Response:** 
```
**Target: Lower Back**

1.  **Supermans:** *Difficulty:* Beginner | *Equipment:* Bodyweight | *Instructions:* Lie face down, raise arms and legs simultaneously. Hold for 2 seconds. (3 sets of 15 reps).
2.  **Glute Bridges:** *Difficulty:* Beginner | *Equipment:* Bodyweight | *Instructions:* Lying on your back, lift hips until body forms a straight line from shoulders to knees. (3 sets of 20 reps).
3.  **Bird-Dogs:** *Difficulty:* Intermediate | *Equipment:* Bodyweight | *Instructions:* On hands and knees, extend opposite arm and leg while keeping the core tight. (15 reps per side).
```

**Prompt:** 
```
What are the nutritional facts for an avocado and a cup of oatmeal?
```

**Response:** 
```
**Nutrition Breakdown (per 100g / standard serving)**

*   **Avocado:** Calories: 160, Protein: 2g, Carbs: 9g, Fat: 15g, Fiber: 7g.
*   **Oatmeal:** Calories: 150, Protein: 5g, Carbs: 27g, Fat: 3g, Fiber: 4g. 

These values help you track healthy fats and complex carbs against your daily goals.
```

## Capabilities

### Calculate metabolic rates
Determine a user's Basal Metabolic Rate (BMR) and their Total Daily Energy Expenditure (TDEE) based on weight, height, age, and activity level.

### Estimate body composition metrics
Calculate estimated body fat percentage using specific measurements like waist, neck, and hip circumference.

### Search detailed exercise libraries
Find thousands of exercises by filtering criteria such as muscle group, equipment needed, or difficulty level, complete with instructions.

### Determine nutritional content
Retrieve full nutritional breakdowns for any food item, including calories, protein, fat, and fiber per 100g serving.

### Track activity output
Estimate calories burned and distance traveled based on step count or specific physical activities over a duration.

## Use Cases

### Building a Client Program
A personal trainer needs to build a workout for a client who has specific weaknesses. The agent uses `get_tdee` first, then searches the database using `get_exercises` filtered by 'hamstrings' and 'intermediate' difficulty to suggest perfect routines.

### Meal Planning for Athletes
An athlete needs to ensure their diet hits specific macronutrient goals. They prompt the agent, which uses `get_nutrition` on several food items, giving a detailed breakdown of calories, protein, and carbs per meal plan.

### Post-Workout Status Check
A user finishes a run and needs to know their recovery metrics. They use the agent to calculate the total distance and estimated calories using `get_steps`, providing immediate feedback on performance output.

## Benefits

- Eliminate manual calculations. You get instant, accurate results determining your Total Daily Energy Expenditure (TDEE) using the `get_tdee` tool.
- Find targeted workouts quickly. The `get_exercises` tool lets you filter exercises by muscle group and difficulty level in seconds.
- Accurate diet planning is simple. Use `get_nutrition` to get full nutritional breakdowns for any food item, keeping your clients' diets on track.
- Track progress without effort. With the `get_steps` tool, your agent calculates both distance and estimated calories from just a step count.
- Know when to rest. The `get_sleep` tool provides clear recommendations on optimal sleep duration based on demographics.

## How It Works

The bottom line is, your AI client handles all the complex math and data retrieval from this MCP so you just get the final answer.

1. Subscribe to the API Ninjas MCP, then input your personal API key into your AI client.
2. Your agent accesses the full catalog of health data and fitness functions through natural conversation.
3. You ask a specific question, like 'What are low-intensity cardio exercises for beginners?' or 'Calculate my TDEE.' The tool returns the precise data needed.

## Frequently Asked Questions

**How do I use the API Ninjas MCP to calculate my TDEE?**
Just ask your agent for your Total Daily Energy Expenditure, providing your weight, height, age, gender, and typical activity level. The tool gives you a specific calorie range needed to maintain or change your body weight.

**Can API Ninjas help me build a workout plan?**
Yes. You can use the MCP to search for exercises by muscle group, difficulty, and equipment type. This allows you to program specific, highly targeted workouts without manual searching.

**Does this MCP calculate body fat percentage accurately?**
It provides an estimate using established formulas like the US Navy method. You must provide your waist, neck, and hip measurements for the best results from the API Ninjas MCP.

**I need to check if a food is good for me; can API Ninjas help?**
The MCP lets you look up nutrition facts on any food item. You get detailed metrics like protein, fiber, sodium, and fat per 100g serving right away.

**Is this better than using a spreadsheet for fitness data?**
Absolutely. Instead of manually inputting formulas and checking sources, your AI client uses the API Ninjas MCP to run all calculations instantly, reducing human error and saving time.