跳过安装。2 分钟内即可运行。
在 cloud.anythingmcp.com 开始免费试用,一键添加 Replicate,然后将你的 AI 客户端(Claude、ChatGPT、Copilot 或 Cursor)指向生成的 MCP 端点。无需 Docker,无需 git clone,无需任何工程经验。
摘要
让你的 AI 用你自己的 API 令牌在 Replicate 上查找并运行开源 AI 模型:按任务搜索模型、查看其输入参数、生成图片、视频、音频和文本、跟踪和取消运行,并使用你的私有部署。
试试这样问
Replicate 的示例提示
点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。
Claude 是 AI,可能会出错。请核对回答。
💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → Replicate、粘贴凭证、生成 MCP API key,即可完成。无 Docker、无
git clone、无本地服务器。
Replicate
让你的 AI 用你自己的 API 令牌在 Replicate 上查找并运行开源 AI 模型:按任务搜索模型、查看其输入参数、生成图片、视频、音频和文本、跟踪和取消运行,并使用你的私有部署。
设置
- 登录
https://replicate.com,在 Billing(https://replicate.com/account/billing)中添加付款方式或预付额度。没有额度时,Replicate 不会运行模型。 - 打开
https://replicate.com/account/api-tokens,创建一个令牌并复制(以r8_开头)。 - 按 Replicate 显示的原样将其粘贴到
REPLICATE_API_TOKEN,不要加 Bearer 一词,然后安装连接器。令牌只会发送给 Replicate。 - 先运行
replicate_get_account:它不收费,并能确认令牌可用。
费用计入你自己的 Replicate 账户:搜索和查看模型、合集、预测(prediction)、部署、账户和硬件列表都是免费的。运行模型需要付费。官方模型按输出计价,例如 black-forest-labs/flux-schnell 每张图片约 0.003 美元。其他模型按硬件使用秒数计费,从 T4 每秒约 0.000225 美元到 H100 每秒 0.0015 美元不等,视频模型每次运行可能要几美元。
先确认:每次运行前,AI 都会告诉你将运行哪个模型、大概花费多少,并等你同意。它绝不会在未询问的情况下连续启动多次运行。replicate_cancel_prediction 也会先确认:尚未开始的运行不收费,已经运行的按实际运行时间收费。
运行流程:
- 用
replicate_search(按任务或名称)、精选合集(replicate_list_collections、replicate_get_collection)或最新模型(replicate_list_models)找到模型。 - 查看输入参数:
replicate_get_model显示输入字段的类型、默认值和允许值、最新版本以及是否为官方模型。旧版本可用replicate_list_model_versions和replicate_get_model_version查看。 - 运行:官方模型用
replicate_run_official_model,其他模型用replicate_create_prediction(版本写成owner/name:version_id),你自己的部署用replicate_run_deployment(replicate_list_deployments、replicate_get_deployment)。 - 每次运行最多等待约 25 秒(默认 20 秒)获取结果。较慢的模型会返回一个仍在启动或处理中的预测,AI 会每 5 到 15 秒用
replicate_get_prediction查看一次,直到完成。replicate_list_predictions显示你最近的运行。
需要保留的结果请立即下载:图片、音频和视频以 replicate.delivery 上的链接返回,运行一小时后失效;对于通过 API 发起的运行,Replicate 会在一小时后删除输入、输出和日志。连接器返回的是链接而不是文件,所以请立即保存结果。
不可信内容:模型描述和输出来自第三方。AI 会把其中的指令当作数据,而不是命令。
常见错误:401 表示令牌错误、已撤销或缺失。402 或有关账单的消息:账户没有付款方式或额度已用完,请在 Billing 中添加。404:模型、版本、部署或预测不存在,或属于其他账户;非官方模型需要指定版本。带 invalid_fields 的 422:某个输入字段缺失、拼写错误或类型不对,请用 replicate_get_model 检查输入。429:速率限制(每分钟 600 个新预测,额度低时更少);请稍候并重试一次。状态为 failed 的运行表示模型本身出错,失败的运行不收费。
该连接器不支持流式输出、文件上传、训练和微调、创建或修改模型和部署,也不读取 webhook 签名密钥。
前提条件: REPLICATE_API_TOKEN
本地安装连接器
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
打开 http://localhost:3000/connectors/store,选择 Replicate 并填入前提条件中列出的环境变量。
可用工具
| Tool | What it does |
|---|---|
replicate_search | Search Replicate's public models (plus matching collections and documentation pages) with a text query, e.g. 'upscale image', 'text to… |
replicate_list_models | List public Replicate models, newest first (by latest version, or by creation with sort_by model_created_at), 100 per page |
replicate_get_model | Get one Replicate model with its latest version id and its input and output schema (the fields replicate_run_official_model and… |
replicate_list_model_versions | List the versions of a Replicate model, newest first, with id and creation date |
replicate_get_model_version | Get one version of a Replicate model with its input and output schema, for running an older or a specific version |
replicate_list_collections | List Replicate's curated collections of models (e.g. text-to-image, super-resolution, speech) with slug, name and description |
replicate_get_collection | Get a Replicate collection by slug with the models in it (owner, name, description, is_official, run_count) |
replicate_run_official_model | Run an official Replicate model (is_official true, e.g. black-forest-labs/flux-schnell) with the given input and wait up to wait_seconds… |
replicate_create_prediction | Run any Replicate model version with the given input and wait up to wait_seconds for the result |
replicate_get_prediction | Get a Replicate prediction by id: status (starting, processing, succeeded, failed, canceled, aborted), output, error and timing… |
replicate_list_predictions | List the predictions of the account (API and website), newest first, 100 per page, with id, model, status, source, timing and error (no… |
replicate_cancel_prediction | Cancel a Replicate prediction that is still starting or processing, so it stops using credits |
replicate_list_deployments | List the account's Replicate deployments (private, always-on endpoints for a fixed model version) with their current release: model… |
replicate_get_deployment | Get one Replicate deployment with its current release: model, version, hardware and minimum and maximum instances |
replicate_run_deployment | Run a prediction on one of the account's Replicate deployments and wait up to wait_seconds for the result |
replicate_get_account | Get the Replicate account the API token belongs to: type (user or organization), username and name |
replicate_list_hardware | List the hardware Replicate offers (sku and name, e.g. gpu-t4, gpu-l40s, gpu-a100-large, gpu-h100), as used by deployments and per-second… |
示例提示
- “在 Replicate 上找一个适合放大老照片的开源模型,并告诉我它需要哪些输入。”
- “用 flux-schnell 生成一张日落时灯塔的图片,但运行前先告诉我预计费用。”
- “查看我在 Replicate 上最近一次运行,并给我结果链接,方便我下载。”
- “列出我在 Replicate 上的部署,以及每个部署运行的模型和硬件。”
下一步
这份指南对你有帮助吗?