Imagegen MCP logo

Imagegen MCP

by forgemeshlabs

Generate images, remove backgrounds, and upscale to 4x HD with USDC payments on Base mainnet.

Install Imagegen MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "forgemeshlabs-imagegen-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "forgemesh-imagegen"
      ],
      "env": {
        "WALLET_PRIVATE_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y forgemesh-imagegen

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked 1mo ago.

Overview

This MCP server provides four AI image-generation tiers, from standard text-to-image generation to background removal and 4x HD upscaling. Each request is paid per image in USDC on Base mainnet through x402, using a wallet private key rather than an API key or subscription. Use it for agent-driven image creation, product assets, logos, and other visual content.

Use cases

  • Generate images from text prompts
  • Create images with transparent backgrounds
  • Upscale generated images to 4x HD
  • Create polished assets with background removal and upscaling

Key features

  • Standard text-to-image generation
  • Background removal
  • 4x HD upscaling
  • Combined pro generation pipeline
  • Aspect ratios: 1:1, 16:9, 9:16, and 4:3
  • Automatic USDC payment through x402

Tools6

What Imagegen MCP lets your agent do. Expand a tool for its parameters.

Self-reported~92 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 2d ago

Recent health check succeeded.

19/19 checks healthy over the last 79d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 11d ago via OSV.dev · forgemesh-imagegen (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads600Package downloads in the last 30 days.
Last commit19d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed6Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

From the project README

forgemesh-imagegen

M8ven Verified mcpservers.org

MCP server for AI image generation. Generate images, remove backgrounds, upscale to 4x HD — all from a single MCP tool call. Payments handled automatically in USDC on Base mainnet via x402. No API key. No subscription. Pay per image.

Part of the ForgeMesh ecosystem — infrastructure for autonomous agents.


Tools

ToolWhat it doesPrice
generate_imageStandard text-to-image generation$0.25 USDC
generate_cleanGenerate + background removal$0.35 USDC
generate_hdPremium generate + 4x upscale (HD)$0.50 USDC
generate_proTop-tier generate + bg removal + 4x upscale$0.75 USDC
list_presetsList the 58 identity-preserving transform presets (person or pet)$0.005 USDC
transform_imageTransform a photo with a preset while keeping the subject's identity (FLUX Kontext Max)$0.75 USDC

The four generate_* tools accept prompt (required) and aspect (optional: 1:1, 16:9, 9:16, 4:3). transform_image takes a public image_url, a preset id from list_presets, an optional aspect (match_input_image default, or 1:1, 16:9, 9:16, 4:3, 3:4) and wait (default true: polls the free status URL until the PNG is ready, usually 15-30s). Submit only images you have rights to; no minors; the provider safety filter applies.


Install

Claude Desktop

Add to claude_desktop_config.json:

config.json
{
  "mcpServers": {
    "forgemesh-imagegen": {
      "command": "npx",
      "args": ["-y", "forgemesh-imagegen"],
      "env": {
        "WALLET_PRIVATE_KEY": "0x..."
      }
    }
  }
}

Claude Code

Terminal
claude mcp add forgemesh-imagegen -- npx -y forgemesh-imagegen

Then set the env var:

server.ts
export WALLET_PRIVATE_KEY=0x...

Requirements

  • A dedicated, low-balance Base mainnet wallet private key with USDC (never your primary wallet: the server signs USDC transfers autonomously)
  • $1 USDC ≈ 4 base images, 2 clean, 2 HD, or 1 pro, or 1 transform
  • No other API keys needed

Get USDC on Base: Coinbase → Bridge to Base, or buy directly on Base.


Example usage

Code
generate_image(prompt="a red panda in a spacesuit", aspect="1:1")
→ { image_url: "https://...", prompt: "...", aspect: "1:1", tier: "image" }

generate_clean(prompt="a product photo of a ceramic mug")
→ { image_url: "https://...", tier: "clean" }   // transparent PNG

generate_hd(prompt="a futuristic city at night, cyberpunk style")
→ { image_url: "https://...", tier: "hd" }       // 4096x4096

generate_pro(prompt="a logo mark, geometric eagle")
→ { image_url: "https://...", tier: "pro" }      // transparent + HD

list_presets()
→ { count: 58, presets: [{ id: "pet-royal", title: "Pet Royalty", subject: "pet", ... }, ...] }

transform_image(image_url="https://example.com/my-dog.jpg", preset="pet-royal")
→ { job_id: "...", status: "succeeded", preset: "pet-royal", image_url: "https://..." }

How it works

Each tool call makes an HTTP request to the ForgeMesh imagegen service gated by the x402 protocol. If payment is required, the MCP automatically signs and broadcasts a USDC transfer from your wallet on Base mainnet — then retries the request. You see the result, your wallet is charged, no manual steps.

  • Network: Base mainnet (eip155:8453)
  • Token: USDC
  • Protocol: x402
  • The server only ever connects to https://imagegen.coinopai.com; every request has a 60s timeout and a 1 MB response cap; no third-party payment routers or affiliate hops.

Links


License

MIT © ForgeMesh Labs

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Imagegen MCP

It charges per image in USDC on Base mainnet through the x402 protocol.

No API key or subscription is required, but you need a Base mainnet wallet private key with USDC.

The server supports text-to-image generation, background removal, 4x HD upscaling, and a combined generation, background-removal, and upscaling pipeline.

generate_image costs $0.25 USDC, generate_clean costs $0.35, generate_hd costs $0.50, and generate_pro costs $0.75 per image.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewImagegen MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/forgemeshlabs-imagegen-mcp?style=directory)](https://allmcps.com/mcp/forgemeshlabs-imagegen-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/forgemeshlabs-imagegen-mcp"><img src="https://allmcps.com/api/badge/forgemeshlabs-imagegen-mcp?style=directory" alt="Imagegen MCP on AllMCPs" /></a>