io.github.schnueck/bring-photo-mcp

Registre officiel Médias et design

Add products to Bring! from a photo — MCP for AI recognition, catalog matching, and verified writes.

Installation

Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).

NPM package bring-photo-mcp
Claude Code
claude mcp add bring-photo-mcp -e 'BRING_ENV=<BRING_ENV>' -e 'BRING_EMAIL=<BRING_EMAIL>' -e 'BRING_PASSWORD=<your bring_password>' -e 'BRING_DEFAULT_LIST=<BRING_DEFAULT_LIST>' -e 'BRING_ALLOWED_LISTS=<BRING_ALLOWED_LISTS>' -e 'BRING_LOCALE=de-DE' -e 'BRING_TEST_ITEM_PREFIX=MCP-TEST-' -e 'BRING_TEST_SECOND_LIST=<BRING_TEST_SECOND_LIST>' -- npx -y bring-photo-mcp@1.0.2
Configuration JSON (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "bring-photo-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "bring-photo-mcp@1.0.2"
            ],
            "env": {
                "BRING_ENV": "<BRING_ENV>",
                "BRING_EMAIL": "<BRING_EMAIL>",
                "BRING_PASSWORD": "<your bring_password>",
                "BRING_DEFAULT_LIST": "<BRING_DEFAULT_LIST>",
                "BRING_ALLOWED_LISTS": "<BRING_ALLOWED_LISTS>",
                "BRING_LOCALE": "de-DE",
                "BRING_TEST_ITEM_PREFIX": "MCP-TEST-",
                "BRING_TEST_SECOND_LIST": "<BRING_TEST_SECOND_LIST>"
            }
        }
    }
}

Variables d'environnement

  • BRING_ENV obligatoire Runtime boundary: use test for dedicated test lists or prod for explicitly allowlisted production lists.
  • BRING_EMAIL obligatoire Email address of the Bring account.
  • BRING_PASSWORD obligatoire secret Password of the Bring account. Store it only in the client or secret-manager environment.
  • BRING_DEFAULT_LIST obligatoire Exact name of the default Bring list.
  • BRING_ALLOWED_LISTS obligatoire Comma-separated exact names of every Bring list the server may access.
  • BRING_LOCALE Bring catalog locale.
  • BRING_TEST_ITEM_PREFIX Required non-empty item-name prefix for opt-in live E2E runs in test mode.
  • BRING_TEST_SECOND_LIST Optional exact name of a second dedicated test list for copy, move, and multi-list E2E checks.

Documentation

Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.

Sommaire
  1. Bring Photo MCP v1
  2. Installation
  3. Distributable artifacts
  4. Configuration
  5. Opt-in live E2E
  6. Architecture
  7. Tools
  8. Error codes
  9. Development and verification
  10. Security boundaries and rollback

Bring Photo MCP v1

English | Deutsch

Turn product photos into Bring! shopping-list items.

Show your AI agent a package, label, or product photo and say: “Add this to my shopping list.” Bring Photo MCP lets the agent identify the product, match it with the Bring! catalog, select the right category and icon, attach the photo, and add the verified result to your Bring! list.

It also provides the usual list operations—searching, adding, checking, moving, copying, and removing items—but the photo-first workflow is the point: less typing, fewer ambiguous product names, and the original product image directly on the list.

Bring Photo MCP is a local, agent-neutral TypeScript MCP server. The executable stdio entrypoint starts only with locally validated environment variables; this repository contains no Hermes or client runtime configuration.

Installation

Requirements: Node.js 20+ and npm.

npm install
npm run typecheck
npm run lint
npm test
npm run build

The official MCP TypeScript SDK (@modelcontextprotocol/sdk) is used. npm start builds the project and starts src/index.ts as a stdio server. Startup validates the configuration and authenticates with Bring only afterwards; this repository intentionally contains no Hermes or client runtime configuration.

Distributable artifacts

The package is prepared for public npm publication, constrained by an explicit files allowlist, and includes a bring-photo-mcp stdio binary entrypoint. The public thin-skill guidance is in SKILL.md; tested client templates are in docs/MCP-CLIENT-CONFIGURATION.md. Migration and rollback without runtime cutover are specified in docs/MIGRATION-ROLLBACK.md.

Configuration

Never commit .env with real values. The configuration model expects:

  • BRING_ENV=test|prod
  • BRING_EMAIL, BRING_PASSWORD
  • BRING_DEFAULT_LIST
  • BRING_ALLOWED_LISTS (comma-separated)
  • BRING_LOCALE (default de-DE)
  • BRING_TEST_ITEM_PREFIX (default MCP-TEST-)
  • optional BRING_TEST_SECOND_LIST exclusively for the multi-list E2E

src/config.ts validates the values. In PROD, the service accepts only allowlisted lists; the production runtime must additionally point to a pinned release tag. TEST uses a dedicated allowlisted list and temporary prefixed test items only.

Opt-in live E2E

npm run test:e2e is deliberately not part of npm test and was not run here. It starts only with a fully configured environment and rejects anything other than BRING_ENV=test. BRING_ALLOWED_LISTS must contain exactly BRING_DEFAULT_LIST; with BRING_TEST_SECOND_LIST, it must contain exactly both named configured TEST lists. A non-empty BRING_TEST_ITEM_PREFIX is required.

The harness creates two synthetic PNG files in the temporary directory, verifies add/read-back as well as photo replace/remove, and removes all of its own prefixed items in finally, followed by an absence check. Copy, move, and multi-list operations run only with an explicit BRING_TEST_SECOND_LIST; without it, the harness reports an honest skip.

Architecture

  • src/bring-adapter.ts: deterministic Bring gateway interface and HTTP protocol adapter. Legacy item bodies are generated only with URLSearchParams; details are read through bringlists/{listUuid}/details; the catalog is loaded from https://web.getbring.com/locale/catalog.{locale}.json; detail metadata uses ISO-8859-1 multipart; photos use native FormData with the imageData field. An explicit transferImage gateway capability downloads source image bytes without Bring authentication and uploads them only to the target.
  • src/bring-service.ts: business rules, list allowlisting, classification and duplicate rules, read-back verification, copy-before-delete for moves, and per-list results.
  • src/mcp-server.ts: 15 Zod-validated MCP tools; no transport layer.
  • src/redaction.ts: redacts password/token fields, UUID-like IDs, and local paths from error text.

Write operations are successful only after the item and detail have been read again. The detail must contain a UUID, userIconItemId, and userSectionId; photos additionally require imageUrl. Broken/orphan details are not used unless itemId matches exactly.

Tools

Read: bring_list_lists, bring_list_items, bring_search_catalog, bring_list_categories, bring_suggest_classification, bring_get_item.

Write: bring_add_item, bring_attach_photo, bring_replace_photo, bring_remove_photo, bring_copy_item, bring_move_item, bring_check_item, bring_uncheck_item, bring_remove_item.

bring_add_item always requires icon_item_id and category_id; both must match within the loaded catalog. The default for duplicate_policy is fail; update_exact changes only the exact same identity. Multi-list calls always return one result per target list and use status: "partial" for partial failures.

Error codes

CONFIGURATION, LIST_NOT_ALLOWED, LIST_NOT_FOUND, ITEM_NOT_FOUND, INVALID_CLASSIFICATION, DUPLICATE_AMBIGUOUS, VERIFICATION_FAILED, UPSTREAM_FAILURE, IMAGE_INVALID, CLASSIFICATION_UNCERTAIN.

Error text contains no credentials, UUIDs, or image paths.

Development and verification

This project was developed with AI-assisted coding and documentation tools under human direction and review. Its automated tests, isolated live E2E checks, and release artifacts were independently verified before publication. Thomas Schnuecker remains the project maintainer and is responsible for releases.

Security boundaries and rollback

Credentials, real list UUIDs, and product photos do not belong in Git, fixtures, or logs. This repository triggers no login or live operation. The existing bring-safe solution remains unchanged as the rollback until an explicitly approved cutover.

TEST E2E and the eight-photo regression are intentionally not active automatically: they require an approved dedicated TEST list, temporary prefixed items, and supplied test images. Afterwards, remove every generated TEST item and photo through read-back and verify their absence.

Questions fréquentes

Qu'est-ce que io.github.schnueck/bring-photo-mcp ?

Add products to Bring! from a photo — MCP for AI recognition, catalog matching, and verified writes.

Comment installer io.github.schnueck/bring-photo-mcp ?

Il s'exécute sur votre machine. Dans Claude Code : claude mcp add bring-photo-mcp -e 'BRING_ENV=<BRING_ENV>' -e 'BRING_EMAIL=<BRING_EMAIL>' -e 'BRING_PASSWORD=<your bring_password>' -e 'BRING_DEFAULT_LIST=<BRING_DEFAULT_LIST>' -e 'BRING_ALLOWED_LISTS=<BRING_ALLOWED_LISTS>' -e 'BRING_LOCALE=de-DE' -e 'BRING_TEST_ITEM_PREFIX=MCP-TEST-' -e 'BRING_TEST_SECOND_LIST=<BRING_TEST_SECOND_LIST>' -- npx -y bring-photo-mcp@1.0.2. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.

Faut-il une clé API pour io.github.schnueck/bring-photo-mcp ?

Oui. Il attend BRING_ENV, BRING_EMAIL, BRING_PASSWORD, BRING_DEFAULT_LIST, BRING_ALLOWED_LISTS, à renseigner dans sa configuration.

io.github.schnueck/bring-photo-mcp est-il open source ?

Oui. Son code est sur GitHub sous licence MIT.

Qui maintient io.github.schnueck/bring-photo-mcp ?

Il est publié par schnueck. AI.tn le référence sans le maintenir ni le recommander.

Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.