MCP directory
UM

Usda Mcp Server

by github.com/cyanheads · v0.2.3 · updated Nov 19, 2026

Search foods, compare nutrients, and look up the full USDA FoodData Central database.

Remotenpm

Connect to the hosted server

Add this URL as a custom connector in your AI client.

Server URL

https://usda.caseyjhand.com/mcp

Claude Code

claude mcp add --transport http usda-mcp-server https://usda.caseyjhand.com/mcp

Run it locally

Install the package and point your AI client at it.

npm

npx -y @cyanheads/[email protected]

Environment variables

  • USDA_FDC_API_KEYrequired

    USDA FoodData Central API key from data.gov. Required for all food data requests.

  • USDA_CLAMP_LIMITS

    When true, an over-limit request is served up to its cap with a notice: usda_get_foods fetches the first 20 distinct FDC IDs and usda_compare_foods compares the first 5, returning the rest as deferredIds, and usda_search_foods serves a pageSize above 200 at 200. false rejects more than 20 usda_get_f...

  • MCP_LOG_LEVEL

    Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').

npm

npx -y @cyanheads/[email protected]

Environment variables

  • MCP_TRANSPORT_TYPE

    Selects the HTTP transport.

  • USDA_FDC_API_KEYrequired

    USDA FoodData Central API key from data.gov. Required for all food data requests.

  • USDA_CLAMP_LIMITS

    When true, an over-limit request is served up to its cap with a notice: usda_get_foods fetches the first 20 distinct FDC IDs and usda_compare_foods compares the first 5, returning the rest as deferredIds, and usda_search_foods serves a pageSize above 200 at 200. false rejects more than 20 usda_get_f...

  • MCP_HTTP_HOST

    The hostname for the HTTP server.

  • MCP_HTTP_PORT

    The port to run the HTTP server on.

  • MCP_HTTP_ENDPOINT_PATH

    The endpoint path for the MCP server.

  • MCP_AUTH_MODE

    Authentication mode to use: 'none', 'jwt', or 'oauth'.

  • MCP_LOG_LEVEL

    Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').

More from github.com/cyanheads

More MCP servers