Netlify MCP server: what each tool can reach, what a deploy uploads, and how to make your agent ask

The tools of Netlify's MCP server (@netlify/mcp 1.22.1), checked by running it on this machine against a local stand-in for Netlify's API, never a real account: how a deploy uploaded .env.local, an SSH key and the Netlify login itself, how a submission id deleted a whole site, how two read-only tools returned a site's environment variables, and the Claude Code settings that make the rest ask.

Checked on by running @netlify/mcp 1.22.1 (npm, run on Node 24) from @netlify/mcp; the tool list is its tools/list answer as the README's setup starts it, without --verbose, which groups its 25 operations into nine tools beside netlify-coding-rules. Each tier is the tool risk checker’s reading, with our reason wherever we changed it. Written by the people who make VariantGate.

The short answer

Its ten tools each bundle several operations, so one tool both reads environment variables and deletes them, and ids are pasted into API paths, so a submission id deleted a site and a deploy id read secrets. A deploy uploads the whole folder, .env.local and SSH keys included. Let the user, extension and coding-rules tools run unasked and make everything else ask, the traffic logs included.

Can run on their own
3
Should ask a person
7

Lethal trifecta: This server can read private data and send data out. Beside a server that can take in content other people wrote, a setup holds all three legs of the lethal trifecta. Check your whole setup

Which Netlify server this is

This page is about Netlify’s own local server, @netlify/mcp on npm, the one its README starts with npx -y @netlify/mcp. We ran 1.22.1, the latest release on 28 November 2026, on Node 24. It never reached a real account: every request it made went to a recorder on this machine that answered like Netlify’s API, with a made-up token and a made-up home folder, so we saw exactly what each tool would send to Netlify, but not what Netlify would then do. Netlify also runs a hosted server for clients that sign in with OAuth; we did not test that one.

Ten tools in front of twenty-five operations

Started as the README says, the server lists ten tools. Nine of them each front a group of operations: the model picks one with selectSchema.operation. netlify-project-services-updater alone fronts six: update-visitor-access-controls, which can take a site’s password off, update-forms, manage-form-submissions, which reads and deletes submissions, update-project-name, manage-env-vars, which reads, writes and deletes environment variables, and create-new-project. A Claude Code rule sees only the tool name, so it cannot allow the env var read and stop the delete. With --verbose the server lists the 25 operations as 26 separate tools instead, each with its own hints, and a rule can tell them apart:

claude mcp add netlify -- npx -y @netlify/mcp@1.22.1 --verbose

The tools carry hints: the readers say read-only, the updaters say destructive. Two of the readers do more than they say, as below.

Where the token comes from

If NETLIFY_PERSONAL_ACCESS_TOKEN is set, the server uses it. Otherwise it uses the Netlify CLI’s own login: with no variable, ours read the token from the CLI’s config.json in the made-up home folder and sent it on the next call. In the code, the CLI login can also come from the system keychain, and with no login at all the server runs netlify login in a shell and waits up to six minutes for someone to finish it in the browser. Either way the agent acts with a token for the whole Netlify user, every team and site.

What a deploy uploads

deploy-site takes any absolute folder as deployDirectory, zips it and posts the zip to /api/v1/sites/<id>/builds, which builds and publishes it. It leaves out only .git, node_modules, .netlify, coverage, tmp and a .env at the top. Everything else went into the zip:

deployDirectory: /home/dev/shop

uploaded:  .env.local  .env.production  config/.env
           .npmrc  .ssh/id_ed25519  src/index.html
left out:  .env  .git/  node_modules/

Pointed at the made-up home folder with a site id, it uploaded .aws/credentials and the Netlify CLI’s config.json, the login token inside it, and wrote a .netlify/state.json into the home folder. We did not see what Netlify’s build system does with the zip after that.

Ids go into the path as written

Most operations paste the site, deploy, submission or variable id into the API path without escaping it, and the URL is then resolved, so ../ climbs out of it. Three of the requests the server sent:

manage-form-submissions  submissionId: ../sites/site-111
  DELETE /api/v1/sites/site-111

manage-env-vars  deleteEnvVar, envVarKey: ../../../sites/site-222
  DELETE /api/v1/sites/site-222?site_id=site-111

get-forms-for-project (reader)  siteId: site-111/env?x=
  GET /api/v1/sites/site-111/env?x=/forms   -> every variable and value

In Netlify’s API, DELETE /api/v1/sites/{id} deletes the site; the tool answered “Submission deleted”. The deploy reader did the same with a deploy id of ../sites/site-111/env?x= and returned the variables too. The observability and extension tools escape their ids, and ../ stayed inside the path there. The observability reader still asks below: it returns visitors’ IP addresses and function log lines, which carry whatever a function printed. The extension reader’s initialize-database sent no request at all and only returns a sentence of setup advice.

Environment variables

  • get-team-env-vars, in a reader, returned each team variable’s value unless the variable is marked secret: a live Stripe key in our test, stored without the flag.
  • An upsert of an existing variable with the default context sent five PATCH requests, one per context, production included. The secret flag and scopes of an existing variable are left as they were.
  • A variable name of API_KEY?x= sent DELETE …/env/API_KEY?x=?site_id=site-111: the site id ends up inside another parameter, so the delete no longer names the site. In Netlify’s API reference, a delete without a site id removes the team’s variable; we did not see Netlify’s answer.

Taking a site’s password off

update-visitor-access-controls with requirePassword: false sent password: "" and sso_login: false for all deploys, which leaves a protected site open to anyone. The tool’s own description says so.

What it sends

On start, before any call, it fetched a manifest from www.netlify.com/context-files without a token. Account calls went to api.netlify.com, extension calls to api.netlifysdk.com, and installing or removing an extension sent the token to app.netlify.com as a cookie. We saw no telemetry. If a file ~/Desktop/netlify/netlify-mcp/log.txt exists, the server appends every call and its result to it, variable values included.

A safer setup

Run the deploy from your own terminal with the Netlify CLI, where you choose the folder, and keep the server for looking. Start it with --verbose if you want rules per operation, mark every variable that holds a key as secret in Netlify, and give the server a token in NETLIFY_PERSONAL_ACCESS_TOKEN made for this use, so you can revoke it without signing the CLI out. With the default ten tools, add it like this:

claude mcp add netlify -- npx -y @netlify/mcp@1.22.1

Its 10 tools

Hard to undo2 toolsAsk a person every time. Consider two people, or deny it if the agent never needs it.

  • netlify-deploy-services-updater

    Select and run one of the following Netlify write operations deploy-site

    Server says: destructive

    Our call: Zips any folder named in deployDirectory and uploads it as a production build. It leaves out only .git, node_modules, .netlify, coverage, tmp and a top-level .env: .env.local, .env.production, a nested .env, .npmrc and .ssh/id_ed25519 were all in the upload. Pointed at a home folder, it uploaded ~/.aws/credentials and the Netlify CLI's own login file.

  • netlify-project-services-updater

    Select and run one of the following Netlify write operations update-visitor-access-controls, update-forms, manage-form-submissions, update-project-name, manage-env-vars, create-new-project

    Server says: destructive

    Our call: One tool for six operations: update-visitor-access-controls (can take a site's password off), update-forms, manage-form-submissions (reads and deletes submissions), update-project-name, manage-env-vars (reads, writes and deletes variables) and create-new-project. A submission id of ../sites/<site id> sent DELETE /api/v1/sites/<site id>, the request that deletes a site.

Not sure4 toolsAsk a person until you have checked what it does.

  • netlify-deploy-services-reader

    Select and run one of the following Netlify read operations (read-only) get-deploy, get-deploy-for-site

    Server says: read-only

    Our call: The deploy id is pasted into the API path as written. A deploy id of ../sites/<site id>/env?x= read the site's environment variables, values included, through a tool marked read-only.

  • netlify-team-services-reader

    Select and run one of the following Netlify read operations (read-only) get-teams, get-team, get-team-env-vars

    Server says: read-only

    Our call: get-team-env-vars returned every team variable's value unless the variable is marked secret, a live Stripe key in our test.

  • netlify-project-services-reader

    Select and run one of the following Netlify read operations (read-only) get-project, get-projects, get-forms-for-project

    Server says: read-only

    Our call: The site id is pasted into the API path as written. A site id of <site id>/env?x= sent to the forms operation returned the site's environment variables, values included, and the same trick reached the form submissions.

  • netlify-observability-services-reader

    Select and run one of the following Netlify read operations (read-only) get-counts, get-topk, get-timeseries, get-request-logs, get-request-detail

    Server says: read-only

    Our call: Sent only POST queries to the site's observability endpoints, with the site id escaped, but it returns visitors' IP addresses and user agents, and get-request-logs and get-request-detail return function log lines, which carry whatever a function printed, tokens included.

Changes data1 toolAsk a person. Once it is routine, a standing rule can answer.

  • netlify-extension-services-updater

    Select and run one of the following Netlify write operations change-extension-installation

    Server says: destructive

    Our call: Installs or uninstalls an extension for the whole team, sending the token to app.netlify.com as a cookie.

Only looks3 toolsLet it run. It only looks.

  • netlify-coding-rules

    ALWAYS call when writing serverless or Netlify code.

    Server says: read-only

    Our call: Fetched a manifest and guidance files from www.netlify.com, with no token, and checked each file against the hash in the manifest. Nothing in the account was touched.

  • netlify-user-services-reader

    Select and run one of the following Netlify read operations (read-only) get-user

    Server says: read-only

    Our call: Sent one GET for /api/v1/user and returned the profile, email included. It takes no id, so nothing can be pasted into the path.

  • netlify-extension-services-reader

    Select and run one of the following Netlify read operations (read-only) get-extensions, get-full-extension-details, initialize-database

    Server says: read-only

    Our call: Fronts get-extensions, get-full-extension-details and initialize-database. The first two sent only GETs to Netlify's extension API, with the slug and team id escaped, so a slug with ../ in it stayed inside the path. initialize-database sent no request at all: it returns one sentence of setup advice and provisions nothing.

Let the reads run in Claude Code

Claude Code asks before every MCP tool it has no rule for. Added as netlify, this server’s tools are named mcp__netlify__<tool>. These allow rules, in .claude/settings.json or ~/.claude/settings.json, let the tools that only look run without a prompt. Everything else keeps asking, including any tool a later version of the server adds.

{
  "permissions": {
    "allow": [
      "mcp__netlify__netlify-coding-rules",
      "mcp__netlify__netlify-user-services-reader",
      "mcp__netlify__netlify-extension-services-reader"
    ]
  }
}

The command that adds the server:

claude mcp add netlify -- npx -y @netlify/mcp@1.22.1

Send the rest to a person, not the terminal

A prompt in the terminal only works while someone is watching it. With this hook, every other tool of the server becomes a request in your VariantGate inbox, on your phone or in Slack, and Claude Code waits for the answer. The matcher names the look-only tools, so a tool added later is sent too. Put the key in VARIANTGATE_KEY, or run the one-command setup for Claude Code first.

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "mcp__netlify__(?!(netlify-coding-rules|netlify-user-services-reader|netlify-extension-services-reader)$).*",
        "hooks": [
          { "type": "command", "command": "variantgate hook claude-code", "timeout": 180 }
        ]
      }
    ]
  }
}

Disagree with a tier, or run the server with other flags? Open these tools in the tool risk checker, change what you like, and copy the settings for your own setup. It runs in your browser and starts from its own reading, so a tool we marked as only looking by hand asks there until you change it.

Set it up in Cursor, VS Code, Codex, Gemini CLI and other clients

The same server as the claude mcp add line above, written the way each client reads it, for Claude Desktop, Cursor, VS Code, Windsurf, Codex, Gemini CLI, Cline and Zed. Cursor and VS Code add it in one click: the app shows the settings and asks before it saves them. Set up like this, every tool runs as soon as the model calls it; the next section puts a person in front of the ones that change things. Running it with other flags? Convert your own settings.

claude_desktop_config.json{
  "mcpServers": {
    "netlify": {
      "command": "npx",
      "args": [
        "-y",
        "@netlify/mcp@1.22.1"
      ]
    }
  }
}

Any MCP client: put the proxy in front

Claude Desktop, Cursor and most other MCP clients have no hook to send a call to a person. The VariantGate MCP proxy does it in the server’s place: it starts the server, lets the look-only tools above through, and holds every other call until someone approves it in the inbox. Run npx -y https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz login once to save a key, then use the settings for your client:

claude_desktop_config.json{
  "mcpServers": {
    "netlify": {
      "command": "npx",
      "args": [
        "-y",
        "https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
        "mcp-proxy",
        "--name",
        "netlify",
        "--look-only",
        "netlify-coding-rules,netlify-user-services-reader,netlify-extension-services-reader",
        "--",
        "npx",
        "-y",
        "@netlify/mcp@1.22.1"
      ]
    }
  }
}

Already have it in Claude Desktop? One command rewrites the file for you, with these look-only tools filled in, and keeps the old one (setup vscode does the same for VS Code; how it works):

npx -y https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz setup claude-desktop

The same in Claude Code, instead of the hook. The proxy now asks about every call that matters, so an allow rule for the whole server, mcp__netlify, keeps Claude Code from asking a second time in the terminal:

claude mcp add netlify -- npx -y https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz mcp-proxy --name netlify --look-only netlify-coding-rules,netlify-user-services-reader,netlify-extension-services-reader -- npx -y @netlify/mcp@1.22.1

When the agent should write

Keep both updaters on ask, and read the whole selectSchema before saying yes: the operation name is in it, and so is any id with ../ or ? in it. For a deploy, check deployDirectory is the project’s build folder, not its root or your home folder. A request that deletes a site can arrive as a form submission cleanup.

See it before you decide.

The playground runs the whole approval loop in your browser, no account needed. When it fits, the free plan covers 100 requests a month.