salindersidhu/food-mcp-server
If you are the rightful owner of food-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Food MCP Server is a FastAPI-based server that provides endpoints for meal-related data using TheMealDB API.
Food MCP Server
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
- Clone the repository:
git clone git@github.com:salindersidhu/food-mcp-server.git
cd food-mcp-server
- (Recommended) Use uv for environment and dependency management:
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
-
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
- Copy the example environment file:
cp .env.example .env
- Edit the
.env
file and replaceyour_api_key_here
with your actual USDA API key
-
(Optional) Add to Claude Desktop as a tool:
-
Run the following command to register this server as a tool in Claude Desktop:
uv run mcp install main.py
-
Running
To start the MCP server locally:
mcp run main.py
Production
- Merge your changes into the main branch.
- 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.