Skip to content
MCP server

agenthand

Turn messy product photos into listing-ready images with a pixel-fidelity receipt

Runs locally

agenthand is an open-source MCP server for design and media. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, Self-hosted
Runs
Locally
Access
Needs a secret key or token
Version
0.1.2
Listing updated

Similar MCP servers

Install

You install MCP servers on a computer. Send yourself the link.

Add with the CLI

Run in a terminal

claude mcp add agenthand --env META_API_KEY='<META_API_KEY>' -- uvx agenthand

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "agenthand": {
      "command": "uvx",
      "args": [
        "agenthand"
      ],
      "env": {
        "META_API_KEY": "<META_API_KEY>"
      }
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "agenthand": {
      "command": "uvx",
      "args": [
        "agenthand"
      ],
      "env": {
        "META_API_KEY": "<META_API_KEY>"
      }
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "agenthand": {
      "command": "uvx",
      "args": [
        "agenthand"
      ],
      "env": {
        "META_API_KEY": "<META_API_KEY>"
      }
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "agenthand": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "agenthand"
      ],
      "env": {
        "META_API_KEY": "<META_API_KEY>"
      }
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add agenthand --env META_API_KEY='<META_API_KEY>' -- uvx agenthand

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.agenthand]
command = "uvx"
args = ["agenthand"]
env = { META_API_KEY = "<META_API_KEY>" }

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "agenthand": {
      "command": "uvx",
      "args": [
        "agenthand"
      ],
      "env": {
        "META_API_KEY": "<META_API_KEY>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "agenthand": {
          "command": "uvx",
          "args": [
            "agenthand"
          ],
          "env": {
            "META_API_KEY": "<META_API_KEY>"
          }
        }
      }
    }

    Or run: gemini mcp add -s user -e META_API_KEY='<META_API_KEY>' agenthand uvx -- agenthand

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "agenthand": {
          "command": "uvx",
          "args": [
            "agenthand"
          ],
          "env": {
            "META_API_KEY": "<META_API_KEY>"
          }
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "agenthand": {
          "command": "uvx",
          "args": [
            "agenthand"
          ],
          "env": {
            "META_API_KEY": "<META_API_KEY>"
          }
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "agenthand": {
          "command": "uvx",
          "args": [
            "agenthand"
          ],
          "env": {
            "META_API_KEY": "<META_API_KEY>"
          }
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "agenthand": {
          "command": "uvx",
          "args": [
            "agenthand"
          ],
          "env": {
            "META_API_KEY": "<META_API_KEY>"
          }
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "agenthand": {
          "command": "uvx",
          "args": [
            "agenthand"
          ],
          "env": {
            "META_API_KEY": "<META_API_KEY>"
          }
        }
      }
    }

    The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "agenthand": {
          "command": "uvx",
          "args": [
            "agenthand"
          ],
          "env": {
            "META_API_KEY": "<META_API_KEY>"
          }
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "agenthand": {
          "command": "uvx",
          "args": [
            "agenthand"
          ],
          "env": {
            "META_API_KEY": "<META_API_KEY>"
          }
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • META_API_KEYMeta Model API key. The server starts and lists its tools without one; the key is required when a tool makes a model call.Required

About agenthand

This server is built for agents that help people sell things: the seller never opens it, their agent does. The core promise is the Fidelity Lock. The real product is cut out of the photo, stored untouched with file and pixel hashes, and placed onto a generated background by deterministic code, so the image model only ever draws the scene and never sees or redraws the product.

Three tools are chained through asset handles. identify reads a photo and plans the cut, cut_out returns a transparent PNG, and draw composites the product into a scene such as a chair in a regal room. Each draw returns a receipt with source, foreground and mask hashes, a measured count of changed foreground pixels, the model calls made and their cost, and the receipt can be re-checked with a bundled verifier. Ingest accepts HEIC, URLs and base64 images and keeps embedded colour profiles.

It is a hackathon build, and this Python repository is described as the reference implementation, with a Rust build named as the main product. It runs locally over stdio and needs a Meta Model API key only when a tool makes a model call. Spending is capped, with a default of $120 and a hard ceiling of $150, and the server refuses spend if the ledger is unreadable.

Tools this server provides (3)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 3 names don't say.

From the server's own tool labels and tool names; not verified by us.

draw
Places the real product, pixel-untouched, into a generated scene and returns the composite with a fidelity receipt.
cut_out
Segments the product from its photo and returns a transparent PNG as an asset handle.
identify
Reads a photo and plans the cut, returning a description and a segmentation concept.

What it does

Fidelity Lock
The product's pixels are composited back unchanged; only the background is generated.
Fidelity receipt
Hashes, changed-pixel count, model calls and cost accompany every staged shot.
Cut-out with retry
Segmentation checks the mask and retries once with an alternate concept.
Asset handles
Images are passed as asset:// references rather than bytes.
Spend cap
Reserve-then-settle accounting with a hard ceiling and fail-closed behaviour.
Phone photo ingest
Accepts HEIC and normalizes orientation and colour profile.

Good for

  • Stage a product photo for an online marketplace listing
  • Cut a product out as a transparent PNG
  • Verify that a staged image did not alter the product
  • Cap model spend while an agent generates listing images
  • Plan a segmentation concept from a photo

Pricing

Open source

Free software; model calls billed by the Meta Model API

agenthand FAQ

Does agenthand regenerate the product?

No. The product layer is composited unchanged and only the background plate is generated.

What key is needed?

A Meta Model API key, only when a tool makes a model call.

How do I run agenthand?

Locally over stdio with uvx agenthand or pip install agenthand.

Is this the main product?

The README calls this Python build the reference implementation and points to a Rust build as the main product.

Is there a spend limit?

Yes, a default cap of $120 and a hard ceiling of $150.

Is agenthand free?

Yes. agenthand is open source, so you can use and self-host it for free.

How do I add agenthand to Claude Code?

Run this command in your terminal: claude mcp add agenthand --env META_API_KEY='<META_API_KEY>' -- uvx agenthand

What are the best alternatives to agenthand?

The closest alternatives to agenthand are HyperFrames by HeyGen, mcp-for-blender, AutoClip, ffmpeg-skill and next-ai-draw-io.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers