imagegen-mcp-x402
AI image generation from text prompts via x402 micropayments on Base. $0.10 USDC per image, paid automatically from your wallet. No API key required.
README
imagegen-mcp
MCP server for AI image generation, powered by imagegen.coinopai.com. Payments are handled automatically via x402 micropayments on Base mainnet — no API keys, no subscriptions, just a funded wallet.
Cost: $0.10 USDC per image (Base mainnet)
What it does
Exposes a single generate_image tool that any MCP-compatible client (Claude Desktop, Cursor, Windsurf, etc.) can call. When invoked, the server automatically pays the $0.10 USDC gate and returns a PNG image URL.
Requirements
- Node.js 18+
- A Base wallet private key funded with USDC
Claude Desktop config
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (Mac) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"imagegen": {
"command": "npx",
"args": ["-y", "coinopai-imagegen"],
"env": {
"WALLET_PRIVATE_KEY": "0x<your-base-wallet-private-key>"
}
}
}
}
npx usage
WALLET_PRIVATE_KEY=0x<your-key> npx coinopai-imagegen
Tool reference
generate_image
Generate an AI image from a text prompt.
Inputs:
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt |
string | Yes | Natural language image description |
aspect |
string | No | 1:1 (default), 16:9, 9:16, 4:3 |
Output:
{
"image_url": "https://...",
"prompt": "your prompt",
"aspect": "1:1",
"generated_at": "2026-05-13T00:00:00.000Z"
}
Example prompts:
"a cyberpunk wolf in neon rain""a peaceful mountain lake at sunrise, photorealistic""abstract geometric art, vibrant colors, 4K"
Cost disclosure
Each generate_image call costs $0.10 USDC deducted from your WALLET_PRIVATE_KEY wallet on Base mainnet. Use a purpose-built low-balance wallet, not your primary wallet.
$1 USDC ≈ 10 images.
Smithery
Available on Smithery — search for imagegen-mcp.
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.