MCP Server Replicate
The MCP Server Replicate provides resource-based access to Replicate's AI models for inference, with a primary focus on image generation capabilities.
Image Generation: Generate images from text descriptions with customizable parameters (style, quality, size, seed)
Model Discovery: List, search, and get details about available AI models and collections
Prediction Management: Create, monitor, cancel, and track status of AI model predictions
Template Management: Explore and validate parameters using predefined templates
Real-time Updates: Subscribe to resources for tracking generation status and results
Webhook Integration: Verify and manage webhook notifications for prediction events
Hardware Options: List available hardware for running models
System Integration: Open generated images with the system's default application
History Management: Browse and search through previous image generations
Serves as a FastMCP server implementation for the Replicate API, providing resource-based access to AI model inference with a focus on image generation.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Server Replicatecreate a photorealistic mountain landscape at sunset with snow-capped peaks"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Related MCP server: MCP Server for Replicate
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: photorealisticOther 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
Python 3.11 or higher
A Replicate API key (get one at https://replicate.com/account)
UV for dependency management
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 claudeInstalling 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-replicateClaude Desktop Integration
Make sure you have the latest version of Claude Desktop installed
Open your Claude Desktop configuration:
# macOS
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
# Windows
code %APPDATA%\Claude\claude_desktop_config.jsonAdd the server configuration using one of these options:
{
"globalShortcut": "Shift+Alt+A",
"mcpServers": {
"replicate": {
"command": "uv",
"args": ["tool", "run", "mcp-server-replicate"],
"env": {
"REPLICATE_API_TOKEN": "APITOKEN"
},
"cwd": "$PATH_TO_REPO"
}
}
}Set your Replicate API key:
# 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" > ~/.envRestart Claude Desktop completely
You should now see the 🔨 icon in Claude Desktop, indicating that the MCP server is available.
Usage
Once connected to Claude Desktop, you can:
Generate images with natural language:
Create a photorealistic mountain landscape at sunset with snow-capped peaksBrowse your generations:
Show me my recent image generationsSearch through generations:
Find my landscape generationsCheck generation status:
What's the status of my last generation?
Troubleshooting
Server not showing up in Claude Desktop
Check the Claude Desktop logs:
tail -n 20 -f ~/Library/Logs/Claude/mcp*.logVerify your configuration:
Make sure the path in
claude_desktop_config.jsonis absoluteEnsure UV is installed and in your PATH
Check that your Replicate API key is set
Try restarting Claude Desktop
For more detailed troubleshooting, see our Debugging Guide.
Documentation
Development
Clone the repository:
git clone https://github.com/gerred/mcp-server-replicate.git
cd mcp-server-replicateInstall development dependencies:
uv pip install --system ".[dev]"Install pre-commit hooks:
pre-commit installRun tests:
pytestContributing
We welcome contributions! Please see our Contributing Guide for details.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseBqualityDmaintenanceEnables users to generate images from text prompts using Replicate's model, with configurable parameters and full MCP protocol compliance.Last updated1126
- Alicense-qualityDmaintenanceA FastMCP server implementation that provides a standardized interface for accessing AI models hosted on Replicate's API, currently supporting image generation with customizable parameters.Last updated3MIT
- Alicense-qualityDmaintenanceA server that enables generating images through the Replicate API by calling the Flux Schnell model via the Model Context Protocol (MCP).Last updated3MIT
- AlicenseAqualityDmaintenanceMCP server for multi-provider AI image generation (AWS Bedrock, OpenAI, Google Gemini) enabling image generation, transformation, and editing through a unified interface.Last updated41MIT
Related MCP Connectors
MCP server for Flux AI image generation
Remote MCP server for RunComfy Serverless API (ComfyUI): deployments and async inference.
MCP server for Wan AI video generation
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/gerred/mcp-server-replicate'
If you have feedback or need assistance with the MCP directory API, please join our Discord server