MCP server for AI image generation, background removal, and upscaling with optional x402 USDC payments on Base mainnet.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add imagegen --env WALLET_PRIVATE_KEY='<WALLET_PRIVATE_KEY>' -- npx -y forgemesh-imagegen~/.codex/config.toml
[mcp_servers.imagegen]
command = "npx"
args = ["-y", "forgemesh-imagegen"]
env = { WALLET_PRIVATE_KEY = "<WALLET_PRIVATE_KEY>" }
# codex mcp add imagegen --env WALLET_PRIVATE_KEY='<WALLET_PRIVATE_KEY>' -- npx -y forgemesh-imagegen~/.cursor/mcp.json
{
"mcpServers": {
"imagegen": {
"command": "npx",
"args": [
"-y",
"forgemesh-imagegen"
],
"env": {
"WALLET_PRIVATE_KEY": "<WALLET_PRIVATE_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"imagegen": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"forgemesh-imagegen"
],
"env": {
"WALLET_PRIVATE_KEY": "<WALLET_PRIVATE_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"imagegen": {
"command": "npx",
"args": [
"-y",
"forgemesh-imagegen"
],
"env": {
"WALLET_PRIVATE_KEY": "<WALLET_PRIVATE_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"imagegen": {
"command": "npx",
"args": [
"-y",
"forgemesh-imagegen"
],
"env": {
"WALLET_PRIVATE_KEY": "<WALLET_PRIVATE_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"imagegen": {
"command": "npx",
"args": [
"-y",
"forgemesh-imagegen"
],
"env": {
"WALLET_PRIVATE_KEY": "<WALLET_PRIVATE_KEY>"
}
}
}
}Environment variables
WALLET_PRIVATE_KEY
Replace the placeholders with your own credentials and keep them out of version control.