MCP directory
OM

Openfoodfacts Mcp Server

by github.com/cyanheads · v0.5.0 · updated Nov 24, 2026

Barcode lookup, nutrition search, and product comparison for 3M+ crowd-sourced food products.

Remotenpm

Connect to the hosted server

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

Server URL

https://openfoodfacts.caseyjhand.com/mcp

Claude Code

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

Run it locally

Install the package and point your AI client at it.

npm

npx -y @cyanheads/[email protected]

Environment variables

  • OFF_BASE_URL

    Open Food Facts API base URL override. Useful for testing against a mock server.

  • OFF_RATE_LIMIT_PRODUCT

    Product read rate limit (requests/min). Matches the 15 req/min/IP Open Food Facts documents for product reads.

  • OFF_RATE_LIMIT_SEARCH

    Search rate limit (requests/min).

  • OFF_RATE_LIMIT_TAXONOMY

    Taxonomy resolution rate limit (requests/min). Applies to the live tag-vocabulary lookups off_browse_taxonomy makes, to tag-value resolution on text searches, and to checking allergen and trace exclusions on every search; a spent budget falls back to the offline sample, or to the tag value as normal...

  • 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.

  • OFF_BASE_URL

    Open Food Facts API base URL override. Useful for testing against a mock server.

  • OFF_RATE_LIMIT_PRODUCT

    Product read rate limit (requests/min). Matches the 15 req/min/IP Open Food Facts documents for product reads.

  • OFF_RATE_LIMIT_SEARCH

    Search rate limit (requests/min).

  • OFF_RATE_LIMIT_TAXONOMY

    Taxonomy resolution rate limit (requests/min). Applies to the live tag-vocabulary lookups off_browse_taxonomy makes, to tag-value resolution on text searches, and to checking allergen and trace exclusions on every search; a spent budget falls back to the offline sample, or to the tag value as normal...

  • 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