SmartconversionAPI
Facilitates programmatic machine-to-machine payments using USDC for automated image processing transactions.
Integrates with Coinbase CDP to handle wallet credentials and process USDC payments on the Base blockchain.
Provides high-speed image processing and optimization capabilities for JPEG files within agentic workflows.
Supports the programmatic processing and handling of SVG vector graphics for AI agents.
Exposes a comprehensive OpenAPI specification and Swagger documentation for deep integration of image optimization and payment services.
🚀 Overview
SmartConvert x402 is a high-performance Model Context Protocol (MCP) server designed for the autonomous agent economy. It provides a plug-and-play solution for AI assistants (like Claude, Cursor, or AutoGPT) to optimize images while handling payments natively using USDC on Base.
Why it's a Game Changer:
For AI Agents: Zero-friction image processing. No API keys to manage per user—the agent pays its own way using the x402 protocol.
For Developers: Build apps that monetize themselves instantly. Every byte processed generates revenue directly to your wallet.
Privacy First: High-speed processing using
Sharp(Node.js) with support for WebP, AVIF, PNG, JPEG, and SVG.
🛠 MCP Capabilities
Once connected to your AI assistant, SmartConvert exposes the following tools and intelligence:
🧰 Tools
convert_image_to_webp: High-speed conversion to WebP or AVIF. Triggers the x402 payment lifecycle automatically.
🧠 Prompts (Agentic Intelligence)
format_advisor: An expert assistant that guides the agent on choosing between WebP (speed) or AVIF (quality) based on constraints.image_optimization_agent: A pre-configured system prompt to turn any LLM into an autonomous image processing master.x402_payment_help: Interactive guide to help users and agents understand the payment flow.
📊 Resources
image-api://metrics: Real-time transparency on billing and usage.image-api://instructions: Embedded documentation for the x402 standard.image-api://spec: Full OpenAPI definition for deep integration.
💸 The x402 Payment Flow
SmartConvert implements the HTTP 402 Payment Required standard, specifically designed for Machine-to-Machine (M2M) communications.
sequenceDiagram
participant Agent as AI Agent (Cursor/Claude)
participant API as SmartConvert API
participant SDK as x402 EVM SDK (Base)
Agent->>API: POST /convert (No signature)
API-->>Agent: 402 Payment Required + Payment Details
Note over Agent: Agent detects x402 protocol
Agent->>SDK: Sign USDC TransferWithAuthorization
SDK-->>Agent: Cryptographic Payload (Base64)
Agent->>API: POST /convert + payment-signature
API-->>Agent: 200 OK + Optimized Image⚡ Quick Start
For Users (Claude Desktop / Cursor)
Simply add the following to your configuration:
{
"mcpServers": {
"smartconvert": {
"url": "https://api.smartrayon.eu/mcp"
}
}
}For Developers (Self-Hosting & Monetization)
Clone & Config:
cp .env.example .envSetup Wallet: Enter your
WALLET_RECEIVER_ADDRESSand Coinbase CDP credentials.Deploy with Docker:
docker compose up -d --build🔧 Environment Variables
Variable | Description | Default |
| API Port |
|
| Where USDC payments are sent | - |
| Coinbase CDP Key ID | - |
| Toggle Base Sepolia vs Mainnet |
|
🤝 Contributing
We are building the economic primitives of the Agentic Web. Contributions are encouraged!
Core: TypeScript / Node.js
Image Engine: Sharp
Transport: MCP Streamable HTTP (SSE)
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
Related MCP Connectors
ImagePay MCP: 40 x402 paid API tools (OCR, PDF, image, QR, tabular, web). Pay per call on Base.
Convert images to PNG, JPEG, WebP, or AVIF through one public remote MCP tool.
1,000+ conversion routes plus translate, extract tables, compress. 25 free/month, then a free key.
Convert files between formats without quality loss. Speed up your workflow with fast, reliable con…
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/lemaitregabinpro-creator/smartconversion-api'
If you have feedback or need assistance with the MCP directory API, please join our Discord server