Search, run and manage machine learning models on Replicate through a simple tool-based interface. Browse models, create predictions, track their status, and handle generated images.
Documentation
Replicate MCP Server
A Model Context Protocol server implementation for Replicate. Run Replicate models through a simple tool-based interface.
Start Claude Desktop. You should see a 🔨 hammer icon in the bottom right corner of new chat windows, indicating the tools are available.
Alternative Installation Methods# Install from source
git clone https://github.com/deepfates/mcp-replicate
cd mcp-replicate
npm install
npm run build
npm start
```\n\n### Run with npx
```bash
npx mcp-replicate
Features# Models
Search models using semantic search
Browse models and collections
Get detailed model information and versions
Predictions
Create predictions with text or structured input
Track prediction status
Cancel running predictions
List your recent predictions
Image Handling
View generated images in your browser
Manage image cache for better performance
Configuration
The server needs a Replicate API token to work. You can get one at Replicate. There are two ways to provide the token:\n\n### 1. In Claude Desktop Config (Recommended)
Add it to your Claude Desktop configuration as shown in the Quickstart section:
{
"mcpServers": {
"replicate": {
"command": "mcp-replicate",
"env": {
"REPLICATE_API_TOKEN": "your_token_here"
}
}
}
}
```\n\n### 2. As Environment Variable
Alternatively, you can set it as an environment variable if you're using another MCP client:
```bash
export REPLICATE_API_TOKEN=your_token_here
Available Tools# Model Tools
search_models: Find models using semantic search
list_models: Browse available models
get_model: Get details about a specific model
list_collections: Browse model collections
get_collection: Get details about a specific collection
Prediction Tools
create_prediction: Run a model with your inputs
create_and_poll_prediction: Run a model with your inputs and wait until it's completed
get_prediction: Check a prediction's status
cancel_prediction: Stop a running prediction
list_predictions: See your recent predictions
Image Tools
view_image: Open an image in your browser
clear_image_cache: Clean up cached images
get_image_cache_stats: Check cache usage
Troubleshooting# Server is running but tools aren't showing up
Check that Claude Desktop is properly configured with the MCP server settings