Skip to content
Replicate MCP Server

Replicate MCP Server

Released
11 views
v0.9.0
Apache-2.0

Summary

Replicate's official MCP server: search thousands of hosted models, read their schemas, and run predictions on image, video, audio and language models from inside an agent.

Features

  • Mirrors the whole Replicate HTTP API, so new endpoints appear without a server update
  • Model search and metadata lookup, including each model's input schema
  • Create and poll predictions across image, video, audio, embedding and language models
  • Hosted remote server at mcp.replicate.com — no local install needed
  • Local stdio server via npx with a REPLICATE_API_TOKEN
  • Experimental Code Mode runs sandboxed TypeScript (requires Deno) for multi-step workflows

Installation

Set up this MCP server in your favorite AI agent — copy a ready-made configuration below.

Any MCP-compatible agent

Most agents (Claude, Cursor, Windsurf, VS Code, and more) read a standard mcpServers configuration.

  1. Open your agent's MCP configuration file.
  2. Merge the snippet below into it, filling in the environment variables with your own values.
  3. Restart the agent — the "Replicate MCP Server" tools will be available.
{
  "mcpServers": {
    "replicate-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "replicate-mcp"
      ],
      "env": {
        "REPLICATE_API_TOKEN": "your-token-here"
      }
    }
  }
}

Description

Replicate hosts thousands of open-source and commercial models behind one HTTP API — Flux and SDXL for images, video models, speech and transcription, embeddings, and language models — billed by the second of compute. This MCP server puts that whole API in front of an agent, so a model can find the right model, read its input schema, and run it without you writing any glue code.

What it exposes

The server is generated from Replicate's HTTP API rather than hand-written around a fixed tool list, which is the interesting design decision here: it mirrors every operation the API supports and picks up new ones automatically as Replicate ships them. In practice that means model discovery (models.search, models.list), schema inspection (models.get), and the prediction lifecycle (predictions.create, predictions.get) — plus collections, trainings, deployments and account operations from the same surface.

Because the tools carry each model's own input schema, an agent asked for "a 16:9 photorealistic image of X" can look up a suitable model, read what parameters it accepts, and submit a valid prediction, instead of guessing at field names.

Running it

There are two ways in. The remote server at `https://mcp.replicate.com` is the simplest — nothing to install, and clients that speak remote MCP can connect directly. The local server ships as the replicate-mcp npm package and runs under npx, needing only Node.js and a REPLICATE_API_TOKEN from your Replicate account dashboard. An experimental Code Mode additionally requires Deno and runs sandboxed TypeScript, which is worth it when a task means chaining several predictions rather than firing one.

Worth knowing

Predictions cost real money — Replicate bills per second of GPU time — so an agent with this server wired up can spend from your account. Scope the token accordingly, and be deliberate about which models you let it reach. The package is Apache-2.0 licensed and published by Replicate.

Related MCP Servers

New

Official MCP server for the Mux video API, built on a code-execution scheme: the agent writes TypeScript against the SDK and runs it in a Deno sandbox.

MCP: ripwire

by Red Hat

Featured

Red Hat's zero-dependency C++23 code-context engine — ranked call graphs and blast-radius analysis, indexing a repo in under half a second with no server and no database.

MCP: Graft

by Trail

Featured

Builds a searchable markdown graph of your repo so coding agents stop re-exploring it on every task — reported 42% fewer tokens and 46% fewer tool calls.

Featured

Expo's official remote MCP server — searches Expo docs, installs compatible SDK packages, triggers and monitors EAS builds, and drives iOS/Android simulators.

Browse all MCP servers →