pruna-mcp-server
The pruna-mcp-server integrates Pruna AI's capabilities for high-speed image and video generation, editing, and upscaling directly into MCP-compatible AI clients.
Generate images (
generate_image): Create images from text prompts using multiple models, with control over aspect ratio, custom dimensions, and seed for reproducibility.Edit images (
edit_image): Modify 1–5 images using text instructions, accepting both local file paths and URLs as input.Virtual try-on (
try_on_image): Fit up to 11 garments onto a person's photo, with options for turbo mode, pose references, and output quality control.Upscale images (
upscale_image): AI-powered upscaling up to 128 megapixels, with options to enhance fine details and improve realism for AI-generated images.Generate videos (
generate_video): Create videos from text prompts, input images, or audio, with control over duration (1–20s), resolution (720p/1080p), aspect ratio, and FPS.Transform videos (
transform_video): Apply video-to-video transformations — animate a subject or replace characters using reference images — while preserving motion, timing, and scene structure.Upload files (
upload_file): Upload local files (up to 20MB) to Pruna AI for use in editing and video workflows.List models (
list_models): Browse all available Pruna AI models with their capabilities and pricing, filterable by category (image, editing, try-on, upscale, video, video-edit).Built-in workflow templates: Pre-built prompts for common tasks such as product photography, virtual staging, social media visuals, game concept art, and ad creative generation.
Generated images are returned as native MCP ImageContent blocks, and videos as EmbeddedResource blobs or ResourceLinks for easy client handling.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@pruna-mcp-servergenerate an image of a futuristic city skyline"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🎨 pruna-mcp-server
MCP server for Pruna AI — ultra-fast image generation, editing, upscaling, and video generation directly from your AI assistant.
Pruna AI is an inference API specialized in image and video generation. It offers sub-2-second image generation starting at $0.005/image, with models for text-to-image, image editing, upscaling, and video generation. This MCP server wraps their API so any MCP-compatible client (Claude Desktop, Kiro, Cursor) can generate visual content natively.
Conforms to MCP Specification 2025-11-25.
Features
8 MCP Tools:
generate_image,edit_image,try_on_image,upscale_image,generate_video,transform_video,list_models,upload_file7 MCP Prompts: Product photos, virtual staging, social media visuals, game concept art, ad creatives, video ads, image enhancement
2 MCP Resources:
pruna://modelscatalog for model discovery without tool calls21 models: 10 text-to-image, 3 editing, 1 virtual try-on, 1 upscale, 4 video, 2 video-to-video
Smart sync/async: Sync for fast image models, async with polling for video
Transparent file handling: Pass local paths or URLs — auto-upload handled
Native MCP image return:
ImageContentblocks for clients that support inline displayFull MCP compliance: Tool annotations, structured content, progress notifications
Related MCP server: Krea MCP Server
Quick Start
# With uvx (zero install)
uvx pruna-mcp-server
# Or with pip
pip install pruna-mcp-server
pruna-mcpSet your API key — get one at pruna.ai (go to the developer portal or contact Pruna to request access):
# macOS Keychain (recommended)
security add-generic-password -a $USER -s PRUNA_API_KEY -w "your-api-key"
# Linux (GNOME Keyring)
secret-tool store --label="Pruna API Key" service pruna-mcp-server key api_key <<< "your-api-key"
# Windows (PowerShell)
[System.Environment]::SetEnvironmentVariable("PRUNA_API_KEY", "your-api-key", "User")
# Or environment variable (all platforms)
export PRUNA_API_KEY="your-api-key"MCP Client Configuration
Kiro CLI
Add to your agent config (e.g. ~/.kiro/agents/default.json):
In mcpServers:
"pruna": {
"command": "sh",
"args": ["-c", "PRUNA_API_KEY=$(security find-generic-password -a $USER -s PRUNA_API_KEY -w) uv run --directory /path/to/pruna-mcp-server pruna-mcp"],
"autoApprove": ["generate_image", "edit_image", "try_on_image", "upscale_image", "generate_video", "transform_video", "list_models", "upload_file"]
}In tools, add: "@pruna/*"
In allowedTools, add: "generate_image", "edit_image", "try_on_image", "upscale_image", "generate_video", "transform_video", "list_models", "upload_file"
Note: Kiro agents use a
toolswhitelist with@server-name/*syntax and anallowedToolslist. Both must include the Pruna tools for them to be available.
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": {
"pruna": {
"command": "sh",
"args": ["-c", "PRUNA_API_KEY=$(security find-generic-password -a $USER -s PRUNA_API_KEY -w) /path/to/uv run --directory /path/to/pruna-mcp-server pruna-mcp"]
}
}
}Important: Use the full path to
uv(e.g./Users/you/.local/bin/uv) — Claude Desktop launches processes with a minimal PATH that doesn't include~/.local/bin.
Note: Claude Desktop does not render
ImageContentinline in the chat. The image is generated and saved locally — Claude will reference the file path in its response.
Cursor
Add to .cursor/mcp.json:
{
"mcpServers": {
"pruna": {
"command": "uvx",
"args": ["pruna-mcp-server"],
"env": { "PRUNA_API_KEY": "your-api-key" }
}
}
}Tools
Tool | Description | Pricing |
| Text-to-image with 10 models | From $0.0001/image |
| Edit 1-5 images with text instructions | From $0.010/image |
| Virtual try-on: fit up to 11 garments onto a person | $0.015 first + $0.008/extra garment |
| AI upscaling up to 128 megapixels | From $0.005/image |
| Text/image/audio to video | From $0.005/s |
| Video-to-video: animate a subject or replace characters | $0.03/s (720p), $0.06/s (1080p) |
| Browse all available models with pricing | Free |
| Upload files for editing/video workflows | Free |
Image tools return both a JSON metadata block and a native MCP ImageContent block (base64, for images < 5MB).
Video tools return a JSON metadata block (including a download_url to the Pruna delivery URL), the .mp4 as a native MCP binary resource (EmbeddedResource blob, for videos < 25MB) so clients materialize the file the same way they save images, and a ResourceLink to the same delivery URL as a fallback for larger files. All tools return an absolute file_path.
Prompts
Built-in workflow templates for common use cases:
Prompt | Use Case | Example |
| E-commerce product shots | "white leather sneakers on clean background" |
| Real estate room staging | Stage empty rooms with furniture |
| Platform-optimized visuals | Auto aspect ratio per platform |
| Game assets & environments | Characters, weapons, landscapes |
| Digital ads with text overlay | Headlines rendered in the image |
| Short video ads | Talking heads, product demos |
| Upscale + enhance workflow | AI-generated image refinement |
Configuration
Environment Variable | Required | Default | Description |
| ✅ | — | Your Pruna AI API key |
| — |
| Directory for downloaded files |
| — |
| Seconds between async polls |
| — |
| HTTP timeout in seconds |
| — |
| Max retries on transient errors |
Client Compatibility
Client | Transport | Status | Notes |
Kiro CLI | STDIO | ✅ Tested | Requires |
Claude Desktop | STDIO | ✅ Tested | Use full path to |
Cursor | STDIO | 🔲 Planned | — |
Claude Code | STDIO | 🔲 Planned | — |
Development
git clone https://github.com/charlesrapp/pruna-mcp-server.git
cd pruna-mcp-server
uv sync --extra dev
# Run tests (147 tests, 97% coverage)
uv run pytest --cov
# Lint & type check
uv run ruff check src/ tests/
uv run mypy src/See CONTRIBUTING.md for guidelines.
License
MIT — see LICENSE.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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/charlesrapp/pruna-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server