SmartconversionAPI
conversion image to webp/avif with 402 payement required, 0.001 and 0.0005 after 1000 requete.
README
<div align="center"> <img src="./public/logo.png" alt="SmartConvert Logo" width="120" style="border-radius: 20px; margin-bottom: 20px;"> <h1>SmartConvert x402</h1> <p><b>The 1st Image Optimization Engine for the Agentic Web</b></p>
<p> <a href="https://api.smartrayon.eu/site">🌍 <b>Landing Page</b></a> • <a href="https://api.smartrayon.eu/public/dashboard/index.html">📊 <b>Live Dashboard</b></a> • <a href="https://api.smartrayon.eu/public/playground/index.html">🎮 <b>Playground</b></a> • <a href="https://api.smartrayon.eu/public/blog/index.html">✍️ <b>Blog</b></a> • <a href="https://api.smartrayon.eu/api-docs">📖 <b>Swagger API Docs</b></a> </p>
<p><i>Empower your AI agents with professional image conversion & programmatic M2M payments via x402.</i></p>
<p> <b>English</b> • <a href="README.fr.md">Français</a> </p> </div>
🚀 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.
<a href="https://glama.ai/mcp/servers/lemaitregabinpro-creator/smartconversion-api"> <img width="380" height="200" src="https://glama.ai/mcp/servers/lemaitregabinpro-creator/smartconversion-api/badge" alt="SmartconversionAPI MCP server" /> </a>
🛠 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. Supports Base64, public URL, or local server path. Triggers the x402 payment lifecycle automatically.convert_batch: 🗂️ NEW — Process up to 5 images in a single parallel call with a discounted group rate.resize_image: 📏 NEW — Smart resizing with width/height controls and fit/crop strategies.crop_image: ✂️ NEW — Extract precise rectangular regions from any image.compress_image: 🗜️ NEW — Heavy quality optimization without changing the source format.get_image_metadata: 🆓 FREE — Extracts detailed metadata (dimensions, format, DPI, EXIF) via Base64, URL, or local path.
🧠 Prompts (Agentic Intelligence)
smart_optimizer: Fully autonomous workflow: analyze, choose best format, and convert.image_performance_audit: SEO expert that analyzes weight/dimensions and suggests optimizations.format_advisor: Expert advice on choosing between WebP (speed) or AVIF (quality).html_picture_generator: Generates optimized HTML<picture>tags after conversion.technical_troubleshooter: Checks for image corruption and sensitive EXIF data (privacy).image_optimization_agent: Standard autonomous workflow for conversion.x402_payment_help: Interactive guide for the x402 payment flow.
📊 Resources
image-api://capabilities: Overview of all supported tools and formats.image-api://quickstart: Ready-to-use examples for tools and prompts.image-api://pricing: Structured pricing information (USDC on Base).image-api://faq: Frequently asked questions about usage and formats.image-api://usage_statistics: Real-time transparency on platform-wide usage and bytes saved.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"
}
}
}
Pro Tip: Use localPath or imageUrl instead of Base64 for 10x faster processing.
For Developers (Self-Hosting & Monetization)
- Clone & Config:
cp .env.example .env - Setup Wallet: Enter your
WALLET_RECEIVER_ADDRESSand Coinbase CDP credentials. - Deploy with Docker:
docker compose up -d --build
🔧 Environment Variables
| Variable | Description | Default |
|---|---|---|
PORT |
API Port | 6722 |
WALLET_RECEIVER_ADDRESS |
Where USDC payments are sent | - |
CDP_API_KEY_ID |
Coinbase CDP Key ID | - |
X402_USE_TESTNET |
Toggle Base Sepolia vs Mainnet | true |
🤝 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)
<p align="center"> Developed with ❤️ by <b>SmartUnityIA</b><br> <i>Empowering the machine economy, one byte at a time.</i> </p>
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。