Food Data Central MCP Server logo

Food Data Central MCP Server

by jlfwong

This is a Model Context Protocol (MCP) server that provides API access to the USDA's FoodData Central API. It allows users to search for foods and access nutrient information.

View on GitHub

Last updated: N/A

What is Food Data Central MCP Server?

The Food Data Central MCP Server is a server that exposes the USDA's FoodData Central API through the Model Context Protocol. This allows client applications like Claude Desktop to access food data and nutrient information.

How to use Food Data Central MCP Server?

To use the server, you need to clone the repository, install dependencies, build the project, and run the server with your USDA API key. Then, you can configure your MCP client (e.g., Claude Desktop) to connect to the server using the provided configuration details, including the server's command and environment variables.

Key features of Food Data Central MCP Server

  • Search for foods in the USDA FoodData Central database

  • Access food nutrient information

  • Paginated results

  • Support for multiple data types (Foundation, SR Legacy, Survey, Branded)

Use cases of Food Data Central MCP Server

  • Searching for specific foods by keywords

  • Retrieving detailed nutrient information for a particular food

  • Building applications that require access to comprehensive food data

  • Integrating food data into AI assistants like Claude

FAQ from Food Data Central MCP Server

What is the USDA FoodData Central API?

It is a comprehensive resource for food composition data provided by the USDA.

What is an MCP server?

It is a server that uses the Model Context Protocol to expose functionality to MCP clients.

How do I get a USDA API key?

You can obtain a USDA API key from the FoodData Central website.

What data types are supported?

The server supports Foundation, SR Legacy, Survey, and Branded data types.

How can I search for foods?

You can use the search-foods tool with a query parameter to search for foods based on keywords.