跳过安装。2 分钟内即可运行。
在 cloud.anythingmcp.com 开始免费试用,一键添加 Render,然后将你的 AI 客户端(Claude、ChatGPT、Copilot 或 Cursor)指向生成的 MCP 端点。无需 Docker,无需 git clone,无需任何工程经验。
摘要
让你的 AI 检查和操作你的 Render 服务:服务、部署、日志、指标、事件、任务、自定义域名以及 Postgres 和 Key Value 实例,并在你确认后部署、回滚、重启、暂停或恢复服务。
试试这样问
Render 的示例提示
点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。
Claude 是 AI,可能会出错。请核对回答。
💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → Render、粘贴凭证、生成 MCP API key,即可完成。无 Docker、无
git clone、无本地服务器。
Render + Cursor
让你的 AI 检查和操作你的 Render 服务:服务、部署、日志、指标、事件、任务、自定义域名以及 Postgres 和 Key Value 实例,并在你确认后部署、回滚、重启、暂停或恢复服务。
前提条件
完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:
RENDER_API_KEY
步骤 1 — 获取凭证
- 登录 Render Dashboard:
https://dashboard.render.com。 - 打开 Account Settings → API Keys,点击 Create API Key。为它命名并复制密钥:密钥以
rnd_开头。 - 按 Render 显示的原样把它粘贴到
RENDER_API_KEY,不要加 Bearer 一词,然后安装连接器。密钥只会发送到 api.render.com。 - 先用
render_get_current_user,再用render_list_workspaces检查设置。
谁能看到什么:Render API 密钥在你所属的每个工作区中都拥有你的全部权限;Render 没有只读密钥。请只把 MCP 服务器分享给可以部署的人。如需只读使用,请关闭下面列出的写入工具。
会改动正在运行的服务,所以 AI 会先问你:render_trigger_deploy 构建并部署一个新版本(分支的最新提交、指定的提交或镜像),构建成功后即上线。render_rollback_deploy 让较早的某次部署重新上线;自动部署仍然开启,因此下一次推送到该分支可能会把改动带回来。render_cancel_deploy 停止仍在构建或更新中的部署,当前版本继续运行。render_restart_service 重启所有实例,因此请求可能会短暂失败。render_suspend_service 停止服务:在恢复之前它不再处理任何流量。render_resume_service 重新启动服务,并重新开始计费。render_create_job 在你的线上环境中运行一次性命令,例如数据库迁移;它可能修改数据,并按秒计费。每次调用前,AI 都会告诉你涉及的服务和将会发生的具体操作,并等你同意。
安装时默认关闭:render_get_env_var_value 会以明文返回某个环境变量的值(通常是数据库 URL 或 API 密钥)。只有在 AI 确实需要某个值时才开启它;render_list_env_var_keys 只显示变量名。Postgres 和 Key Value 工具会显示状态、套餐、区域、版本等信息,但绝不返回连接字符串或密码。本连接器无法删除服务、数据库、域名或变量。
使用方法:render_list_workspaces 给出工作区 ID(tea-... 或 usr-...),render_list_services 给出服务 ID(srv-...,cron 任务为 crn-...);render_get_service 显示分支、自动部署、套餐以及构建和启动命令。部署失败时,AI 使用 render_list_deploys(按状态筛选,例如 build_failed)、render_get_deploy 和 render_list_events。日志来自 render_list_logs,以工作区 ID 作为 owner_id、服务 ID 作为 resource;可按类型 build 查看构建输出,也可按级别 error、文本或 HTTP 状态码(例如 5*)筛选。render_get_metrics 读取 CPU、内存、HTTP 请求数、HTTP 延迟、带宽、实例数、磁盘用量或活动连接数。数据存储:render_list_postgres、render_get_postgres、render_list_key_value 和 render_get_key_value。域名和任务:render_list_custom_domains、render_list_jobs 和 render_get_job(任务的输出在日志中,以任务 ID 作为 resource)。render_list_projects 显示服务如何按项目和环境分组。
时间使用 UTC 的 ISO 8601 格式,例如 2026-10-15T08:00:00Z。日志和指标默认覆盖最近一小时;如果日志结果中有 hasMore,AI 会用 nextStartTime 和 nextEndTime 继续读取。
常见错误:401:API 密钥错误或已被撤销;请在 Account Settings → API Keys 中新建一个。403:密钥有效,但其用户无权在该工作区执行此操作。404:ID 错误,或资源位于密钥无法访问的工作区。429:已达到速率限制;请稍候重试。
该连接器不能创建、修改或删除服务、数据库、环境组、域名和环境变量,也不涉及扩缩容、Blueprint 和 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 — 在 Cursor 中添加连接器
你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(
https://cloud.anythingmcp.com/mcp/…)。本指南中出现YOUR_SERVER_ID的地方都用它替换。
Cursor 从 ~/.cursor/mcp.json 读取 MCP 服务器。添加以下条目:
{
"mcpServers": {
"anythingmcp": {
"url": "https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID",
"headers": { "X-API-Key": "YOUR_MCP_API_KEY" }
}
}
}
- 在 AnythingMCP 的 MCP Servers → 你的服务器 → API keys 中创建 MCP API 密钥,并用它替换
YOUR_MCP_API_KEY。 - 保存文件并重启 Cursor。
- 打开 Cursor → Settings → MCP,确认
anythingmcp已列出并处于已连接状态。 - 开始对话,智能体现在可以调用
Render的工具。
可用工具
| Tool | What it does |
|---|---|
render_get_current_user | Get the Render user the API key belongs to: id, name and email |
render_list_workspaces | List the workspaces (owners) the API key can reach: id, name, email, type (user or team) and whether two-factor authentication is on |
render_list_projects | List projects, which group services and databases into environments: id, name, workspace and environment ids |
render_list_services | List services: id, name, type (web_service, private_service, background_worker, static_site, cron_job), repository and branch, URL, region… |
render_get_service | Get one service: type, repository, branch, auto deploy, URL, region, plan, runtime, instances, health check path, build and start commands… |
render_list_deploys | List a service's deploys, newest first: id, status (live, build_in_progress, build_failed, update_failed, canceled, deactivated ...)… |
render_get_deploy | Get one deploy: status, trigger, commit id and message, image and start and finish time |
render_trigger_deploy | Start a new deploy of a service: the latest commit of its branch by default, a specific commit, or an image |
render_cancel_deploy | Cancel a deploy that is still building or updating; the service keeps running its current version |
render_rollback_deploy | Roll a service back to an earlier deploy: Render deploys that version again and it goes live |
render_restart_service | Restart all running instances of a service without a new deploy; requests may fail for a moment while instances restart |
render_suspend_service | Suspend a service: it stops running and stops serving traffic (and billing for compute) until resumed |
render_resume_service | Resume a suspended service: Render starts it again and it serves traffic and is billed |
render_list_env_var_keys | List the names of a service's environment variables |
render_get_env_var_value | Read the value of ONE environment variable of a service in plain text |
render_list_custom_domains | List a service's custom domains: id, name, type (apex or subdomain), verification status, redirect target and creation time |
render_list_jobs | List one-off jobs run on a service: id, start command, plan, status (pending, running, succeeded, failed, canceled) and times |
render_get_job | Get one job: start command, plan, status and times |
render_create_job | Run a one-off job: a command executed once in a new instance built from the service's latest successful build, with its environment, for… |
render_list_logs | Read logs of services, jobs, cron jobs, Postgres or Key Value instances in a time range (default the last hour), newest first by default… |
render_get_metrics | Read a metric as time series for a service, Postgres or Key Value instance over a time range (default the last hour): CPU, memory, HTTP… |
render_list_events | List a service's recent events: deploys started and ended, builds, restarts, suspensions, autoscaling, server failures and more, each with… |
render_list_postgres | List Render Postgres databases: id, name, status, plan, region, version, database name and user, disk size, high availability, read… |
render_get_postgres | Get one Render Postgres database: status, plan, region, version, database name and user, disk, high availability, replicas, pending… |
render_list_key_value | List Render Key Value (Redis-compatible) instances: id, name, status, plan, region, version, eviction and persistence options and dashboard… |
render_get_key_value | Get one Render Key Value instance: status, plan, region, version, options, IP allow list and pending maintenance |
示例提示
- “本周我们哪些 Render 服务部署失败了?给我看提交和构建日志中的错误。”
- “我们的 api 服务从 UTC 8 点开始返回 5xx 错误。查看最近两小时的请求日志和 HTTP 延迟,告诉我发生了什么变化。”
- “把 checkout 服务回滚到今天之前最后一次上线的部署。先给我看目标部署,回滚前先问我。”
- “在 api 服务上以一次性任务运行 npm run migrate。先告诉我确切的命令和服务,等我同意。”
- “列出我们 Postgres 和 Key Value 实例的状态、套餐和区域,以及 web 服务最近 24 小时的 CPU 和内存。”
FAQ
Cursor 免费套餐支持自定义 MCP 服务器吗? 支持,Hobby、Pro 和 Business 套餐均可使用 MCP。
下一步
这份指南对你有帮助吗?