by deepfates
mcp-replicate is a Model Context Protocol (MCP) server that allows users to interact with Replicate's machine learning models through a simple tool-based interface.
mcp-replicate is a Model Context Protocol (MCP) server specifically designed to integrate with Replicate's API. It enables users to search, run, and manage machine learning models available on Replicate directly through MCP-compatible clients like Claude Desktop, Cursor, Cline, or Continue. This project simplifies the interaction with complex ML models by providing a structured, tool-based interface.
To use mcp-replicate, you can follow these steps:
npm install -g mcp-replicate
. Alternative installation methods include installing from source or running with npx
.mcpServers
section in the developer settings.mcp-replicate offers a comprehensive set of features for interacting with Replicate models:
search_models
, list_models
), Prediction Tools (e.g., create_prediction
, get_prediction
), and Image Tools (e.g., view_image
, clear_image_cache
).mcp-replicate is ideal for:
Q: Server is running but tools aren't showing up. What should I do? A: Check that your MCP client (e.g., Claude Desktop) is properly configured with the MCP server settings. Ensure your Replicate API token is set correctly. Try restarting both the server and your client, and review server logs for error messages.
Q: Tools are visible but not working. How can I troubleshoot this? A: Verify that your Replicate API token is valid and check your internet connection. Look for any error messages in the server output for more specific guidance.
A Model Context Protocol server implementation for Replicate. Run Replicate models through a simple tool-based interface.
npm install -g mcp-replicate
Get your Replicate API token:
Configure Claude Desktop:
your_token_here
with your actual Replicate API token:{
"mcpServers": {
"replicate": {
"command": "mcp-replicate",
"env": {
"REPLICATE_API_TOKEN": "your_token_here"
}
}
}
}
(You can also use any other MCP client, such as Cursor, Cline, or Continue.)
git clone https://github.com/deepfates/mcp-replicate
cd mcp-replicate
npm install
npm run build
npm start
npx mcp-replicate
The server needs a Replicate API token to work. You can get one at Replicate.
There are two ways to provide the token:
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"
}
}
}
}
Alternatively, you can set it as an environment variable if you're using another MCP client:
export REPLICATE_API_TOKEN=your_token_here
search_models
: Find models using semantic searchlist_models
: Browse available modelsget_model
: Get details about a specific modellist_collections
: Browse model collectionsget_collection
: Get details about a specific collectioncreate_prediction
: Run a model with your inputscreate_and_poll_prediction
: Run a model with your inputs and wait until it's completedget_prediction
: Check a prediction's statuscancel_prediction
: Stop a running predictionlist_predictions
: See your recent predictionsview_image
: Open an image in your browserclear_image_cache
: Clean up cached imagesget_image_cache_stats
: Check cache usagenpm install
npm run dev
npm run lint
npm run format
MIT
Please log in to share your review and rating for this MCP.