mcp-replicate
by deepfates
Model Context Protocol server for Replicate's API
What is mcp-replicate
Replicate MCP Server
A Model Context Protocol server implementation for Replicate. Run Replicate models through a simple tool-based interface.
Quickstart
- Install the server:
npm install -g mcp-replicate
-
Get your Replicate API token:
- Go to Replicate API tokens page
- Create a new token if you don't have one
- Copy the token for the next step
-
Configure Claude Desktop:
- Open Claude Desktop Settings (โ,)
- Select the "Developer" section in the sidebar
- Click "Edit Config" to open the configuration file
- Add the following configuration, replacing
your_token_here
with your actual Replicate API token:
{
"mcpServers": {
"replicate": {
"command": "mcp-replicate",
"env": {
"REPLICATE_API_TOKEN": "your_token_here"
}
}
}
}
- Start Claude Desktop. You should see a ๐จ hammer icon in the bottom right corner of new chat windows, indicating the tools are available.
(You can also use any other MCP client, such as Cursor, Cline, or Continue.)
Alternative Installation Methods
Install from source
git clone https://github.com/deepfates/mcp-replicate
cd mcp-replicate
npm install
npm run build
npm start
Run with npx
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:
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"
}
}
}
}
2. As Environment Variable
Alternatively, you can set it as an environment variable if you're using another MCP client:
export REPLICATE_API_TOKEN=your_token_here
Available Tools
Model Tools
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 collection
Prediction Tools
create_prediction
: Run a model with your inputsget_prediction
: Check a prediction's statuscancel_prediction
: Stop a running predictionlist_predictions
: See your recent predictions
Image Tools
view_image
: Open an image in your browserclear_image_cache
: Clean up cached imagesget_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
- Ensure your Replicate API token is set correctly
- Try restarting both the server and Claude Desktop
- Check the server logs for any error messages
Tools are visible but not working
- Verify your Replicate API token is valid
- Check your internet connection
- Look for any error messages in the server output
Development
- Install dependencies:
npm install
- Start development server (with auto-reload):
npm run dev
- Check code style:
npm run lint
- Format code:
npm run format
Requirements
- Node.js >= 18.0.0
- TypeScript >= 5.0.0
- Claude Desktop for using the tools
License
MIT
Leave a Comment
Comments section will be available soon. Stay tuned!
Frequently Asked Questions
What is MCP?
MCP (Model Context Protocol) is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications, providing a standardized way to connect AI models to different data sources and tools.
What are MCP Servers?
MCP Servers are lightweight programs that expose specific capabilities through the standardized Model Context Protocol. They act as bridges between LLMs like Claude and various data sources or services, allowing secure access to files, databases, APIs, and other resources.
How do MCP Servers work?
MCP Servers follow a client-server architecture where a host application (like Claude Desktop) connects to multiple servers. Each server provides specific functionality through standardized endpoints and protocols, enabling Claude to access data and perform actions through the standardized protocol.
Are MCP Servers secure?
Yes, MCP Servers are designed with security in mind. They run locally with explicit configuration and permissions, require user approval for actions, and include built-in security features to prevent unauthorized access and ensure data privacy.
Related MCP Servers
Ableton Live MCP Server
MCP Server implementation for Ableton Live OSC control
Airbnb MCP Server
AI Agent Marketplace Index Search MCP Server
MCP Server for AI Agent Marketplace Index from DeepNLP
Algorand MCP Implementation
Algorand Model Context Protocol (Server & Client)
mcp-server-apache-airflow
pypi.org/project/mcp-server-apache-airflow/
airtable-mcp-server
๐๏ธ๐ค Airtable Model Context Protocol Server, for allowing AI systems to interact with your Airtable bases
Airtable MCP Server
Search, create and update Airtable bases, tables, fields, and records using Claude Desktop and MCP (Model Context Protocol) clients
Alphavantage MCP Server
A MCP server for the stock market data API, Alphavantage API.
Amadeus MCP Server
Amadeus MCP(Model Context Protocol) Server
Anki MCP Server
An MCP server for Anki
Submit Your MCP Server
Share your MCP server with the community
Submit Now