# API Ninjas MCP for AI Agents AI Agent Connect

> API Ninjas lets your AI agent handle health, fitness, and nutrition data. It pulls exercise details, calculates calories burned, estimates body fat, and provides nutritional facts for thousands of food items. Use it to build workout plans, track daily activity, or get precise metabolic metrics without manual research.

## Overview
- **Category:** data-analytics
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_I0GNmqbM8wXLwEf1IZ3YPA7Iz4CYoKxUNBVoVVLM/ai-agent-connect
- **Tags:** fitness-tracking, calorie-calculator, health-data, exercise-search, nutrition-info, lifestyle-tools

## Description

API Ninjas lets you pull health, fitness, and nutrition data into your AI agent. If you're building a workout plan or trying to figure out the exact macros in a meal, you usually have to jump between a dozen different websites and do the math yourself. This Connector changes that by giving your agent a direct line to a huge database of verified info. You can ask your agent to find specific exercises for a muscle group, calculate how many calories a hike burned, or get the protein count for a specific food. It handles the research so you don't have to. You can find this Connector in the Vinkius catalog to get started. It makes your AI much more useful for health-related tasks because it actually has the data to back up its advice. It's a straightforward way to get accurate numbers without the manual headache of copy-pasting data from various sources. Instead of searching for "how many calories in a banana" or "how many reps for a chest press," you just ask your agent to do it for you. It handles the heavy lifting of looking up protein, carbs, and fats, or calculating things like your Total Daily Energy Expenditure based on your height and weight. It's a huge time saver for anyone who handles fitness data regularly.

## Tools

### get_bmr
Find your Basal Metabolic Rate to see how many calories your body burns at rest. It requires your age, weight, height, and gender.

### get_body_fat
Estimate your body fat percentage using the US Navy method. It calculates your category as lean, fitness, acceptable, or obese.

### get_calories_burned
Calculate calories burned for any activity based on weight and duration. It also provides the MET value for the exercise.

### get_exercises
Search a database of over 1000 exercises by name, muscle group, or difficulty. It returns step-by-step instructions for each move.

### get_nutrition
Get a full nutritional breakdown, including protein, carbs, and fat, for any food item. It provides data per 100g serving.

### get_sleep
Get a recommended sleep range based on your age and gender. It also tells you if your current sleep is enough.

### get_steps
Convert your daily step count into distance and calories burned. You can include weight and height for more precision.

### get_tdee
Calculate your Total Daily Energy Expenditure based on your activity level and body stats. It gives a daily calorie breakdown.

## Prompt Examples

**Prompt:** 
```
Find some chest exercises for a beginner.
```

**Response:** 
```
Here are some great beginner-friendly chest exercises you can try:

| Exercise | Equipment | Difficulty |
| :--- | :--- | :--- |
| **Push-ups** | Bodyweight | Beginner |
| **Dumbbell Fly** | Dumbbells | Beginner |
| **Cable Crossover** | Cable Machine | Beginner |

**Push-ups Instructions:**
1. Start in a high plank position.
2. Lower your body until your chest nearly touches the floor.
3. Push back up to the starting position.
4. Keep your core tight throughout.
```

**Prompt:** 
```
What's the nutrition info for a banana?
```

**Response:** 
```
Here is the nutritional breakdown for a **Banana** (per 100g serving):

*   **Calories:** 89 kcal
*   **Protein:** 1.1g
*   **Carbohydrates:** 22.8g
*   **Fat:** 0.3g
*   **Fiber:** 2.6g
*   **Sugar:** 12.2g
*   **Potassium:** 358mg
```

**Prompt:** 
```
Calculate my BMR. I'm 30 years old, male, 80kg, 180cm.
```

**Response:** 
```
Based on the details provided, here is your metabolic data:

**Basal Metabolic Rate (BMR):** 1,795 calories/day

*This is the number of calories your body burns at rest. To find your total daily needs, you should multiply this by your activity factor (usually between 1.2 and 1.9).* 
```

## Capabilities

### Search for exercises
Find specific moves by muscle group, difficulty, or name with step-by-step instructions.

### Calculate calorie burn
Get accurate calorie counts for various activities based on your weight and duration.

### Look up nutrition facts
Retrieve protein, carbs, and fat data for thousands of different food items.

### Estimate body fat
Calculate your body fat percentage and category using the US Navy method.

### Calculate metabolic rates
Get your BMR and TDEE based on your age, height, weight, and activity level.

### Get sleep recommendations
Receive tailored sleep duration advice based on your age and gender.

### Convert steps to distance
Turn your daily step count into measurable distance and calories burned.

## Use Cases

### Finding beginner-friendly moves
A personal trainer needs to find three beginner-friendly exercises for the lats. They ask the agent to search the database and provide step-by-step guides.

### Quick nutrition lookups
A nutritionist wants to know the sodium and fiber content of a specific fruit. They ask the agent to pull the data from the nutrition database.

### Calculating hike burn
A runner wants to know how many calories they burned during a 45-minute hike. They give the agent their weight and the activity name to get a precise number.

### Setting daily calorie goals
A weight loss client wants to know their daily calorie needs. The agent uses the height, weight, and age to calculate their TDEE and BMR.

## Benefits

- Stop manual searching by getting instant exercise instructions and muscle group data using get_exercises.
- Build precise diets with get_nutrition pulling protein, carbs, and fat stats for thousands of foods.
- Calculate accurate metabolic metrics like BMR and TDEE using get_bmr and get_tdee for better goal setting.
- Track activity more effectively by converting steps to calories and distance with get_steps.
- Improve recovery by getting tailored sleep recommendations based on age and gender with get_sleep.
- Monitor body composition trends using get_body_fat to see your progress in lean or fitness categories.

## How It Works

The bottom line is you get instant access to verified health and nutrition data through your AI.

1. Subscribe to the Connector and grab your API Ninjas key from their website.
2. Paste your API key into your AI client settings.
3. Ask your agent to find exercises, calculate calories, or pull nutrition data.

## Frequently Asked Questions

**Can the API Ninjas MCP help me find specific exercises?**
Yes, it searches a database of over 1,000 exercises. You can filter by muscle group, difficulty level, and type to get step-by-step instructions.

**How does API Ninjas calculate calories for my workouts?**
It calculates calories burned based on the specific activity name, your weight in kilograms, and the duration of the session.

**Can I use API Ninjas to see the protein content of my food?**
Yes, it provides a full nutritional breakdown for various food items, including protein, carbohydrates, fats, and fiber.

**Does the API Ninjas MCP give sleep advice?**
It provides recommended sleep duration ranges based on your age and gender, and it can tell you if your current sleep is adequate.

**Can I get my body fat percentage with this?**
Yes, it uses the US Navy method to estimate your body fat percentage and categorize you as lean, fitness, acceptable, or obese.

**Is API Ninjas good for personal trainers?**
It is a great tool for trainers to quickly find exercises, calculate client BMR and TDEE, and pull accurate nutrition facts for meal plans.

**How do I get an API Ninjas key?**
Sign up for free at [**api-ninjas.com/register**](https://api-ninjas.com/register). Free tier includes 10,000 requests/month.

**What exercises are available?**
The database includes 1000+ exercises covering cardio, strength training, stretching, plyometrics, powerlifting, Olympic weightlifting and strongman. Each exercise includes step-by-step instructions and equipment needed.

**How can I calculate my daily calorie needs?**
Use the `calculate_bmr` tool to find your Basal Metabolic Rate, then multiply it by your activity level to get your TDEE (Total Daily Energy Expenditure). This tells you exactly how many calories you need to maintain your current weight.