GM

gerred/mcp-server-replicate

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

16 stars 8 forks 质量 55 趋势 21

一个用于复制API的FastMCP服务器执行,提供基于资源访问AI模型推论,并侧重于图像生成.

概览

一个用于复制API的FastMCP服务器执行,提供基于资源访问AI模型推论,并侧重于图像生成. - 以资源为基础的图像生成和管理 - 通过订阅实时更新 - 由模板驱动的参数配置 - QQ综合模型发现和选择 - 外部通知的Webhook集成 - 质量和风格预设 - 最佳结果 - 进展跟踪和状态监测 - QQ安全 API密钥管理 服务器为不同的任务提供多个专门的提示: 我们经过了最彻底的考验,非常迅速.

概述(AI 翻译)

一个用于复制API的FastMCP服务器执行,提供基于资源访问AI模型推论,并侧重于图像生成.

□ 特性

  • 资源图像生成和管理
  • 通过订阅实时更新
  • 由模板驱动的参数配置
  • 综合模型发现和选择
  • 外部通知的Webhook集成
  • 最佳结果的质量和风格
  • 进展跟踪和现状监测
  • API钥匙安全管理

□ 可用提示

服务器为不同的任务提供多个专门的提示:

QQ 文本到图像( 初级)

我们经过了最彻底的考验,非常迅速。 从文本描述生成高质量图像的优化:

  • 详细样式控制
  • 质量预设(草案、平衡、质量、极端)
  • 大小和尺寸比定制
  • 进展跟踪和实时更新

示例

其他提示

  • 图像图像:变换现有图像(即将到来)
  • ** 模式选择**:请帮助为您的任务选择合适的模式
  • ** 参数帮助**:理解和配置模型参数

□ 先决条件

  • Python 3号.

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

MCP Server Replicate

A FastMCP server implementation for the Replicate API, providing resource-based access to AI model inference with a focus on image generation.

Features

  • 🖼️ Resource-based image generation and management
  • 🔄 Real-time updates through subscriptions
  • 📝 Template-driven parameter configuration
  • 🔍 Comprehensive model discovery and selection
  • 🪝 Webhook integration for external notifications
  • 🎨 Quality and style presets for optimal results
  • 📊 Progress tracking and status monitoring
  • 🔒 Secure API key management

Available Prompts

The server provides several specialized prompts for different tasks:

Text to Image (Primary)

Our most thoroughly tested and robust prompt. Optimized for generating high-quality images from text descriptions with:

  • Detailed style control
  • Quality presets (draft, balanced, quality, extreme)
  • Size and aspect ratio customization
  • Progress tracking and real-time updates

Example:

Create a photorealistic mountain landscape at sunset with snow-capped peaks, quality level: quality, style: photorealistic

Other Prompts

  • Image to Image: Transform existing images (coming soon)
  • Model Selection: Get help choosing the right model for your task
  • Parameter Help: Understand and configure model parameters

Prerequisites

Installation

Installing via Smithery

To install MCP Server Replicate for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @gerred/mcp-server-replicate --client claude

Installing Manually

You can install the package directly from PyPI:

# Using UV (recommended)
uv pip install mcp-server-replicate

# Using UVX for isolated environments
uvx install mcp-server-replicate

# Using pip
pip install mcp-server-replicate

Claude Desktop Integration

在 GitHub 查看完整 README

安装

npx -y @smithery/cli install @gerred/mcp-server-replicate --client claude
新手?先看 mcpskill.org 教程 →

配置

{ "globalShortcut": "Shift+Alt+A", "mcpServers": { "replicate": { "command": "uv", "args": ["tool", "run", "mcp-server-replicate"], "env": { "REPLICATE_API_TOKEN": "APITOKEN" }, "cwd": "$PATH_TO_REPO" } } }