forgemesh-imagegen
OfficialThe forgemesh-imagegen server provides AI image generation with optional background removal and 4x upscaling, with payments handled automatically in USDC on Base mainnet via the x402 protocol — no API key or subscription required (only a WALLET_PRIVATE_KEY with USDC balance).
Tools:
generate_image— Generate an AI image from a text prompt ($0.10 USDC). Supports an optionalaffiliate_idfor Pyrimid attribution.generate_clean— Generate an image with background automatically removed (transparent PNG) ($0.15 USDC).generate_hd— Generate and 4x upscale an image to high resolution (up to 4096×4096) ($0.20 USDC).generate_pro— Full pipeline: generate, remove background, and 4x upscale ($0.30 USDC).
All tools accept:
prompt(required) — text description of the imageaspect(optional) —1:1(default),16:9,9:16, or4:3
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@forgemesh-imagegengenerate an image of a futuristic city skyline at sunset"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
forgemesh-imagegen
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
Tool | What it does | Price |
| Standard text-to-image generation | $0.25 USDC |
| Generate + background removal | $0.35 USDC |
| Premium generate + 4x upscale (HD) | $0.50 USDC |
| Top-tier generate + bg removal + 4x upscale | $0.75 USDC |
All tools accept prompt (required) and aspect (optional: 1:1, 16:9, 9:16, 4:3).
generate_image also accepts affiliate_id for Pyrimid attribution, or uses PYRIMID_AFFILIATE_ID from the environment.
Related MCP server: jgkme/kilo-image-gen-mcp
Install
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"forgemesh-imagegen": {
"command": "npx",
"args": ["-y", "forgemesh-imagegen"],
"env": {
"WALLET_PRIVATE_KEY": "0x...",
"PYRIMID_AFFILIATE_ID": "af_your_id"
}
}
}
}Claude Code
claude mcp add forgemesh-imagegen -- npx -y forgemesh-imagegenThen set the env var:
export WALLET_PRIVATE_KEY=0x...Requirements
A Base mainnet wallet private key with USDC
$1 USDC ≈ 4 base images, 2 clean, 2 HD, or 1 pro
No other API keys needed
Get USDC on Base: Coinbase → Bridge to Base, or buy directly on Base.
Example usage
generate_image(prompt="a red panda in a spacesuit", aspect="1:1")
→ { image_url: "https://...", prompt: "...", aspect: "1:1", tier: "image" }
generate_image(prompt="a red panda in a spacesuit", affiliate_id="af_your_id")
→ routes through Pyrimid product 3 with no extra cost to the caller
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 + HDHow 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
Links
ForgeMesh — ecosystem overview
License
MIT © ForgeMesh Labs
Available Tools
4 toolsgenerate_cleanB
Generate an AI image with background removed. Returns a transparent PNG URL. Costs $0.35 USDC on Base mainnet.
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Text description of the subject (background will be removed) | |
| aspect | No | Aspect ratio — 1:1 (default), 16:9, 9:16, 4:3 |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Discloses cost ($0.35 USDC) and return format (transparent PNG URL), which adds value beyond the schema. However, without annotations, it omits behavioral constraints like rate limits, auth needs, or error handling.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two sentences, front-loaded with action and result, then precise details. No wasted words.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple 2-param tool with no output schema, the description covers purpose, cost, and output format. However, missing usage context and edge-case guidance leaves it slightly incomplete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100% and the description adds minimal parameter-specific meaning beyond listing prompt and aspect. The background removal note adds context but is not tied to a specific parameter.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool generates an AI image with background removal and returns a transparent PNG. It uses specific verbs and resources, but does not contrast with sibling tools beyond the background removal hint.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance on when to use this tool versus generate_hd, generate_image, or generate_pro. The description lacks context on preferred scenarios or alternatives.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
generate_hdA
Generate a premium AI image upscaled 4x HD. Returns a high-resolution image URL. Costs $0.50 USDC on Base mainnet.
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Text description of the image to generate | |
| aspect | No | Aspect ratio — 1:1 (default), 16:9, 9:16, 4:3 |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries full burden. It discloses the cost ($0.50 USDC on Base mainnet) and that it returns a URL, but omits details like required authentication, idempotency, rate limits, or whether the URL is temporary. The cost is a notable behavioral trait.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two sentences with no filler. It front-loads the action and quality, then states return value and cost. Every word adds value.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given no output schema, the description mentions return of a URL but lacks details like expiration, file format, or resolution specifics. For a paid tool, more context on what the URL contains would be helpful. It is minimally adequate.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the baseline is 3. The description adds no additional meaning beyond the schema's parameter descriptions (prompt and aspect). The schema already explains prompt as text and aspect as enum with default.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states that the tool generates a premium AI image upscaled 4x HD and returns a high-resolution image URL. The verb, resource, and quality are specific, and 'HD' differentiates it from sibling tools like 'generate_clean' or 'generate_pro'.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage for high-quality images with upscaling and mentions cost, but does not explicitly state when to use this tool versus alternatives like generate_clean or generate_image. No when-not-to-use guidance is provided.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
generate_imageA
Generate a standard AI image from a text prompt. Returns a PNG image URL. Costs $0.25 USDC on Base mainnet — paid automatically.
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Text description of the image to generate | |
| aspect | No | Aspect ratio — 1:1 (default), 16:9, 9:16, 4:3 | |
| affiliate_id | No | Optional Pyrimid affiliate ID. Affiliate earns a commission from within the listed price — no extra cost to you. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full disclosure burden. It reveals the output format (PNG image URL), cost ($0.25 USDC), and automatic payment, which are valuable behavioral traits. However, it omits details like authorization requirements, rate limits, error behavior on invalid prompts, or confirmation of the default aspect ratio.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two succinct sentences with front-loaded purpose. No unnecessary words: first sentence states the action, second covers output and cost. Every sentence earns its place, and the structure is efficient for quick agent parsing.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's simplicity (3 parameters, no output schema), the description covers the key aspects: what it does, output format, and cost. It lacks an explicit default for aspect ratio (though likely '1:1') and does not clarify that affiliate_id is optional, but these are minor gaps. The cost disclosure is particularly valuable for agent decision-making.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, with all three parameters described in the schema. The description adds no further param-specific details beyond what the schema provides. Baseline 3 is appropriate; the description does not enhance understanding of parameters but also does not miss critical information.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description explicitly states 'Generate a standard AI image from a text prompt', clearly identifying the verb (generate) and resource (standard AI image). The term 'standard' distinguishes it from sibling tools generate_clean, generate_hd, and generate_pro, which likely offer different quality levels.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description does not provide explicit guidance on when to use this tool versus its siblings (e.g., generate_hd for higher quality). The cost mention ($0.25) implies a pricing consideration, but no direct comparison or when-not-to-use advice is given. Usage context is only implied by the word 'standard'.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
generate_proA
Generate a top-tier AI image with background removal and 4x HD upscale. Costs $0.75 USDC on Base mainnet.
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Text description of the subject (background removed, then upscaled) | |
| aspect | No | Aspect ratio — 1:1 (default), 16:9, 9:16, 4:3 |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description discloses cost and blockchain, but lacks details on output format, authentication, side effects, or payment flow. It partially informs behavior but has gaps.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, well-structured sentence that is front-loaded with the action. Every word adds value, with no extraneous content.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Despite having a clear purpose, the description fails to explain the output type or payment mechanism. For a paid tool with no output schema, this is a significant omission.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the baseline is 3. The main description adds no extra parameter meaning beyond the schema definitions.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb 'Generate' and resource 'top-tier AI image' with specific post-processing (background removal, 4x HD upscale). It differentiates from siblings by combining features that others likely lack.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage when both background removal and upscale are needed, and mentions cost. However, it does not explicitly guide when to use this vs alternatives, nor does it state when not to use it.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
TDQS
Each tool has a distinct purpose: basic generation, background removal, upscaling, or both. Descriptions clearly differentiate them, leaving no ambiguity.
All tool names follow a consistent 'generate_' prefix with a descriptive suffix (_image, _clean, _hd, _pro), making the pattern predictable.
With exactly 4 tools, the set covers the essential variations (basic, backgrounds removal, upscaling, and combined) without any excess or deficiency.
The tools cover the full advertised functionality: generating images, removing backgrounds, upscaling, and the combination. No obvious gaps exist for this scope.
Maintenance
Related MCP Connectors
MCP server for AI agents to discover campaigns by humans and donate USDC directly on Base.
AI dev tools + image generation, paid per-use with USDC on Base (x402).
15 paid AI agent primitives via x402 (USDC on Base). Pay-per-call MCP server.
MCP server for Qwen Image 3 AI image generation
Related MCP Servers
- AlicenseAqualityBmaintenanceKronos crypto signals + trade decisions + 819 automation prompts. x402 micropayments, USDC/Base.8113051MIT
- AlicenseNot gradedqualityBmaintenanceMCP server for generating, editing, and processing images via multiple providers including Kilo, OpenRouter, OpenAI, and Gemini, with local tools for background removal, resizing, and cropping.232MIT
- AlicenseAqualityAmaintenanceAn MCP server that enables AI agents to access paid AI inference and web tools via HTTP 402 micropayments in USDC on Base, using the agent's wallet as identity.14572MIT
- AlicenseNot gradedqualityCmaintenanceMCP server with X402 payment integration, enabling AI agents to access paid tools like weather, web search, and image generation with crypto payments via MetaMask on Base network.MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/forgemeshlabs/imagegen-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server