Run AI models for tasks like image generation using the Replicate API.
A FastMCP server implementation for the Replicate API, providing resource-based access to AI model inference with a focus on image generation.
The server provides several specialized prompts for different tasks:
Our most thoroughly tested and robust prompt. Optimized for generating high-quality images from text descriptions with:
Example:
Create a photorealistic mountain landscape at sunset with snow-capped peaks, quality level: quality, style: photorealistic
To install MCP Server Replicate for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @gerred/mcp-server-replicate --client claude
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
# macOS
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
# Windows
code %APPDATA%\Claude\claude_desktop_config.json
{
"globalShortcut": "Shift+Alt+A",
"mcpServers": {
"replicate": {
"command": "uv",
"args": ["tool", "run", "mcp-server-replicate"],
"env": {
"REPLICATE_API_TOKEN": "APITOKEN"
},
"cwd": "$PATH_TO_REPO"
}
}
}
# 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" > ~/.env
You should now see the π¨ icon in Claude Desktop, indicating that the MCP server is available.
Once connected to Claude Desktop, you can:
Generate images with natural language:
Create a photorealistic mountain landscape at sunset with snow-capped peaks
Browse your generations:
Show me my recent image generations
Search through generations:
Find my landscape generations
Check generation status:
What's the status of my last generation?
tail -n 20 -f ~/Library/Logs/Claude/mcp*.log
claude_desktop_config.json
is absoluteFor more detailed troubleshooting, see our Debugging Guide.
git clone https://github.com/gerred/mcp-server-replicate.git
cd mcp-server-replicate
uv pip install --system ".[dev]"
pre-commit install
pytest
We welcome contributions! Please see our Contributing Guide for details.
This project is licensed under the MIT License - see the LICENSE file for details.
Manage Aiven cloud services like Kafka, PostgreSQL, and Redis via its API.
Administer Google Workspace using the GAM command-line tool.
A remote MCP server deployable on Cloudflare Workers without authentication.
An unofficial server for interacting with the Yandex Cloud API.
Provides a unified interface to AWS services for security investigations and incident response.
Provides full access to the Google Ads API v20. Requires OAuth2 or Service Account credentials for configuration.
Server for using HuggingFace Spaces, supporting Images, Audio, Text and more. Claude Desktop mode for ease-of-use.
Integrates with Lemon Squeezy to manage subscriptions, checkouts, and products.
A Python MCP server for Microsoft Entra ID (Azure AD) directory, user, group, device, sign-in, and security operations via Microsoft Graph.
A Model Context Protocol (MCP) server that provides tools for AI, allowing it to interact with the DataWorks Open API through a standardized interface. This implementation is based on the Aliyun Open API and enables AI agents to perform cloud resources operations seamlessly.