SuperAPIAI Directory

replicate-mcp-server

github.com · AI developer platforms

replicate-mcp-server is a cross-platform MCP server that lets MCP clients such as Claude Desktop, the claude.ai web version, Cursor, and Cline/Continue in VS Code directly call the model catalog on the Replicate platform, covering tasks such as image generation, video, music, speech, upscaling, segmentation, LLM, voice cloning, 3D, and lip sync. It supports both stdio and HTTP/SSE transports, ships with 36 built-in tools and 66 curated models, and generation-type tools wait for the task to complete and automatically download the results locally.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux · API

About this tool

Purpose and positioning replicate-mcp-server is a general-purpose, cross-platform MCP server whose goal is to connect the model catalog hosted by Replicate to any MCP client, including Claude Desktop, the claude.ai web version (Connectors), Cursor, Cline/Continue in VS Code, and custom applications. Users describe their needs in natural language, and the assistant selects the appropriate Replicate model, waits for the result, and in local/stdio mode downloads the output to the local machine.

Key capabilities

  • Covers tasks in the Replicate catalog such as image generation, video, music, speech, upscaling, segmentation, LLM, voice cloning, 3D, and lip sync.
  • Supports both stdio (the standard for local desktop/editor integration) and HTTP/SSE (for remote/web clients and custom services) transports.
  • Ships with 36 built-in tools and 66 curated models, including generation tools for common tasks, speech/3D/avatar tools, orchestration tools, fine-tuning (trainings), prediction management and cost estimation, and general/discovery tools.
  • Discovery tools include replicate_recommend_model, replicate_search_models, and replicate_estimate_cost, plus 5 built-in workflow prompts to help chain multi-step tasks.
  • Generation/run-type tools wait for the task to complete and automatically download the output; image results also return an inline base64 preview (kept within the Claude Desktop 1 MB tool result limit, falling back to URL embedding when too large) as well as three embed snippets (an iframe viewer with a save button, a responsive img, and a markdown image).
  • Text-type results (LLM, vision, classifiers) are returned via text_output and displayed at the top of the tool response.
  • Asynchronous prediction handling: by default it polls and waits for 5 minutes (timeout_ms can be adjusted up to 30 minutes); on timeout it returns pending: true and a prediction_id, after which the result can be retrieved with replicate_get_prediction.
  • Edit-type tools (upscaling, inpainting, background removal, vision, image-to-video, lip sync, image-to-3D) accept URLs; you can use replicate_upload_file to turn a local path or base64 data into a URL.

How to use

  • Environment requirements: Node.js ≥ 20, a Replicate account and API token (https://replicate.com/account/api-tokens),以及一个 MCP client.
  • Installation options: one-click install via Smithery (through its hosted gateway, zero local configuration); local install via npm + stdio (the token never leaves your machine); download the .mcpb from Releases and drag it into Claude Desktop; or connect directly to a running HTTP/SSE endpoint https://replicate-mcp.sena-labs.dev/mcp,并在 Pass the token via the x-replicate-api-token request header.
  • Local build: clone the repository and build it, producing dist/index.js as the entry point; set REPLICATE_API_TOKEN in the env block of the client configuration file, and the path must be absolute; optionally set REPLICATE_DOWNLOAD_DIR to customize the download directory.
  • VS Code native MCP: the repository includes .vscode/mcp.json, which runs the published npm package and prompts for the token on first use (stored masked, not written to a file).
  • Platformized deployment (v3.0+): supports HTTP/SSE multi-user, multi-token polling pools, webhook-driven asynchronous completion, Docker and npm distribution; the default HTTP mode listens on 0.0.0.0:8088, and the port can be protected with --api-key; webhook mode requires the server to be publicly accessible and verifies callbacks with a random token per prediction.
  • claude.ai web Connector: requires a public HTTPS deployment, registering the MCP HTTP endpoint in the Anthropic console, and users add a custom Connector from claude.ai settings; Anthropic's Connector review is a manual review.

Use cases Suitable for users who want to complete creative production workflows in natural language: generating images/videos/music/speech, batch-generating variants, multi-step DAG pipelines (e.g., transcription→summary→read-aloud), model recommendations and cost estimation, launching Flux LoRA fine-tuning and waiting for completion, and editing existing images such as upscaling/background removal/inpainting.

Limitations and notes

  • Requires a Replicate account and API token; Replicate bills by compute seconds, and costs vary by model (the material gives some approximate prices, such as Flux Schnell images at about $0.003, Kling 1.6 Pro 5-second video at about $0.45, etc.; the latest prices are subject to the Replicate pricing page).
  • Tasks such as video and long music may take several minutes; after a timeout, the prediction result must be queried later.
  • The server cannot directly read chat attachments; images dragged in/pasted must first be saved to disk, then converted to a URL via replicate_upload_file.
  • In local configuration, paths must be absolute; tildes and relative paths do not work.
  • One-click installation via Smithery routes the personal Replicate token through its hosted gateway; for personal tokens, it is recommended to use a local stdio configuration.
  • Differences from the official Replicate MCP: the official MCP is a generic 1:1 bridge to the REST API (about 37 generic tools, no waiting, no downloading), while this server targets creative workflows and provides curated models, orchestration, cost awareness, and automatic downloading; the two are complementary.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools