← Back to Plugins
MCP Server MCP

io.github.cyanheads/openfoodfacts-mcp-server

github By github 👁 1 views ▲ 0 votes

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

Homepage Verified source GitHub

Install

npx -y @cyanheads/[email protected]

Configuration Example

{
  "remotes": [
    {
      "type": "streamable-http",
      "url": "https://openfoodfacts.caseyjhand.com/mcp"
    }
  ],
  "packages": [
    {
      "registryType": "npm",
      "registryBaseUrl": "https://registry.npmjs.org",
      "identifier": "@cyanheads/openfoodfacts-mcp-server",
      "version": "0.3.1",
      "runtimeHint": "bun",
      "transport": {
        "type": "stdio"
      },
      "packageArguments": [
        {
          "value": "run",
          "type": "positional"
        },
        {
          "value": "start:stdio",
          "type": "positional"
        }
      ],
      "environmentVariables": [
        {
          "description": "Open Food Facts API base URL override. Useful for testing against a mock server.",
          "format": "string",
          "default": "https://world.openfoodfacts.org",
          "name": "OFF_BASE_URL"
        },
        {
          "description": "Product read rate limit (requests/min). Matches the 15 req/min/IP Open Food Facts documents for product reads.",
          "format": "string",
          "default": "15",
          "name": "OFF_RATE_LIMIT_PRODUCT"
        },
        {
          "description": "Search rate limit (requests/min).",
          "format": "string",
          "default": "10",
          "name": "OFF_RATE_LIMIT_SEARCH"
        },
        {
          "description": "Taxonomy resolution rate limit (requests/min). Applies to the live tag-vocabulary lookups off_browse_taxonomy makes; a spent budget falls back to the offline sample rather than failing.",
          "format": "string",
          "default": "10",
          "name": "OFF_RATE_LIMIT_TAXONOMY"
        },
        {
          "description": "Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').",
          "format": "string",
          "default": "info",
          "name": "MCP_LOG_LEVEL"
        }
      ]
    },
    {
      "registryType": "npm",
      "registryBaseUrl": "https://registry.npmjs.org",
      "identifier": "@cyanheads/openfoodfacts-mcp-server",
      "version": "0.3.1",
      "runtimeHint": "bun",
      "transport": {
        "type": "streamable-http",
        "url": "http://localhost:3010/mcp"
      },
      "packageArguments": [
        {
          "value": "run",
          "type": "positional"
        },
        {
          "value": "start:http",
          "type": "positional"
        }
      ],
      "environmentVariables": [
        {
          "description": "Open Food Facts API base URL override. Useful for testing against a mock server.",
          "format": "string",
          "default": "https://world.openfoodfacts.org",
          "name": "OFF_BASE_URL"
        },
        {
          "description": "Product read rate limit (requests/min). Matches the 15 req/min/IP Open Food Facts documents for product reads.",
          "format": "string",
          "default": "15",
          "name": "OFF_RATE_LIMIT_PRODUCT"
        },
        {
          "description": "Search rate limit (requests/min).",
          "format": "string",
          "default": "10",
          "name": "OFF_RATE_LIMIT_SEARCH"
        },
        {
          "description": "Taxonomy resolution rate limit (requests/min). Applies to the live tag-vocabulary lookups off_browse_taxonomy makes; a spent budget falls back to the offline sample rather than failing.",
          "format": "string",
          "default": "10",
          "name": "OFF_RATE_LIMIT_TAXONOMY"
        },
        {
          "description": "The hostname for the HTTP server.",
          "format": "string",
          "default": "127.0.0.1",
          "name": "MCP_HTTP_HOST"
        },
        {
          "description": "The port to run the HTTP server on.",
          "format": "string",
          "default": "3010",
          "name": "MCP_HTTP_PORT"
        },
        {
          "description": "The endpoint path for the MCP server.",
          "format": "string",
          "default": "/mcp",
          "name": "MCP_HTTP_ENDPOINT_PATH"
        },
        {
          "description": "Authentication mode to use: 'none', 'jwt', or 'oauth'.",
          "format": "string",
          "default": "none",
          "name": "MCP_AUTH_MODE"
        },
        {
          "description": "Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').",
          "format": "string",
          "default": "info",
          "name": "MCP_LOG_LEVEL"
        }
      ]
    }
  ]
}
mcp model-context-protocol streamable-http npm

Comments

Sign in to leave a comment

Loading comments...