Skip to main content
Glama

Replicate MCP Server

by deepfates

Replicate MCP Server

A Model Context Protocol server implementation for Replicate. Run Replicate models through a simple tool-based interface.

Quickstart

  1. Install the server:
npm install -g mcp-replicate
  1. Get your Replicate API token:
  2. 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" } } } }
  1. 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:

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 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

  1. Check that Claude Desktop is properly configured with the MCP server settings
  2. Ensure your Replicate API token is set correctly
  3. Try restarting both the server and Claude Desktop
  4. Check the server logs for any error messages

Tools are visible but not working

  1. Verify your Replicate API token is valid
  2. Check your internet connection
  3. Look for any error messages in the server output

Development

  1. Install dependencies:
npm install
  1. Start development server (with auto-reload):
npm run dev
  1. Check code style:
npm run lint
  1. Format code:
npm run format

Requirements

  • Node.js >= 18.0.0
  • TypeScript >= 5.0.0
  • Claude Desktop for using the tools

License

MIT

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Enables users to access and manage Replicate's AI models and predictions via the Model Context Protocol, offering tools for creating, canceling, and retrieving model predictions and parameters.

  1. Quickstart
    1. Alternative Installation Methods
      1. Install from source
      2. Run with npx
    2. Features
      1. Models
      2. Predictions
      3. Image Handling
    3. Configuration
      1. In Claude Desktop Config (Recommended)
      2. As Environment Variable
    4. Available Tools
      1. Model Tools
      2. Prediction Tools
      3. Image Tools
    5. Troubleshooting
      1. Server is running but tools aren't showing up
      2. Tools are visible but not working
    6. Development
      1. Requirements
        1. License

          Related MCP Servers

          • A
            security
            F
            license
            A
            quality
            Implements the Model Context Protocol to allow AI models to access and interact with blockchain data, including reading contract states, retrieving events, and accessing transaction information across various networks.
            Last updated -
            10
            45
            30
            TypeScript
          • -
            security
            F
            license
            -
            quality
            A Model Context Protocol server that provides persistent task management capabilities for AI assistants, allowing them to create, update, and track tasks beyond their usual context limitations.
            Last updated -
            1
            TypeScript
          • -
            security
            F
            license
            -
            quality
            A demonstration implementation of the Model Context Protocol server that facilitates communication between AI models and external tools while maintaining context awareness.
            Last updated -
            Python
            • Linux
            • Apple
          • A
            security
            A
            license
            A
            quality
            Enables AI assistants to discover, retrieve details about, and manage MCP (Model Context Protocol) servers that provide additional tools and capabilities on demand.
            Last updated -
            4
            724
            1
            JavaScript
            AGPL 3.0
            • Linux
            • Apple

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/deepfates/mcp-replicate'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server