跳过安装。2 分钟内即可运行。
在 cloud.anythingmcp.com 开始免费试用,一键添加 Netlify,然后将你的 AI 客户端(Claude、ChatGPT、Copilot 或 Cursor)指向生成的 MCP 端点。无需 Docker,无需 git clone,无需任何工程经验。
摘要
让你的 AI 检查和运维你的 Netlify 站点:站点、部署和构建、函数、表单及提交内容、环境变量名称和 DNS;经你确认后,还能启动构建、发布或回滚部署,以及锁定自动发布。
试试这样问
Netlify 的示例提示
点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。
Claude 是 AI,可能会出错。请核对回答。
💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → Netlify、粘贴凭证、生成 MCP API key,即可完成。无 Docker、无
git clone、无本地服务器。
Netlify + Meta Muse
让你的 AI 检查和运维你的 Netlify 站点:站点、部署和构建、函数、表单及提交内容、环境变量名称和 DNS;经你确认后,还能启动构建、发布或回滚部署,以及锁定自动发布。
前提条件
完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:
NETLIFY_TOKEN
步骤 1 — 获取凭证
- 登录 Netlify:
https://app.netlify.com。 - 打开 User settings → Applications → Personal access tokens,点击 New access token。
- 为令牌填写描述和有效期,然后复制。较新的令牌以
nfp_开头。 - 只把令牌本身粘贴到
NETLIFY_TOKEN,不要加 Bearer 一词,然后安装连接器。令牌作为 Bearer 令牌只发送到 api.netlify.com。 - 用
netlify_get_current_user检查设置,然后再用netlify_list_sites。
谁能看到什么:个人访问令牌(personal access token)在你所属的每个 Netlify 团队中都拥有你的全部权限,而 Netlify 没有只读令牌。请只把 MCP 服务器分享给可以部署你站点的人。如需只读设置,请关闭下面列出的写入工具。
会改动线上站点,所以 AI 会先问你:netlify_trigger_build 从已连接的代码仓库启动新的构建和部署,也是重试失败部署的方式;生产构建成功后会发布到线上站点(除非自动发布已锁定),并消耗构建分钟数。netlify_restore_deploy 重新发布较早的部署,netlify_rollback_site 回到当前部署之前发布的那个部署;两者都会立即改变访客看到的内容。netlify_lock_deploy 停止自动发布,新构建会被部署但不会发布;netlify_unlock_deploy 恢复自动发布;netlify_cancel_deploy 取消仍在构建中的部署,使其不会被发布。每次调用前,AI 都会告诉你站点、分支或部署以及将发生的变化,并等你同意。
安装时默认关闭:netlify_get_env_var_value 会以明文返回非机密环境变量的值(标记为 secret 的变量会被遮蔽,dev 上下文除外);netlify_delete_form_submission 会永久删除一条表单提交。管理员需要有意识地开启它们。
机密不会返回:netlify_list_env_vars 只返回名称、作用范围和部署上下文,从不返回值。构建钩子 URL、站点密码和部署钩子 URL 也从不返回。
使用方法:netlify_list_accounts 列出你的团队;netlify_list_sites 给出每个站点的 id,站点域名(如 my-site.netlify.app)也可以用作 site_id。部署:netlify_list_deploys(按分支、状态或生产环境筛选)和 netlify_get_deploy;构建:netlify_list_builds、netlify_get_build 和 netlify_list_build_hooks。站点详情:netlify_get_site、netlify_list_functions 和 netlify_list_env_vars。较长的列表会带有 _pagination,AI 会继续获取下一页,直到它不再出现。
表单:先用 netlify_list_forms,再用 netlify_list_form_submissions。提交内容包含访客填写的信息,通常是姓名和电子邮件地址等个人数据。
DNS:先用 netlify_list_dns_zones,再用 netlify_list_dns_records。仅适用于托管在 Netlify DNS 上的域名。
常见错误:401:令牌错误、已过期或已撤销;请在 User settings → Applications 中新建一个。403:你的用户在该团队或站点中缺少相应角色。404:站点、部署或表单 id 错误,或你无权查看。422:某个值无效,Netlify 会指出是哪个。429:达到速率限制(每分钟约 500 次请求,每分钟只能部署几次);请稍候重试。
该连接器不涉及创建、删除或配置站点,上传文件,编辑环境变量、DNS 记录或域名,以及站点分析(Netlify 的公开 API 不提供该功能)。
步骤 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 — 在 Muse 中添加连接器
你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(
https://cloud.anythingmcp.com/mcp/…)。本指南中出现YOUR_SERVER_ID的地方都用它替换。
Muse 以自定义连接器的形式添加远程 MCP 服务器,并通过 OAuth 登录。
- 在 Muse 中打开 Settings → Connectors,选择 Add custom connector。
- 粘贴 MCP 服务器 URL
https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID。 - Muse 会打开 AnythingMCP 的登录页面:登录并批准访问。
- 在聊天中,向 Muse 提出需要用到
Netlify的工具的请求。
你也可以在聊天中完成设置,适用于网页版、iOS 和 Android 应用以及 WhatsApp。给 Muse 发送这条消息:
Create a Custom Connector for a new remote MCP server, then connect to it:
Name: AnythingMCP
Transport: remote streamable HTTP
URL: https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID
Auth: OAuth
自托管?请用你实例的公网 HTTPS 地址替换 https://cloud.anythingmcp.com。Muse 从 Meta 的云端连接,因此 localhost 无法使用。
可用工具
| Tool | What it does |
|---|---|
netlify_get_current_user | Get the Netlify user the personal access token belongs to: id, name, email, number of sites and last login |
netlify_list_accounts | List the Netlify teams (accounts) the user belongs to: id, name, slug, plan type and the user's roles |
netlify_list_sites | List sites (projects): id, name, URL, custom domain, team, connected repository and branch, build command and the currently published deploy |
netlify_get_site | Get one site: URL, custom domain and aliases, state, plan, team, repository, branch, build command, publish folder and the published deploy |
netlify_list_deploys | List a site's deploys, newest first: id, state (ready, building, error, ...), context (production, deploy-preview, branch-deploy), branch… |
netlify_get_deploy | Get one deploy by id: state, context, branch, commit, title, error message, URLs, lock state and times |
netlify_list_builds | List a site's builds, newest first: id, deploy id, commit sha, whether it is done, error text and time |
netlify_get_build | Get one build: deploy id, commit sha, whether it is done, error text and time |
netlify_list_build_hooks | List a site's build hooks: id, title and branch |
netlify_list_functions | List the serverless functions deployed for a site, with the deploy and branch they belong to |
netlify_list_forms | List the forms Netlify detected on a site: id, name, the pages they are on, number of submissions and their fields |
netlify_list_form_submissions | List the submissions of one form, newest first: number, time, name, email, company, summary and all submitted fields |
netlify_list_env_vars | List a site's environment variables: key, scopes (builds, functions, runtime, post-processing), whether it is marked secret, the deploy… |
netlify_get_env_var_value | Read the values of ONE environment variable per deploy context |
netlify_list_dns_zones | List the DNS zones managed by Netlify DNS: id, domain name, team, linked site and the Netlify name servers |
netlify_list_dns_records | List the records of a Netlify DNS zone: id, hostname, type (A, AAAA, CNAME, MX, TXT, NETLIFY ...), value, TTL, priority and whether Netlify… |
netlify_trigger_build | Start a new build and deploy of a site from its connected repository, optionally for another branch or with a cleared cache |
netlify_restore_deploy | Publish an earlier deploy to the live site again (Netlify's Publish deploy) |
netlify_rollback_site | Roll the live site back to the deploy that was published before the current one |
netlify_lock_deploy | Lock a published deploy: auto publishing stops, so new builds are deployed but not published until it is unlocked |
netlify_unlock_deploy | Unlock a locked deploy so auto publishing resumes; the next successful production build goes live |
netlify_cancel_deploy | Cancel a deploy that is still building or processing; it will not be published |
netlify_delete_form_submission | Delete one form submission for good |
示例提示
- “这周我们哪些 Netlify 站点部署失败了?错误信息是什么?”
- “商店站点最近一次生产部署把结账功能弄坏了。把它回滚到上一个版本,但先告诉我哪个部署会上线。”
- “清空缓存后,重新运行文档站点 main 分支上失败的构建。开始之前先问我。”
- “列出我们营销站点联系表单最近 20 条提交,包括姓名、邮箱和留言。”
- “商店站点在生产环境中有哪些环境变量?其中哪些标记为 secret?”
FAQ
Muse 在哪些地区可用? Meta 目前在美国和加拿大提供 Muse,可在网页版、iOS 和 Android 应用以及 WhatsApp 中使用。
Meta 会审核这个连接器吗? 不会。Meta 不审核自定义连接器。Muse 只能看到你在 AnythingMCP 中为此 MCP 服务器启用的工具,你也可以随时在 Settings → Connectors 中断开它。
下一步
这份指南对你有帮助吗?