Wafle-Imago — Universal MCP Server for AI Image Generation
Imago (Latin: image, likeness, representation). From the root of "imagine" and "imagery".
Wafle-Imago turns words into images. A universal MCP server that works with any MCP-compatible client (OpenCode, Claude Desktop, Cursor, Windsurf, etc.). Supports multiple backends with automatic fallback, built-in security, and audit logging.
Quick Start
pip install wafle-imago
wafle-imago --backend cloudflare
Requires Cloudflare or NVIDIA credentials in .env (see Configuration).
Backends
| Backend | Images | Cost | Auth | Limits |
|---|---|---|---|---|
| cloudflare ✅ | FLUX.1 Schnell, SDXL, FLUX.2 Klein | $0 | CLOUDFLARE_ACCOUNT_ID + CLOUDFLARE_API_TOKEN |
10k neurons/day (~900 images) |
| nvidia ✅ | FLUX.1 Dev/Schnell, FLUX.2 Klein | $0 | NVIDIA_API_KEY |
1k req/month |
| pollinations | ❌ Deprecated (HTTP 402) | — | — | — |
| hf | ⚠️ Credits depleted (resets monthly) | $0 | HF_TOKEN |
Rate-limited |
Configuration
1. Get Free Credentials
Cloudflare Workers AI (recommended — 900 images/day free):
- Sign up at https://dash.cloudflare.com/sign-up/workers-and-pages (no credit card)
- Go to Workers AI → "Use REST API" → copy Account ID + create API Token
- Add to
.env:
CLOUDFLARE_ACCOUNT_ID=your_account_id
CLOUDFLARE_API_TOKEN=your_api_token
NVIDIA NIM (alternative — 1k req/month):
- Sign up at https://build.nvidia.com (no credit card)
- Get API key
- Add to
.env:
NVIDIA_API_KEY=nvapi-...
2. Add to MCP Client
{
"mcpServers": {
"wafle-imago": {
"command": ["wafle-imago", "--backend", "cloudflare"],
"description": "AI image generation via Cloudflare Workers AI (free)"
}
}
}
CLI Options
wafle-imago # MCP stdio mode (default: cloudflare)
wafle-imago --backend nvidia # Use NVIDIA NIM backend
wafle-imago --http --port 8000 # HTTP SSE mode
wafle-imago --backend cloudflare # Cloudflare Workers AI
wafle-imago --version # Show version
MCP Tools
| Tool | Description |
|---|---|
generate_image |
Generate image from text prompt |
generate_video |
❌ Not available on free backends |
list_models |
Available models with pricing |
get_balance |
Check auth status / backend mode |
Security
- Prompt validation (NSFW, injection blocking)
- Rate limiting (configurable)
- Audit logging (JSONL)
safeparameter for content safety
Requirements
- Python 3.10+
- Windows, macOS, Linux
- One free Cloudflare or NVIDIA account
Installation from Source
git clone https://github.com/creandoaldia/wafle-imago.git
cd wafle-imago
pip install -e .
License
MIT
Metadata
Release files for wafle-imago 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| wafle_imago-0.2.1.tar.gz | 12.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wafle_imago-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.8 kB
Release files / wafle_imago-0.2.1.tar.gz
| Download URL | wafle_imago-0.2.1.tar.gz |
|---|---|
| Size | 12.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d217be3d4cc3f97e0ad3e50f4b3d57de9570ae58cad4d60d9f025a82ff2a49b
|
|
BLAKE2b-256 checksum How to use checksums |
41f18994a8e1733752af53597ff0d760efe625c180b0bee1c73a7f40b1a7bb7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Release files / wafle_imago-0.2.1-py3-none-any.whl
| Download URL | wafle_imago-0.2.1-py3-none-any.whl |
|---|---|
| Size | 17.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1038b54a7a0483391819da3c7b7a4bc1cd79fd78422ee2b6be640a451a66fc07
|
|
BLAKE2b-256 checksum How to use checksums |
8fc16e8a7208d1acb01c501fc28c3e198acb3d0f78d70806fc5c50fb4413e9ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Security for wafle-imago 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.