
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
mcp-server-replicate
Advanced tools
FastMCP server implementation for the 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
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.
FAQs
FastMCP server implementation for the Replicate API, providing resource-based access to AI model inference
We found that mcp-server-replicate demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.