Pruna

io.github.charlesrapp由 GitHub 帳號 charlesrapp 發布v0.1.1更新於 Oct 24, 2026

Ultra-fast image generation, editing, upscaling, and video generation via Pruna AI.

已驗證STDIO僅桌面媒體與設計AI 與機器學習

概覽

AI 產生的概覽

Pruna AI 的 MCP 伺服器,讓助理透過 Pruna 推論 API 產生、編輯、放大與轉換圖片和影片。

可以做什麼
依文字提示產生圖片,並用文字指令編輯一至五張圖片,包含把最多 11 件衣物虛擬試穿到人物身上,以及最高 128 百萬像素的 AI 放大。用文字、圖片或音訊產生影片,並對現有影片做主體動畫或角色替換。瀏覽可用模型與其價格,上傳本機檔案或 URL 供編輯與影片流程使用。以 MCP 圖片內容內嵌回傳圖片,以可下載檔案加本機絕對路徑回傳影片。提供產品照、虛擬佈置、社群視覺、概念藝術、廣告素材與影像強化等內建提示範本。
適用情境
適合讓助理在聊天用戶端內直接製作或修飾視覺素材,例如產品照、廣告創意、概念藝術、房間佈置、放大圖片或短影片。也適合需要在多個圖片與影片模型間選擇、並看到逐項價格的工作流程。
執行需求
透過 uvx 或 pip 以 Python 在本機安裝,經 stdio 執行。需要在 PRUNA_API_KEY 環境變數中提供 Pruna AI API 金鑰,存取權限須向 Pruna 申請。選用設定包括輸出目錄、輪詢間隔、逾時與重試次數。需要連線至 Pruna API 的網路,以及付費的 Pruna 帳戶才能產生內容。
安裝前請注意
每次產生、編輯、放大或影片呼叫都依圖片、衣物或影片秒數計費,使用越多費用越高。PRUNA_API_KEY 是付費憑證,應妥善保管,不要寫進共用設定。上傳的檔案與提示詞會傳送到 Pruna API,產生的媒體會下載到本機輸出目錄。README 中的用戶端範例設定會自動核准所有工具,等於取消消費前的確認。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Pruna,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

🎨 pruna-mcp-server

[CI] [PyPI] [Python] [License: MIT]

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_file
  • 7 MCP Prompts: Product photos, virtual staging, social media visuals, game concept art, ad creatives, video ads, image enhancement
  • 2 MCP Resources: pruna://models catalog for model discovery without tool calls
  • 21 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: ImageContent blocks for clients that support inline display
  • Full MCP compliance: Tool annotations, structured content, progress notifications

Quick Start

bash
# With uvx (zero install)uvx pruna-mcp-server
# Or with pippip install pruna-mcp-serverpruna-mcp

Set your API key — get one at pruna.ai (go to the developer portal or contact Pruna to request access):

bash
# 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:

json
"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 tools whitelist with @server-name/* syntax and an allowedTools list. Both must include the Pruna tools for them to be available.

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):

json
{  "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 ImageContent inline 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:

json
{  "mcpServers": {    "pruna": {      "command": "uvx",      "args": ["pruna-mcp-server"],      "env": { "PRUNA_API_KEY": "your-api-key" }    }  }}

Tools

ToolDescriptionPricing
generate_imageText-to-image with 10 modelsFrom $0.0001/image
edit_imageEdit 1-5 images with text instructionsFrom $0.010/image
try_on_imageVirtual try-on: fit up to 11 garments onto a person$0.015 first + $0.008/extra garment
upscale_imageAI upscaling up to 128 megapixelsFrom $0.005/image
generate_videoText/image/audio to videoFrom $0.005/s
transform_videoVideo-to-video: animate a subject or replace characters$0.03/s (720p), $0.06/s (1080p)
list_modelsBrowse all available models with pricingFree
upload_fileUpload files for editing/video workflowsFree

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:

PromptUse CaseExample
product-photoE-commerce product shots"white leather sneakers on clean background"
virtual-stagingReal estate room stagingStage empty rooms with furniture
social-media-visualPlatform-optimized visualsAuto aspect ratio per platform
game-concept-artGame assets & environmentsCharacters, weapons, landscapes
ad-creativeDigital ads with text overlayHeadlines rendered in the image
video-adShort video adsTalking heads, product demos
image-enhanceUpscale + enhance workflowAI-generated image refinement

Configuration

Environment VariableRequiredDefaultDescription
PRUNA_API_KEY✅—Your Pruna AI API key
PRUNA_OUTPUT_DIR—~/pruna-outputDirectory for downloaded files
PRUNA_POLL_INTERVAL—2Seconds between async polls
PRUNA_TIMEOUT—120HTTP timeout in seconds
PRUNA_MAX_RETRIES—3Max retries on transient errors

Client Compatibility

ClientTransportStatusNotes
Kiro CLISTDIO✅ TestedRequires tools + allowedTools config
Claude DesktopSTDIO✅ TestedUse full path to uv; no inline image display
CursorSTDIO🔲 Planned—
Claude CodeSTDIO🔲 Planned—

Development

bash
git clone https://github.com/charlesrapp/pruna-mcp-server.gitcd pruna-mcp-serveruv sync --extra dev
# Run tests (147 tests, 97% coverage)uv run pytest --cov
# Lint & type checkuv run ruff check src/ tests/uv run mypy src/

See CONTRIBUTING.md for guidelines.

License

MIT — see LICENSE.

來源:README.md,提交 ffe57c0

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分