# agenthand

> agenthand is an open-source MCP server for design and media. Turn messy product photos into listing-ready images with a pixel-fidelity receipt. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/ausernameforyou/agenthand
- **MCP Registry name:** io.github.AUsernameForYou/agenthand
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media), [e-commerce](https://ai-powered.com/categories/e-commerce)
- **Listing updated:** 2026-11-23

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
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.

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (claude_desktop_config.json)

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

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

### Cursor (~/.cursor/mcp.json)

```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.

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

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

### Codex: Or add to config.toml (~/.codex/config.toml)

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

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```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.

### Devin Desktop (~/.config/devin/mcp_config.json)

```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.

### Cline (cline_mcp_settings.json)

```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.

### Zed (Zed settings.json)

```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.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "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.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```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.

### Kiro (~/.kiro/settings/mcp.json)

```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.

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

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.

## 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.

## Alternatives

- [HyperFrames by HeyGen](https://ai-powered.com/mcp/hyperframes-by-heygen): HyperFrames by HeyGen is a freemium MCP server for design and media.
- [mcp-for-blender](https://ai-powered.com/mcp/mcp-for-blender): mcp-for-blender is an open-source MCP server for design and media.
- [AutoClip](https://ai-powered.com/mcp/autoclip): AutoClip is an open-source MCP server for design and media.
- [ffmpeg-skill](https://ai-powered.com/mcp/ffmpeg-skill): ffmpeg-skill is an open-source MCP server for design and media.
- [next-ai-draw-io](https://ai-powered.com/mcp/next-ai-draw-io-2): next-ai-draw-io is an open-source MCP server for ai models and llm tooling.
- [ChatGPT for Amazon](https://ai-powered.com/mcp/chatgpt_for_amazon): ChatGPT for Amazon is a freemium MCP server for marketing.
- [Dembrandt](https://ai-powered.com/mcp/dembrandt): Dembrandt is an open-source MCP server for design and media.
- [cursor-talk-to-figma-mcp](https://ai-powered.com/mcp/cursor-talk-to-figma-mcp): cursor-talk-to-figma-mcp is an open-source MCP server for design and media.

---
Source: https://ai-powered.com/mcp/agenthand
