MCP Server Replicate

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
REPLICATE_API_TOKENYesYour Replicate API key

Schema

Prompts

Interactive templates invoked by user choice

NameDescription
text_to_imageGenerate an image from text using available models.
image_to_imageTransform an existing image using various models.
model_selectionHelp choose the right model for a specific task.
parameter_helpGet help with model parameters and templates.
after_generationPrompt shown after starting an image generation.

Resources

Contextual data attached and managed by the client

NameDescription
templates://list
generations://list
models://popular

Tools

Functions exposed to the LLM to take actions

NameDescription
list_modelsList available models on Replicate with optional filtering by owner.
search_modelsSearch for models using semantic search.
list_collectionsList available model collections on Replicate.
get_collection_detailsGet detailed information about a specific collection.
list_hardwareList available hardware options for running models.
list_templatesList all available templates with their schemas.
validate_template_parametersValidate parameters against a template schema.
create_predictionCreate 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
get_predictionGet the status and results of a prediction.
cancel_predictionCancel a running prediction.
get_webhook_secretGet the signing secret for verifying webhook requests.
verify_webhookVerify 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
search_available_modelsSearch 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
get_model_detailsGet detailed information about a specific model. Args: model_id: Model identifier in format owner/name Returns: Detailed model information
generate_imageGenerate an image using the specified parameters.
subscribe_to_generationHandle resource subscription requests.
unsubscribe_from_generationHandle resource unsubscribe requests.
open_image_with_systemOpen 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