Zaza LensConnect AI

INSTALLATION GUIDE · v1.8.3

Connect your assistant.

Give your assistant local tools for inspecting images, documents and text. Install Node.js 22.13 or newer before running a setup command.

Prepared updatev1.8.3
Available on npmv1.8.3

The current release is available on npm. View npm package ↗

Choose your setup

Use the individual installer for the app where you want Zaza Lens to appear.

Select assistants in your terminal

Use ↑ and ↓ to move, Space to select, A to toggle all, and Enter to review.

npx -y zazalens-mcp@latest setup

Check the connection

For v1.8.3 or newer, use the read-only configuration check npx -y zazalens-mcp@latest status after publication. Restart your assistant and ask it to use Zaza Lens to inspect a non-sensitive paragraph for invisible Unicode characters. A matching configuration alone is not a live connection test.

Content Credentials

Image inspection identifies supported provenance markers. The website offers separate local C2PA verification using the official CAI WASM engine and a bundled trust snapshot. The MCP command-line verifier remains a separate experimental workflow that requires an independently installed, trusted c2patool binary. A valid signature is not proof that a picture is true or human-made.

Local verifier requirements and limitations ↗

Web-based AI assistants

The local installer does not connect browser chat accounts. Hosted MCP is disabled unless configured. A private bearer-token mode and opt-in OAuth inspection-only modes are available to deployers. The WorkOS staging mode requires explicitly allowed test users and a shared quota store; the generic mode requires a compatible introspection provider. A public launch has not been enabled or validated. Files sent to a remote connector leave your device. Use local MCP for private inspection.

Package README

Share the Markdown link with an AI assistant so it can read the full setup and tool instructions.

Zaza Lens MCP

Inspect the evidence. Keep the original. A free local Model Context Protocol (MCP) companion to Zaza Lens by Buildwithzaza.

This repository is intended for https://github.com/89joshuaugwu/zazalens-mcp.

Zaza Lens reads hidden Unicode characters in text and supported metadata in PNG, JPEG and WebP images. A tool name or metadata value is a clue, not proof that content came from AI. The server cannot reliably identify AI-written text, detect invisible image watermarks or verify Content Credentials signatures. It does not claim to erase AI fingerprints.

Install from npm

Install Node.js 22.13 or newer. To choose multiple assistants, run:

npx -y zazalens-mcp@latest setup

This command runs the latest published installer. The connection it creates uses that release until you update it.

Security update: v1.8.1 pins PDF.js 6.2.108 to address CVE-2026-16633. Run npx -y zazalens-mcp@latest setup --replace outside a source checkout to update selected existing connections. Restart those assistants afterward.

Use the arrow keys to move, Space to toggle an assistant, A to toggle all, and Enter to review. Confirm the configuration changes before restarting the selected apps.

For one assistant, run npx -y zazalens-mcp@latest setup <client>. Use the ID that matches the app in which you want to use Zaza Lens.

AppWhere you use itClient ID
Claude DesktopDesktop chatclaude-desktop (also accepts claude)
Claude CodeTerminal or IDE integrationclaude-code
CodexTerminal or IDE extensioncodex
Gemini CLITerminalgemini
GitHub Copilot CLITerminalcopilot
CursorCode editorcursor
WindsurfCascade in the editorwindsurf

Use doctor to check the package. Append --dry-run to preview setup, or use uninstall <client> to remove a connection. In a noninteractive script, setup all --yes and setup all --dry-run retain the six original targets. Use an individual ID for a scripted Claude Code setup. The legacy both alias still addresses Codex and Claude Desktop. File access requires an explicit allowlisted folder.

Settings use each client’s user-level configuration: ~/.gemini/settings.json (or $GEMINI_CLI_HOME/.gemini/settings.json), ~/.cursor/mcp.json, ~/.copilot/mcp-config.json (or $COPILOT_HOME/mcp-config.json), and ~/.codeium/windsurf/mcp_config.json. The reviewed installer adds a tool filter for the Copilot CLI configuration format. Check the target harness and its settings path before setup. For a remote workspace, run setup on the machine where the harness runs. The Windsurf target configures legacy Cascade. If your editor has migrated to Devin Desktop, open Customize → MCPs to configure its separate user profile.

Official client references: Gemini CLI, Cursor, GitHub Copilot CLI, VS Code Copilot, Devin Desktop.

Alternative: permanent local Git clone

For a source-based installation that avoids npm downloads on each MCP startup, install Node.js 22+ and Git, then run in PowerShell:

New-Item -ItemType Directory -Force "$HOME\Tools" | Out-Null
cd "$HOME\Tools"
git clone https://github.com/89joshuaugwu/zazalens-mcp.git
cd .\zazalens-mcp
node .\setup\check.mjs
node .\bin\cli.mjs setup all --source local

You can replace all with codex or claude. Keep the cloned directory in place, because the assistant launches mcp/stdio.mjs from this path. For local-only verification, use node .\bin\cli.mjs doctor; for config removal, use node .\bin\cli.mjs uninstall both.

The older GitHub-backed npx -y github:89joshuaugwu/zazalens-mcp ... command can fail with EALLOWGIT on npm 12. Do not disable npm Git security settings globally to work around this.

Verify installation and troubleshoot
node --version
npm --version
node .\bin\cli.mjs doctor

If Node is not found, reinstall a supported LTS from https://nodejs.org/ and open a fresh terminal. If MCP tools are not visible, restart the connected assistant and inspect its MCP configuration. If you moved the cloned folder, update the Zaza Lens entry with --replace only after reviewing the old entry.

Install it on Windows (manual fallback)

  1. Download this repository using Code > Download ZIP on GitHub (or use the attached repository release ZIP if one has been officially published).
  2. Extract it to a permanent folder, for example C:\Tools\zazalens-mcp. Do not move the folder after connecting it.
  3. Install Node.js 22 or newer from https://nodejs.org/ if you have not already. Check with node --version.
  4. Open the extracted folder and double-click setup\Setup-Codex.cmd or setup\Setup-Claude.cmd. Review the scripts before running them; they only connect the local server to the selected app. They require no administrator permission.
  5. Restart the AI app, then ask: “Use Zaza Lens to inspect the exact hidden characters in this text: Hello​ World.” (There is a zero-width space between Hello and World.)

To test without connecting anything: open a terminal in the extracted folder and run node setup/check.mjs. It should print PASS.

Already use Codex or Claude and prefer commands? See SETUP-FOR-EVERYONE.md and AGENTS.md.

Install directly from GitHub (requires Git)

git clone https://github.com/89joshuaugwu/zazalens-mcp.git
cd zazalens-mcp
node setup/check.mjs

No npm install is needed for the local MCP. It has no paid AI API, database or background service. Compatible assistants start the server automatically through the configured node mcp/stdio.mjs command.

GitHub stores the code. GitHub Pages does not run an MCP server. The local server runs on the user's PC, whereas a hosted MCP endpoint needs a separate service such as a server-capable Next.js deployment.

What your assistant can call

ToolPurposeAccess
inspect_textFind hidden formatting characters, positions and Unicode codesLocal or hosted
clean_textRemove only user-approved finding IDs from original textLocal or hosted
inspect_imageInspect base64 PNG/JPEG/WebP metadata (2 MiB limit)Local or hosted
clean_imageExport base64 image copy with selected removable metadata omittedLocal or hosted
inspect_pdfExtract page text, locate formatting characters and inspect Info/XMP metadata (25 MiB limit)Local stdio
clean_pdfReturn a base64 PDF copy with selected properties removedLocal stdio
inspect_docx, clean_docxInspect Word body text and properties, export a copy with selected formatting occurrences removedLocal stdio
inspect_txt, clean_txtRead UTF-8 or BOM-marked UTF-16, export selected changes to UTF-8Local stdio
inspect_image_fileScan an image directly from an explicitly allowed folder (8 MiB limit)Local only; opt in
clean_image_fileSave a separate cleaned copy (never overwrite existing file)Local only; opt in

Local file access is OFF by default. To enable the last two tools, re-run the PowerShell install script with an -AllowedImageFolder parameter or manually configure ZAZA_MCP_ALLOWED_DIRS for a folder you trust. The local server itself makes no outgoing network calls. The AI app may transmit findings to its provider.

PDF support requires the optional PDF.js package and its native optional dependencies. For a source checkout, run npm install --include=optional to enable PDF tools. If the optional dependency is unavailable, the other supported tools remain usable. Supply the same original bytes for both calls. Select only removable IDs. Unselected XMP, visible text, embedded files and custom properties can contain additional copies of a value. PDF property cleanup is not document redaction. The Zaza Lens website has separate browser-based PDF/DOCX/TXT inspection and supported export features.

Tell an AI assistant to set it up

Share this URL with a coding assistant that can use a terminal:

https://github.com/89joshuaugwu/zazalens-mcp

Suggested message:

Open the Zaza Lens MCP GitHub repository above. Read README.md and AGENTS.md, check what the code does, and ask before installing or editing my assistant's configuration. With my approval, clone the repo to a permanent folder, check Node.js 22+, run node setup/check.mjs, and connect mcp/stdio.mjs as a local MCP. Do not expose my files or enable a public hosted server without asking.

A standard chat window without terminal or filesystem access cannot install programs on your PC. Claude Desktop, Codex, or another suitably enabled agent may be able to do it after you approve the necessary access.

Developers

node --version       # >=22
node setup/check.mjs # smoke test
node --test tests/*.test.mjs # engine and protocol tests
node mcp/stdio.mjs    # waits for an MCP client on stdin/stdout

The local implementation supports legacy 2025-11-25 initialization and current 2026-07-28 discovery/metadata requests. It is a dependency-free protocol implementation; not a claim of exhaustive interoperability certification. It should be tested on each client. No npm registry download is necessary for the local server.

Repository files: mcp/ protocol and safe local file tools; public/inspector/ the shared browser detection rules; tests/ tests; setup/ Windows setup and health check; .github/workflows/ automatic tests.

For the full Next.js website, use the separate Zaza-Lens-Website-NextJS-MCP.zip bundle, not this local-MCP-only repository. The website can expose an optional, disabled-by-default, bearer-token-protected /mcp endpoint, but production public use requires authentication and abuse prevention. See SETUP-FOR-EVERYONE.md.

Licensing: The public MCP source is distributed under the MIT License. Other bundled projects, including the private website, may use different notices or terms.

Safety/privacy: The scanner does not prove AI authorship or make content immune to provenance checks. Review individual metadata changes and keep required disclosures. Never give an untrusted MCP access to confidential files without reviewing its code and permissions.

December 2026 image-inspection update

This release expands recognition of explicit model/tool names in readable metadata and includes regression tests for Gemini, Imagen, OpenAI, Adobe Firefly, Midjourney and open-source generators. The website also shows the uploaded image even when a non-removable C2PA marker is the only finding, and explains why there is no “fixed” image. Read PROVIDER_COVERAGE.md for exactly what is and is not verified.

Browser connections and credentials

Local stdio setup connects a desktop client. Browser chat requires a separately configured hosted MCP connection. Test pasted text with inspect_text; attachment delivery depends on the client. The HTTP handler requires a configured token by default. This update adds PDF, DOCX and TXT tools to local stdio only. Normal image inspection reports credential markers. Signature verification is a separate experimental local command requiring c2patool (see PROVIDER_COVERAGE.md).

Claude Code in an IDE

With Claude Code installed, run the following in an IDE terminal. VS Code and JetBrains are supported Claude Code environments. This connection is separate from Claude Desktop.

Mac/Linux: claude mcp add --transport stdio --scope user zaza-lens -- npx -y zazalens-mcp@1.8.0 serve

Windows: claude mcp add --transport stdio --scope user zaza-lens -- cmd /c npx -y zazalens-mcp@1.8.0 serve

Verify with claude mcp get zaza-lens. These commands use the published version. To test document tools from this branch, run npm install and register node with the absolute path to mcp/stdio.mjs. PDF text extraction requires the optional pdfjs-dist dependency on Node 22.13 or newer.

Configuration conflicts (v1.8.2)

Setup and uninstall now report each selected assistant separately. A changed or malformed configuration is skipped, and unaffected assistants continue. A partial result returns a nonzero exit status. Close the affected app, review its current settings, and rerun the individual setup command with --replace (and the original source/file-access options). Existing configurations are backed up; no automatic retry overwrites a changed file. Do not run competing config editors simultaneously.

Experimental local Content Credentials verification

Install the official c2patool separately and set ZAZA_C2PATOOL to its absolute executable path. Run npx -y zazalens-mcp@latest verify <absolute-image-path> explicitly. This uses the existing local adapter with remote manifest fetching and live OCSP disabled; it does not download a verifier, modify the image, or register a shell-capable MCP tool. Trust depends on the installed verifier and its trust anchors. Real signed/tampered sample interoperability remains to be validated; regular inspection still reports unverified markers.

The hosted handler requires a bearer token. Anonymous mode is disabled; public OAuth and distributed rate limiting are not part of this release.

Connection health (v1.8.3)

Run npx -y zazalens-mcp@latest status (or status claude-code, status codex, etc.) outside the source repository. The check reads settings without executing configured commands or showing stored secrets. current means the entry matches the default pinned npm configuration; configured-review can be a legitimate local install or custom options. not-configured and needs-review identify missing or unsafe-to-read entries. This is configuration validation, not proof the assistant connected. Restart the app and ask it to call inspect_text with a non-sensitive example.

Setup serializes cooperating Zaza Lens writers and checks file identity as well as contents, including replacement with identical bytes. It rejects linked or oversized configs. If a crash leaves a .zazalens-lock beside a config, confirm no installer is running before deleting only that lock file. Other applications do not honor this lock; close them before updating. Atomic rename is not a universal compare-and-swap.