# Food Mcp Server

> A FastAPI-based MCP server that exposes endpoints for searching meals, fetching meal details, categories, and regional dishes using TheMealDB API.

- **Type:** MCP server
- **Install:** `agentstack add mcp-salindersidhu-food-mcp-server`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [salindersidhu](https://agentstack.voostack.com/s/salindersidhu)
- **Installs:** 0
- **Category:** [Integrations](https://agentstack.voostack.com/c/integrations)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [salindersidhu](https://github.com/salindersidhu)
- **Source:** https://github.com/salindersidhu/food-mcp-server

## Install

```sh
agentstack add mcp-salindersidhu-food-mcp-server
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Food MCP Server

[](https://github.com/salindersidhu/food-mcp-server/graphs/contributors)
[](/LICENSE)

## Overview

A FastAPI-based MCP server that exposes endpoints for searching meals, fetching meal details, categories, regional dishes and nutritional information. It combines recipe data from TheMealDB with comprehensive nutritional information from the USDA Food Data Central database, allowing you to explore dishes while understanding their nutritional content. Built using Python and other open source technologies.

   

## Prerequisite Software

| Software | Version |
| :------- | :------ |
| Git      | 2.20.1+ |
| Python   | 3.11+   |

## Getting Started

1. Clone the repository:

```bash
git clone git@github.com:salindersidhu/food-mcp-server.git
cd food-mcp-server
```

2. (Recommended) Use uv for environment and dependency management:

```bash
pip install uv  # Only needed once, if you don't have uv already
uv venv         # Creates a .venv and installs dependencies
uv pip install -e .  # Installs your package in editable mode
```

3. Set up your environment variables:

   - Sign up for a free USDA Food Data Central API key at [https://fdc.nal.usda.gov/api-key-signup.html](https://fdc.nal.usda.gov/api-key-signup.html)
   - Copy the example environment file:
     ```bash
     cp .env.example .env
     ```
   - Edit the `.env` file and replace `your_api_key_here` with your actual USDA API key

4. (Optional) Add to Claude Desktop as a tool:

   - Run the following command to register this server as a tool in Claude Desktop:

     ```bash
     uv run mcp install main.py
     ```

## Running

To start the MCP server locally:

```bash
mcp run main.py
```

## Production

1. Merge your changes into the main branch.
2. Deploy using your preferred Python hosting or container solution.

## Project Structure

    .
    ├── main.py              # MCP server entry point
    ├── pyproject.toml       # Project metadata and dependencies
    ├── LICENSE              # License file
    ├── README.md            # This file
    └── ...

## License

This project is licensed under the Apache License 2.0.

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [salindersidhu](https://github.com/salindersidhu)
- **Source:** [salindersidhu/food-mcp-server](https://github.com/salindersidhu/food-mcp-server)
- **License:** Apache-2.0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** yes
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-salindersidhu-food-mcp-server
- Seller: https://agentstack.voostack.com/s/salindersidhu
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
