AgentHubAgentHub

Open Food Facts

MCP ServerMCP Registry官方收录

io.github.domdomegg/openfoodfacts-mcp · v2.5.1

Search and contribute to the Open Food Facts database.

概览

Open Food Facts 是一个MCP Server,收录自 官方 MCP Registry。支持 stdio、streamable-http 传输。本页提供 Cursor、Claude Code 等客户端的安装配置片段。

安装

选择你的平台查看安装方式

{
  "mcpServers": {
    "openfoodfacts-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "openfoodfacts-mcp"
      ],
      "env": {
        "OFF_USER_AGENT": "<OFF_USER_AGENT>"
      }
    }
  }
}

环境变量

OFF_USER_AGENT必填

User-Agent string in format 'AppName/Version (email)'. Required by the Open Food Facts API.

OFF_USER_ID可选

Open Food Facts user ID (optional, needed for write operations).

OFF_PASSWORD可选secret

Open Food Facts password (optional, needed for write operations).

OFF_COUNTRY可选

Country subdomain (default: 'world').

MCP_TRANSPORT必填

Transport type.

OFF_USER_AGENT必填

User-Agent string in format 'AppName/Version (email)'. Required by the Open Food Facts API.

OFF_USER_ID可选

Open Food Facts user ID (optional, needed for write operations).

OFF_PASSWORD可选secret

Open Food Facts password (optional, needed for write operations).

OFF_COUNTRY可选

Country subdomain (default: 'world').

相关资源

统一 Manifest

{
  "id": "io.github.domdomegg/openfoodfacts-mcp",
  "type": "mcp-server",
  "version": "2.5.1",
  "displayName": "Open Food Facts",
  "description": "Search and contribute to the Open Food Facts database.",
  "repository": {
    "url": "https://github.com/domdomegg/openfoodfacts-mcp.git",
    "source": "github"
  },
  "homepage": "https://github.com/domdomegg/openfoodfacts-mcp#readme",
  "distribution": {
    "packages": [
      {
        "registryType": "npm",
        "identifier": "openfoodfacts-mcp",
        "version": "2.5.1",
        "runtimeHint": "npx",
        "transport": "stdio",
        "environmentVariables": [
          {
            "name": "OFF_USER_AGENT",
            "description": "User-Agent string in format 'AppName/Version (email)'. Required by the Open Food Facts API.",
            "isRequired": true
          },
          {
            "name": "OFF_USER_ID",
            "description": "Open Food Facts user ID (optional, needed for write operations)."
          },
          {
            "name": "OFF_PASSWORD",
            "description": "Open Food Facts password (optional, needed for write operations).",
            "isSecret": true
          },
          {
            "name": "OFF_COUNTRY",
            "description": "Country subdomain (default: 'world')."
          }
        ]
      },
      {
        "registryType": "npm",
        "identifier": "openfoodfacts-mcp",
        "version": "2.5.1",
        "runtimeHint": "npx",
        "transport": "streamable-http",
        "environmentVariables": [
          {
            "name": "MCP_TRANSPORT",
            "description": "Transport type.",
            "isRequired": true
          },
          {
            "name": "OFF_USER_AGENT",
            "description": "User-Agent string in format 'AppName/Version (email)'. Required by the Open Food Facts API.",
            "isRequired": true
          },
          {
            "name": "OFF_USER_ID",
            "description": "Open Food Facts user ID (optional, needed for write operations)."
          },
          {
            "name": "OFF_PASSWORD",
            "description": "Open Food Facts password (optional, needed for write operations).",
            "isSecret": true
          },
          {
            "name": "OFF_COUNTRY",
            "description": "Country subdomain (default: 'world')."
          }
        ]
      }
    ],
    "remotes": []
  },
  "dependencies": [],
  "installTargets": [
    "claude-code",
    "claude-desktop",
    "cursor",
    "vscode"
  ],
  "keywords": [],
  "provenance": {
    "origin": "official-mcp-registry",
    "originalId": "io.github.domdomegg/openfoodfacts-mcp",
    "originalUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.domdomegg%2Fopenfoodfacts-mcp/versions/latest",
    "isOfficial": true,
    "status": "active"
  }
}
Open Food Facts — MCP Server 安装与配置 · AgentHub