MCP Server Replicate
Réplica del servidor MCP
Una implementación de servidor FastMCP para la API Replicate, que proporciona acceso basado en recursos a la inferencia de modelos de IA con un enfoque en la generación de imágenes.
Características
🖼️ Generación y gestión de imágenes basada en recursos
🔄 Actualizaciones en tiempo real a través de suscripciones
Configuración de parámetros basada en plantillas
🔍 Descubrimiento y selección de modelos integrales
🪝 Integración de webhook para notificaciones externas
🎨 Ajustes preestablecidos de calidad y estilo para obtener resultados óptimos
📊 Seguimiento del progreso y control del estado
🔒 Gestión segura de claves API
Related MCP server: MCP Server for Replicate
Indicaciones disponibles
El servidor proporciona varias indicaciones especializadas para diferentes tareas:
Texto a imagen (principal)
Nuestro mensaje más robusto y probado a fondo. Optimizado para generar imágenes de alta calidad a partir de descripciones de texto con:
Control de estilo detallado
Ajustes preestablecidos de calidad (borrador, equilibrado, calidad, extremo)
Personalización del tamaño y la relación de aspecto
Seguimiento del progreso y actualizaciones en tiempo real
Ejemplo:
Create a photorealistic mountain landscape at sunset with snow-capped peaks, quality level: quality, style: photorealisticOtras indicaciones
Imagen a imagen : Transforma imágenes existentes (próximamente)
Selección de modelo : obtenga ayuda para elegir el modelo adecuado para su tarea
Ayuda de parámetros : comprender y configurar los parámetros del modelo
Prerrequisitos
Python 3.11 o superior
Una clave API de replicación (obtenga una en https://replicate.com/account )
UV para la gestión de la dependencia
Instalación
Instalación mediante herrería
Para instalar MCP Server Replicate para Claude Desktop automáticamente a través de Smithery :
npx -y @smithery/cli install @gerred/mcp-server-replicate --client claudeInstalación manual
Puede instalar el paquete directamente desde 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-replicateIntegración de escritorio de Claude
Asegúrate de tener instalada la última versión de Claude Desktop
Abra la configuración de Claude Desktop:
# macOS
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
# Windows
code %APPDATA%\Claude\claude_desktop_config.jsonAgregue la configuración del servidor utilizando una de estas opciones:
{
"globalShortcut": "Shift+Alt+A",
"mcpServers": {
"replicate": {
"command": "uv",
"args": ["tool", "run", "mcp-server-replicate"],
"env": {
"REPLICATE_API_TOKEN": "APITOKEN"
},
"cwd": "$PATH_TO_REPO"
}
}
}Establezca su clave API de replicación:
# Option 1: Set in your environment
export REPLICATE_API_TOKEN=your_api_key_here
# Option 2: Create a .env file in your home directory
echo "REPLICATE_API_TOKEN=your_api_key_here" > ~/.envReiniciar Claude Desktop por completo
Ahora debería ver el ícono 🔨 en Claude Desktop, lo que indica que el servidor MCP está disponible.
Uso
Una vez conectado a Claude Desktop, podrá:
Generar imágenes con lenguaje natural:
Create a photorealistic mountain landscape at sunset with snow-capped peaksExplora tus generaciones:
Show me my recent image generationsBúsqueda a través de generaciones:
Find my landscape generationsComprobar el estado de la generación:
What's the status of my last generation?
Solución de problemas
El servidor no aparece en Claude Desktop
Consulte los registros de Claude Desktop:
tail -n 20 -f ~/Library/Logs/Claude/mcp*.logVerifique su configuración:
Asegúrese de que la ruta en
claude_desktop_config.jsonsea absolutaAsegúrese de que UV esté instalado y en su PATH
Comprueba que tu clave API de replicación esté configurada
Intente reiniciar Claude Desktop
Para obtener una solución de problemas más detallada, consulte nuestra Guía de depuración .
Documentación
Desarrollo
Clonar el repositorio:
git clone https://github.com/gerred/mcp-server-replicate.git
cd mcp-server-replicateInstalar dependencias de desarrollo:
uv pip install --system ".[dev]"Instalar ganchos previos a la confirmación:
pre-commit installEjecutar pruebas:
pytestContribuyendo
¡Agradecemos sus contribuciones! Consulte nuestra Guía de Contribución para más detalles.
Licencia
Este proyecto está licenciado bajo la licencia MIT: consulte el archivo de LICENCIA para obtener más detalles.
Available Tools
18 toolscancel_predictionC
Cancel a running prediction.
Inputs: prediction_id (required).
create_predictionC
Create a new prediction using a specific model version on Replicate.
Args:
input: Model input parameters including version or model details
confirmed: Whether the user has explicitly confirmed the generation
Returns:
Prediction details if confirmed, or a confirmation request if not
Inputs: input (required), confirmed.
generate_imageC
Generate an image using the specified parameters.
Inputs: prompt (required), style, quality, width, +3 more.
get_collection_detailsC
Get detailed information about a specific collection.
Inputs: collection_slug (required).
get_model_detailsC
Get detailed information about a specific model.
Args:
model_id: Model identifier in format owner/name
Returns:
Detailed model information
Inputs: model_id (required).
get_predictionC
Get the status and results of a prediction.
Inputs: prediction_id (required), wait, max_retries.
get_webhook_secretA
Get the signing secret for verifying webhook requests.
Inputs: no named parameters.
list_collectionsB
List available model collections on Replicate.
Inputs: no named parameters.
list_hardwareB
List available hardware options for running models.
Inputs: no named parameters.
list_modelsC
List available models on Replicate with optional filtering by owner.
Inputs: owner.
list_templatesB
List all available templates with their schemas.
Inputs: no named parameters.
open_image_with_systemB
Open an image URL with the system's default application.
Args:
image_url: URL of the image to open
Returns:
Dict containing status of the operation
Inputs: image_url (required).
search_available_modelsB
Search for available models matching the query.
Args:
query: Search query describing the desired model
style: Optional style to filter by
Returns:
List of matching models with scores
Inputs: query (required), style.
search_modelsC
Search for models using semantic search.
Inputs: query (required).
subscribe_to_generationD
Handle resource subscription requests.
Inputs: request (required).
unsubscribe_from_generationC
Handle resource unsubscribe requests.
Inputs: request (required).
validate_template_parametersC
Validate parameters against a template schema.
Inputs: input (required).
verify_webhookA
Verify that a webhook request came from Replicate using HMAC-SHA256.
Args:
payload: The webhook payload to verify
signature: The signature from the X-Replicate-Signature header
secret: The webhook signing secret from get_webhook_secret
Returns:
True if signature is valid, False otherwise
Inputs: payload (required), signature (required), secret (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 18 tools
Most tools have distinct purposes, but there is some overlap between 'search_available_models' and 'search_models' that could cause confusion, as both involve searching for models. The descriptions help differentiate them slightly, but the boundaries are not entirely clear.
Tool names follow a consistent snake_case pattern with clear verb_noun structures throughout, such as 'create_prediction', 'get_model_details', and 'list_collections'. There are no deviations in naming conventions, making the set predictable and readable.
With 18 tools, the count is borderline high for a server focused on Replicate's AI model platform. While it covers various aspects like predictions, models, and webhooks, it may feel slightly heavy and could benefit from consolidation to reduce complexity.
The tool set provides good coverage for the Replicate domain, including prediction lifecycle (create, get, cancel), model discovery (list, get, search), and webhook management. Minor gaps exist, such as missing tools for updating or deleting predictions or models, but agents can work around these with the available operations.
Maintenance
Related MCP Connectors
AI image & video generation MCP server (16 models, DAG projects, MCP Apps UI, OAuth 2.1).
1MCP server for Qwen Image 3 AI image generation
Focused MCP server for OpenAI image/audio generation (v2.0.0). Wraps endpoints via HAPI CLI.
Remote MCP server for the Mynth API: image and video generation, task tracking and balance.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables users to generate images from text prompts using Replicate's model, with configurable parameters and full MCP protocol compliance.1122ISC
- AlicenseNot gradedqualityDmaintenanceA FastMCP server implementation that provides a standardized interface for accessing AI models hosted on Replicate's API, currently supporting image generation with customizable parameters.3MIT
- AlicenseNot gradedqualityDmaintenanceA server that enables generating images through the Replicate API by calling the Flux Schnell model via the Model Context Protocol (MCP).2MIT
- AlicenseAqualityDmaintenanceMCP server for multi-provider AI image generation (AWS Bedrock, OpenAI, Google Gemini) enabling image generation, transformation, and editing through a unified interface.41MIT