
Pruna
io.github.charlesrapp由 GitHub 账号 charlesrapp 发布v0.1.1更新于 Oct 24, 2026
Ultra-fast image generation, editing, upscaling, and video generation via Pruna 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 账户。
安装
在 SourceWeft 中
- 打开 控制台中的 Pruna,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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://modelscatalog 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:
ImageContentblocks for clients that support inline display - Full MCP compliance: Tool annotations, structured content, progress notifications
Quick Start
Set your API key — get one at pruna.ai (go to the developer portal or contact Pruna to request access):
MCP Client Configuration
Kiro CLI
Add to your agent config (e.g. ~/.kiro/agents/default.json):
In mcpServers:
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):
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:
Tools
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:
Configuration
Client Compatibility
Development
See CONTRIBUTING.md for guidelines.
License
MIT — see LICENSE.
来源:README.md,提交 ffe57c0
工具
0版本历史
1- v0.1.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分