连接器指南阅读约 4 分钟17 个 MCP 工具7 种语言

Replicate MCP 与 Microsoft Copilot 连接

让你的 AI 用你自己的 API 令牌在 Replicate 上查找并运行开源 AI 模型:按任务搜索模型、查看其输入参数、生成图片、视频、音频和文本、跟踪和取消运行,并使用你的私有部署。

HC作者:HelpCode 团队更新于 4 分钟阅读 在 GitHub 开源

无需信用卡 · 7 天试用 · 提供自托管方案

Replicate

Replicate

Let your AI find and run open AI models on Replicate with your own API token: search models for any task, read their inputs, generate images, video, audio and text, follow and cancel runs, and use your private deployments.

个工具

17

区域

INTL

类别

公共数据

身份验证

Bearer Token

所需环境变量

REPLICATE_API_TOKEN
在 Cloud 上一键安装

7 天免费试用 · 无需信用卡

  • 7 天免费试用
    无需信用卡
  • 符合 GDPR,SOC 2 就绪
    数据驻留欧盟,审计日志
  • 在 GitHub 开源
    开源 · AGPL-3.0
  • 支持 ChatGPT、Claude、Gemini
    任何兼容 MCP 的客户端

摘要

让你的 AI 用你自己的 API 令牌在 Replicate 上查找并运行开源 AI 模型:按任务搜索模型、查看其输入参数、生成图片、视频、音频和文本、跟踪和取消运行,并使用你的私有部署。

引导式设置

2 分钟将 Replicate 连接到 Microsoft Copilot

开始 AnythingMCP Cloud 免费试用,在引导式设置中连接 Replicate,再把你的 MCP URL 添加到 Microsoft Copilot。无需代码,也无需自行运行服务器。

无需信用卡 · 7 天试用 · 提供自托管方案

试试这样问

Replicate 的示例提示

点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。

Replicate · 通过 MCP 实时
分享
Opus 4.7

Claude 是 AI,可能会出错。请核对回答。

💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → Replicate、粘贴凭证、生成 MCP API key,即可完成。无 Docker、无 git clone、无本地服务器。

Replicate + Microsoft Copilot

让你的 AI 用你自己的 API 令牌在 Replicate 上查找并运行开源 AI 模型:按任务搜索模型、查看其输入参数、生成图片、视频、音频和文本、跟踪和取消运行,并使用你的私有部署。

前提条件

完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:

REPLICATE_API_TOKEN

步骤 1 — 获取凭证

  1. 登录 https://replicate.com,在 Billing(https://replicate.com/account/billing)中添加付款方式或预付额度。没有额度时,Replicate 不会运行模型。
  2. 打开 https://replicate.com/account/api-tokens,创建一个令牌并复制(以 r8_ 开头)。
  3. 按 Replicate 显示的原样将其粘贴到 REPLICATE_API_TOKEN,不要加 Bearer 一词,然后安装连接器。令牌只会发送给 Replicate。
  4. 先运行 replicate_get_account:它不收费,并能确认令牌可用。

费用计入你自己的 Replicate 账户:搜索和查看模型、合集、预测(prediction)、部署、账户和硬件列表都是免费的。运行模型需要付费。官方模型按输出计价,例如 black-forest-labs/flux-schnell 每张图片约 0.003 美元。其他模型按硬件使用秒数计费,从 T4 每秒约 0.000225 美元到 H100 每秒 0.0015 美元不等,视频模型每次运行可能要几美元。

先确认:每次运行前,AI 都会告诉你将运行哪个模型、大概花费多少,并等你同意。它绝不会在未询问的情况下连续启动多次运行。replicate_cancel_prediction 也会先确认:尚未开始的运行不收费,已经运行的按实际运行时间收费。

运行流程:

  1. 用 replicate_search(按任务或名称)、精选合集(replicate_list_collections、replicate_get_collection)或最新模型(replicate_list_models)找到模型。
  2. 查看输入参数:replicate_get_model 显示输入字段的类型、默认值和允许值、最新版本以及是否为官方模型。旧版本可用 replicate_list_model_versions 和 replicate_get_model_version 查看。
  3. 运行:官方模型用 replicate_run_official_model,其他模型用 replicate_create_prediction(版本写成 owner/name:version_id),你自己的部署用 replicate_run_deployment(replicate_list_deployments、replicate_get_deployment)。
  4. 每次运行最多等待约 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 签名密钥。

步骤 2 — 安装 adapter

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

步骤 3 — 在 Microsoft Copilot 中添加连接器

你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(https://cloud.anythingmcp.com/mcp/…)。本指南中出现 YOUR_SERVER_ID 的地方都用它替换。

Microsoft Copilot 通过在 Copilot Studio 中构建的智能体使用 MCP 服务器:把 AnythingMCP 作为工具添加到智能体,然后把智能体发布到 Microsoft 365 Copilot 和 Teams。Copilot Studio 从 Microsoft 的云端通过 Streamable HTTP 连接,AnythingMCP 支持这种方式。

  1. 在 Copilot Studio 中打开你的智能体(或新建一个),进入 Tools,选择 Add a tool → New tool → Model Context Protocol。
  2. 填写 Server name(例如 AnythingMCP)、说明连接器用途的 Server description,以及 Server URL https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID。Copilot Studio 根据描述决定何时调用该服务器。
  3. 身份验证选择 API key,把 Type 设为 Header,请求头名称填 X-API-Key,然后选择 Create。
  4. 在 Add tool 中选择 Create a new connection,粘贴 AnythingMCP 的 MCP API 密钥(MCP Servers → 你的服务器 → API keys),然后选择 Add to agent。
  5. 在智能体的 Test 窗格中试一试:提出需要用到 Replicate 的工具的请求。
  6. 选择 Publish,然后进入 Channels → Microsoft 365 and Microsoft Teams,保持勾选 Make agent available in Microsoft Copilot,再选择 Add channel。See agent in Teams 会为你安装该智能体;在 Microsoft 365 Copilot 中输入 @ 并选择该智能体。

希望每个用户各自登录?请选择 OAuth 2.0 → Dynamic discovery 代替 API 密钥:每个用户会在智能体首次调用时登录 AnythingMCP。

自托管?请用你实例的公网 HTTPS 地址替换 https://cloud.anythingmcp.com。Copilot Studio 从 Microsoft 的云端连接,因此 localhost 无法使用。

可用工具

ToolWhat it does
replicate_searchSearch Replicate's public models (plus matching collections and documentation pages) with a text query, e.g. 'upscale image', 'text to…
replicate_list_modelsList public Replicate models, newest first (by latest version, or by creation with sort_by model_created_at), 100 per page
replicate_get_modelGet one Replicate model with its latest version id and its input and output schema (the fields replicate_run_official_model and…
replicate_list_model_versionsList the versions of a Replicate model, newest first, with id and creation date
replicate_get_model_versionGet one version of a Replicate model with its input and output schema, for running an older or a specific version
replicate_list_collectionsList Replicate's curated collections of models (e.g. text-to-image, super-resolution, speech) with slug, name and description
replicate_get_collectionGet a Replicate collection by slug with the models in it (owner, name, description, is_official, run_count)
replicate_run_official_modelRun 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_predictionRun any Replicate model version with the given input and wait up to wait_seconds for the result
replicate_get_predictionGet a Replicate prediction by id: status (starting, processing, succeeded, failed, canceled, aborted), output, error and timing…
replicate_list_predictionsList the predictions of the account (API and website), newest first, 100 per page, with id, model, status, source, timing and error (no…
replicate_cancel_predictionCancel a Replicate prediction that is still starting or processing, so it stops using credits
replicate_list_deploymentsList the account's Replicate deployments (private, always-on endpoints for a fixed model version) with their current release: model…
replicate_get_deploymentGet one Replicate deployment with its current release: model, version, hardware and minimum and maximum instances
replicate_run_deploymentRun a prediction on one of the account's Replicate deployments and wait up to wait_seconds for the result
replicate_get_accountGet the Replicate account the API token belongs to: type (user or organization), username and name
replicate_list_hardwareList 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 上的部署,以及每个部署运行的模型和硬件。”

FAQ

这适用于哪个 Copilot? 适用于工作中的 Microsoft 365 Copilot,通过 Copilot Studio 的智能体实现。面向个人账户的 Microsoft Copilot 应用无法添加自己的 MCP 服务器。

我需要什么? 一个可以使用 Copilot Studio 的工作账户(许可证或试用版),用于构建智能体。在 Microsoft 365 Copilot 或 Teams 中使用它的人需要拥有该智能体的访问权限:把它共享给他们,或请管理员为整个组织发布。如果你的组织对 Power Platform 连接器设置了数据策略,这些策略同样适用于 MCP 服务器。

智能体不调用工具。 检查请求头名称是否正好是 X-API-Key,密钥是否属于与 URL 相同的 MCP 服务器,并把 Server description 写得具体:Copilot Studio 根据它决定何时调用服务器。每次修改后重新发布智能体;在已打开的对话中输入 "start over" 即可使用新版本。

下一步

这份指南对你有帮助吗?

2 分钟将 Replicate 连接到 Microsoft Copilot

开始 AnythingMCP Cloud 免费试用,在引导式设置中连接 Replicate,再把你的 MCP URL 添加到 Microsoft Copilot。无需代码,也无需自行运行服务器。

相关指南

连接器

Replicate MCP 与 ChatGPT 连接:生成图片

让你的 AI 用你自己的 API 令牌在 Replicate 上查找并运行开源 AI 模型:按任务搜索模型、查看其输入参数、生成图片、视频、音频和文本、跟踪和取消运行,并使用你的私有部署。

连接器

Replicate MCP 与 Claude 连接:运行 AI 模型

让你的 AI 用你自己的 API 令牌在 Replicate 上查找并运行开源 AI 模型:按任务搜索模型、查看其输入参数、生成图片、视频、音频和文本、跟踪和取消运行,并使用你的私有部署。

连接器

Replicate MCP 与 Cursor 连接:运行 AI 模型

让你的 AI 用你自己的 API 令牌在 Replicate 上查找并运行开源 AI 模型:按任务搜索模型、查看其输入参数、生成图片、视频、音频和文本、跟踪和取消运行,并使用你的私有部署。

连接器

Replicate MCP 与 Gemini CLI 连接

让你的 AI 用你自己的 API 令牌在 Replicate 上查找并运行开源 AI 模型:按任务搜索模型、查看其输入参数、生成图片、视频、音频和文本、跟踪和取消运行,并使用你的私有部署。

连接器

Replicate MCP 与 Meta Muse 连接

让你的 AI 用你自己的 API 令牌在 Replicate 上查找并运行开源 AI 模型:按任务搜索模型、查看其输入参数、生成图片、视频、音频和文本、跟踪和取消运行,并使用你的私有部署。

连接器

Replicate MCP 服务器:搜索模型并生成多媒体

让你的 AI 用你自己的 API 令牌在 Replicate 上查找并运行开源 AI 模型:按任务搜索模型、查看其输入参数、生成图片、视频、音频和文本、跟踪和取消运行,并使用你的私有部署。