Replicate Image Generation
STDIOFastMCP server for Replicate API, providing resource-based access to AI model inference.
FastMCP server for Replicate API, providing resource-based access to AI model inference.
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.