Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"food-data-central-mcp-server": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
This is a Model Context Protocol (MCP) server for exposing API access to the USDA's FoodData Central API.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in health / data
Query and manage PostgreSQL databases directly from AI assistants
🔥 Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM clients.
Manage Supabase projects — databases, auth, storage, and edge functions
Real-time financial market data: stocks, forex, crypto, commodities, and economic indicators
MCP Security Weekly
Get CVE alerts and security updates for Food Data Central Mcp Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
This is a Model Context Protocol (MCP) server for exposing API access to the USDA's FoodData Central API.
npm install
npm run build
The server uses stdio transport, which means it's designed to be run as a subprocess by an MCP client. To run it directly:
# Set the USDA API key as an environment variable
export USDA_API_KEY=your-api-key-here
npm start
For development with hot reloading:
# Set the USDA API key as an environment variable
export USDA_API_KEY=your-api-key-here
npm run dev
To use this MCP server with Claude Desktop:
Open the Claude Desktop settings:
In the Settings pane, click on "Developer" in the left-hand bar, and then click on "Edit Config"
This will create or open a configuration file at:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonAdd the Food Data Central MCP server to the configuration file:
{
"mcpServers": {
"food-data-central": {
"command": "npx",
"args": ["tsx", "/path/to/food-data-central-mcp-server/src/index.ts"],
"env": {
"PATH": "/opt/homebrew/bin",
"USDA_API_KEY": "<INSERT KEY HERE>"
}
}
}
}
Replace /path/to/food-data-central-mcp-server with the absolute path to this repository, and <INSERT KEY HERE> with your actual USDA API key.
Note: If you're on Windows, you may need to adjust the PATH value to include your npm global installation directory.
Save the configuration file and restart Claude Desktop
After restarting, you should see a hammer icon in the bottom right corner of the input box. Click on it to see the available tools.
Now Claude will be able to access the Food Data Central API through this MCP server. You can ask Claude to search for foods, get nutrient information, or retrieve detailed food data.
food://details - Get detailed information about a specific food by ID
fdcId: Food Data Central ID (required)format: Optional. 'abridged' for an abridged set of elements, 'full' for all elements (default)nutrients: Optional. List of up to 25 nutrient numbers (comma-separated)food://foods - Get details for multiple food items using input FDC IDs
fdcIds: List of multiple FDC IDs (required, comma-separated)format: Optional. 'abridged' for an abridged set of elements, 'full' for all elements (default)nutrients: Optional. List of up to 25 nutrient numbers (comma-separated)food://list - Get a paged list of foods
dataType: Optional. Filter on a specific data type (comma-separated list)pageSize: Optional. Maximum number of results to return (default: 50)pageNumber: Optional. Page number to retrieve (default: 1)sortBy: Optional. Field to sort bysortOrder: Optional. Sort order, "asc" or "desc"search-foods - Search for foods using keywords
query: Search terms to find foods (required)dataType: Optional. Filter on a specific data type (array of strings)pageSize: Optional. Maximum number of results to return (default: 50)pageNumber: Optional. Page number to retrieve (default: 1)