Server data from the Official MCP Registry
Ultra-fast image generation, editing, upscaling, and video generation via Pruna AI.
Ultra-fast image generation, editing, upscaling, and video generation via Pruna AI.
This is a well-structured MCP server for Pruna AI image/video generation with solid security practices. Authentication is properly enforced via API keys from environment variables or Keychain, input validation is comprehensive, and dangerous operations like shell execution are absent. Permissions are appropriately scoped to the server's stated purpose (image/video generation via HTTP APIs and file I/O). Minor code quality observations exist but do not constitute security vulnerabilities. Supply chain analysis found 4 known vulnerabilities in dependencies (0 critical, 3 high severity). Package verification found 1 issue.
4 files analyzed ยท 9 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
This plugin requests these system permissions. Most are normal for its category.
Set these up before or after installing:
Environment variable: PRUNA_API_KEY
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-charlesrapp-pruna": {
"env": {
"PRUNA_API_KEY": "your-pruna-api-key-here"
},
"args": [
"pruna-mcp-server"
],
"command": "uvx"
}
}
}From the project's GitHub README.
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.
generate_image, edit_image, upscale_image, generate_video, list_models, upload_filepruna://models catalog for model discovery without tool callsImageContent blocks for clients that support inline display# With uvx (zero install)
uvx pruna-mcp-server
# Or with pip
pip install pruna-mcp-server
pruna-mcp
Set 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"
# Or environment variable
export PRUNA_API_KEY="your-api-key"
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", "upscale_image", "generate_video", "list_models", "upload_file"]
}
In tools, add: "@pruna/*"
In allowedTools, add: "generate_image", "edit_image", "upscale_image", "generate_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.
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.
Add to .cursor/mcp.json:
{
"mcpServers": {
"pruna": {
"command": "uvx",
"args": ["pruna-mcp-server"],
"env": { "PRUNA_API_KEY": "your-api-key" }
}
}
}
| Tool | Description | Pricing |
|---|---|---|
generate_image | Text-to-image with 10 models | From $0.0001/image |
edit_image | Edit 1-5 images with text instructions | From $0.010/image |
upscale_image | AI upscaling to 1-8 megapixels | From $0.005/image |
generate_video | Text/image/audio to video | From $0.005/s |
list_models | Browse all available models with pricing | Free |
upload_file | 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).
Built-in workflow templates for common use cases:
| Prompt | Use Case | Example |
|---|---|---|
product-photo | E-commerce product shots | "white leather sneakers on clean background" |
virtual-staging | Real estate room staging | Stage empty rooms with furniture |
social-media-visual | Platform-optimized visuals | Auto aspect ratio per platform |
game-concept-art | Game assets & environments | Characters, weapons, landscapes |
ad-creative | Digital ads with text overlay | Headlines rendered in the image |
video-ad | Short video ads | Talking heads, product demos |
image-enhance | Upscale + enhance workflow | AI-generated image refinement |
| Environment Variable | Required | Default | Description |
|---|---|---|---|
PRUNA_API_KEY | โ | โ | Your Pruna AI API key |
PRUNA_OUTPUT_DIR | โ | ./pruna-output | Directory for downloaded files |
PRUNA_POLL_INTERVAL | โ | 2 | Seconds between async polls |
PRUNA_TIMEOUT | โ | 120 | HTTP timeout in seconds |
PRUNA_MAX_RETRIES | โ | 3 | Max retries on transient errors |
| Client | Transport | Status | Notes |
|---|---|---|---|
| Kiro CLI | STDIO | โ Tested | Requires tools + allowedTools config |
| Claude Desktop | STDIO | โ Tested | Use full path to uv; no inline image display |
| Cursor | STDIO | ๐ฒ Planned | โ |
| Claude Code | STDIO | ๐ฒ Planned | โ |
git clone https://github.com/charlesrapp/pruna-mcp-server.git
cd pruna-mcp-server
uv sync --extra dev
# Run tests (100 tests, 94% coverage)
uv run pytest --cov
# Lint & type check
uv run ruff check src/ tests/
uv run mypy src/
See CONTRIBUTING.md for guidelines.
MIT โ see LICENSE.
Be the first to review this server!
by Modelcontextprotocol ยท Developer Tools
Read, search, and manipulate Git repositories programmatically
by Toleno ยท Developer Tools
Toleno Network MCP Server โ Manage your Toleno mining account with Claude AI using natural language.
by mcp-marketplace ยท Developer Tools
Create, build, and publish Python MCP servers to PyPI โ conversationally.