Netlify MCP server
185 operations4 webhooks
Sites, deploys (with file and function uploads), builds and build hooks, environment variables, forms and submissions, functions, DNS zones and records, TLS certificates, split tests, snippets, Netlify DB databases, agent runs, teams, members and audit logs, deploy keys, add-ons and AI Gateway tokens, plus JWS-signed webhooks for deploy and form events (185 operations).
Try Netlify with your agent
Connect Netlify, then paste this into Claude, ChatGPT or Cursor. For ideas from other apps, see the use cases.
Using Corsair, show me what you can do in Netlify on my account, then run one read-only example and show me the result.
Netlify tools and triggers
Tools are what your agent can do in Netlify through Corsair's MCP server. Triggers are the Netlify events a routine can start from.
Sites
- Agent Runner Hooks.CreateWrite
Create an agent runner hook
sites.agentRunnerHooks.create
- Agent Runner Hooks.DeleteDestructive
Delete an agent runner hook
sites.agentRunnerHooks.delete
- Agent Runner Hooks.GetRead-only
Get an agent runner hook
sites.agentRunnerHooks.get
- Agent Runner Hooks.ListRead-only
List a site's agent runner hooks
sites.agentRunnerHooks.list
- Agent Runner Hooks.UpdateWrite
Update an agent runner hook
sites.agentRunnerHooks.update
- Agent Runners.CreateDestructive
Start an agent run on a site: starts an agent run on the site
sites.agentRunners.create
- Assets.CreateWrite
Create a site asset (only available to some sites)
sites.assets.create
- Assets.DeleteDestructive
Delete a site asset (only available to some sites)
sites.assets.delete
- Assets.GetRead-only
Get a site asset (only available to some sites)
sites.assets.get
- Assets.Get Public SignatureRead-only
Get a site asset's URL: returns the URL of the asset (only available to some sites)
sites.assets.getPublicSignature
- Assets.ListRead-only
List a site's assets (only available to some sites)
sites.assets.list
- Assets.UpdateWrite
Update a site asset's state (only available to some sites)
sites.assets.update
- Build Hooks.CreateWrite
Create a build hook
sites.buildHooks.create
- Build Hooks.DeleteDestructive
Delete a build hook
sites.buildHooks.delete
- Build Hooks.GetRead-only
Get a build hook
sites.buildHooks.get
- Build Hooks.ListRead-only
List a site's build hooks
sites.buildHooks.list
- Build Hooks.UpdateWrite
Update a build hook
sites.buildHooks.update
- Builds.CreateWrite
Start a build for the site from its linked repository (or from an uploaded zip), optionally for a branch or commit; uses build minutes
sites.builds.create
- Builds.ListRead-only
List a site's builds, one page at a time
sites.builds.list
- CreateWrite
Create a site in your personal team (accounts.sites.create picks the team), optionally linked to a Git repository with build settings
sites.create
- Database.Branches.CreateWrite
Create a database branch: creates a new database branch
sites.database.branches.create
- Database.Branches.DeleteDestructive
Delete a database branch: deletes a database branch
sites.database.branches.delete
- Database.Branches.GetRead-only
Get a database branch: returns the database branch connection string for a specific branch
sites.database.branches.get
- Database.Branches.ListRead-only
List database branches: returns all branches for the site's database with compute status and metadata
sites.database.branches.list
- Database.Branches.ResetDestructive
Reset a database branch: resets a non-production database branch by re-forking it from a source branch (defaults to the production branch)
sites.database.branches.reset
- Database.Branches.Set Compute SettingsDestructive
Set a database branch's compute settings: sets compute settings for a specific database branch, overriding project-level settings
sites.database.branches.setComputeSettings
- Database.Compute.ClearDestructive
Reset database compute settings to defaults: resets project-level compute settings to tier defaults
sites.database.compute.clear
- Database.Compute.GetRead-only
Get database compute settings: returns the project-level compute settings for the database
sites.database.compute.get
- Database.Compute.SetDestructive
Set database compute settings: sets project-level compute settings for the database
sites.database.compute.set
- Database.CreateWrite
Create a site database: creates a new database for the specified site
sites.database.create
- Database.DeleteDestructive
Delete a site database: deletes the database and all associated branches and snapshots for the specified site
sites.database.delete
- Database.GetRead-only
Get a site database: returns the database connection string for the specified site
sites.database.get
- Database.Migrations.GetRead-only
Get a database migration: returns the contents of a named migration for the specified branch
sites.database.migrations.get
- Database.Migrations.ListRead-only
List database migrations: returns the list of migrations available for the specified branch, indicating which ones have been applied to the database
sites.database.migrations.list
- Database.Migrations.RunDestructive
Run database migrations for a deploy: runs database migrations for the specified deploy
sites.database.migrations.run
- Database.Snapshots.CreateWrite
Create a database snapshot: creates a point-in-time snapshot of a database branch
sites.database.snapshots.create
- Database.Snapshots.DeleteDestructive
Delete a database snapshot: deletes a database snapshot
sites.database.snapshots.delete
- Database.Snapshots.ListRead-only
List database snapshots: returns all snapshots for the site's database
sites.database.snapshots.list
- Database.Snapshots.RestoreDestructive
Restore a database snapshot: restores a snapshot to a database branch
sites.database.snapshots.restore
- DeleteDestructive
Permanently delete a site with all its deploys, forms, functions and settings; its netlify.app subdomain is released
sites.delete
- Deployed Branches.ListRead-only
List a site's deployed branches
sites.deployedBranches.list
- Deploys.CreateWrite
Create a deploy from a file digest (`files`: path -> SHA1) and function digests, or from one `zip` of the site. Netlify answers with `required` and `required_functions` (what it still needs); upload each with deploys.uploadFile and deploys.uploadFunction, then poll deploys.get until `state` is `ready`
sites.deploys.create
- Deploys.DeleteDestructive
Delete a site's deploy: marks a deploy for deletion
sites.deploys.delete
- Deploys.GetRead-only
Get a site's deploy
sites.deploys.get
- Deploys.ListRead-only
List a site's deploys, one page at a time
sites.deploys.list
- Deploys.RestoreWrite
Restore a previous deploy: publishes a previous deploy of the site
sites.deploys.restore
- Deploys.RollbackWrite
Roll back a site's production deploy: rolls back the production deploy to the deploy referenced by its `rollback_id`
sites.deploys.rollback
- Deploys.UpdateWrite
Update a deploy
sites.deploys.update
- Dev Server Hooks.CreateWrite
Create a dev server hook
sites.devServerHooks.create
- Dev Server Hooks.DeleteDestructive
Delete a dev server hook
sites.devServerHooks.delete
- Dev Server Hooks.GetRead-only
Get a dev server hook
sites.devServerHooks.get
- Dev Server Hooks.ListRead-only
List a site's dev server hooks
sites.devServerHooks.list
- Dev Server Hooks.UpdateWrite
Update a dev server hook
sites.devServerHooks.update
- Dev Servers.CreateWrite
Start a dev server
sites.devServers.create
- Dev Servers.Delete AllWrite
Stop a branch's dev servers: stops all dev servers for a branch
sites.devServers.deleteAll
- Dev Servers.GetRead-only
Get a dev server
sites.devServers.get
- Dev Servers.ListRead-only
List a site's dev servers, one page at a time
sites.devServers.list
- Dev Servers.Mark ActivityWrite
Record dev server activity
sites.devServers.markActivity
- Dev Servers.Update StateWrite
Update a dev server's state
sites.devServers.updateState
- DisableDestructive
Disable a site: disables a site, preventing it from serving content
sites.disable
- Dns.ConfigureWrite
Configure a site's DNS: creates any missing DNS zones and records for the site's custom domain and domain aliases
sites.dns.configure
- Dns.GetRead-only
Get a site's DNS configuration
sites.dns.get
- EnableWrite
Enable a site: re-enables a site that was previously disabled by the user
sites.enable
- Files.GetRead-only
Get a site file by path
sites.files.get
- Files.ListRead-only
List a site's files
sites.files.list
- Forms.DeleteDestructive
Delete a form: deletes a form and all of its submissions
sites.forms.delete
- Forms.ListRead-only
List a site's forms
sites.forms.list
- Functions.ListRead-only
Search a site's functions
sites.functions.list
- GetRead-only
Get a site
sites.get
- Identity.Users.GetRead-only
Get an Identity user: returns one Identity user by ID
sites.identity.users.get
- Identity.Users.LookupRead-only
Look up an Identity user by email: returns the one Identity user with this exact email
sites.identity.users.lookup
- ListRead-only
List the sites the token can see, filterable by name and by owner (`filter`: all, owner or guest), one page at a time
sites.list
- Metadata.GetRead-only
Get a site's metadata
sites.metadata.get
- Metadata.UpdateWrite
Replace the site's metadata with the `metadata` object (`{}` clears it)
sites.metadata.update
- Service Instances.CreateDestructive
Create an add-on instance
sites.serviceInstances.create
- Service Instances.DeleteDestructive
Delete an add-on instance
sites.serviceInstances.delete
- Service Instances.GetRead-only
Get an add-on instance
sites.serviceInstances.get
- Service Instances.ListRead-only
List a site's add-on instances
sites.serviceInstances.list
- Service Instances.UpdateWrite
Update an add-on instance
sites.serviceInstances.update
- Snippets.CreateWrite
Create a snippet
sites.snippets.create
- Snippets.DeleteDestructive
Delete a snippet
sites.snippets.delete
- Snippets.GetRead-only
Get a snippet
sites.snippets.get
- Snippets.ListRead-only
List a site's snippets
sites.snippets.list
- Snippets.UpdateWrite
Update a snippet
sites.snippets.update
- Split Tests.CreateWrite
Create a split test
sites.splitTests.create
- Split Tests.GetRead-only
Get a split test
sites.splitTests.get
- Split Tests.ListRead-only
List a site's split tests
sites.splitTests.list
- Split Tests.PublishWrite
Publish a split test
sites.splitTests.publish
- Split Tests.UnpublishWrite
Unpublish a split test
sites.splitTests.unpublish
- Split Tests.UpdateWrite
Update a split test
sites.splitTests.update
- Ssl.GetRead-only
Get a site's TLS certificate
sites.ssl.get
- Ssl.List CertificatesRead-only
List TLS certificates for a site's domain: returns details about the certificates associated with a domain
sites.ssl.listCertificates
- Ssl.ProvisionWrite
Provision or update a site's TLS certificate: provisions or updates a TLS certificate for the site
sites.ssl.provision
- Submissions.ListRead-only
List a site's form submissions, one page at a time
sites.submissions.list
- Unlink RepoDestructive
Unlink the site from its Git repository (beta): this also deletes the deploy key, build hooks and Git notifications that came with the link
sites.unlinkRepo
- UpdateWrite
Update a site
sites.update
Agent Runners
- ArchiveWrite
Archive an agent run
agentRunners.archive
- Commit To BranchDestructive
Commit an agent run's changes to a branch: queues a commit of the run's diff to `target_branch`
agentRunners.commitToBranch
- CreateDestructive
Start an agent run
agentRunners.create
- Create Pull RequestDestructive
Open a pull request from an agent run: queues a pull request for the run's diff (`result_diff`)
agentRunners.createPullRequest
- Create Upload UrlWrite
Create an upload URL for agent run files: returns a presigned URL for uploading a file that agent run sessions can use, and the file's storage key
agentRunners.createUploadUrl
- DeleteWrite
Stop an agent run (alias): same as `POST /agent_runners/{agent_runner_id}/stop`
agentRunners.delete
- GetRead-only
Get an agent run
agentRunners.get
- Get DiffRead-only
Get an agent run's diff: returns the run's changes as a unified diff (returned as text)
agentRunners.getDiff
- ListRead-only
List a site's agent runs: lists a site's agent runs, most recently active first, one page at a time
agentRunners.list
- Sessions.AnswerDestructive
Answer an agent run session's pending interaction: answers or skips a pending interaction and resumes the session
agentRunners.sessions.answer
- Sessions.CreateDestructive
Start a follow-up agent run session: starts a follow-up session on the run
agentRunners.sessions.create
- Sessions.DeleteWrite
Stop an agent run session (alias): same as `POST /agent_runners/{agent_runner_id}/sessions/{agent_runner_session_id}/stop`
agentRunners.sessions.delete
- Sessions.GetRead-only
Get an agent run session
agentRunners.sessions.get
- Sessions.ListRead-only
List an agent run's sessions, one page at a time
agentRunners.sessions.list
- Sessions.StopWrite
Stop an agent run session: stops the session
agentRunners.sessions.stop
- Sessions.UpdateWrite
Update an agent run session
agentRunners.sessions.update
- StopWrite
Stop an agent run: stops the run's active session
agentRunners.stop
- UpdateWrite
Update an agent run
agentRunners.update
Accounts
- Audit.ListRead-only
List a team's audit log events, one page at a time
accounts.audit.list
- Builds.StatusRead-only
Get a team's build status: returns the team's counts of active, concurrency-pending, and enqueued builds, and its build minutes usage
accounts.builds.status
- CancelDestructive
Cancel a team: its sites and members are removed and billing stops
accounts.cancel
- CreateDestructive
Create a team
accounts.create
- GetRead-only
Get a team
accounts.get
- ListRead-only
List the current user's teams
accounts.list
- List TypesRead-only
List plans available for new teams
accounts.listTypes
- Members.AddDestructive
Invite someone to the team by email with a role; Netlify sends them an invitation email
accounts.members.add
- Members.GetRead-only
Get a team member
accounts.members.get
- Members.ListRead-only
List a team's members
accounts.members.list
- Members.RemoveDestructive
Remove a team member
accounts.members.remove
- Members.UpdateWrite
Update a team member
accounts.members.update
- Sites.CreateWrite
Create a site in a team
accounts.sites.create
- Sites.ListRead-only
List a team's sites, one page at a time
accounts.sites.list
- UpdateDestructive
Update a team
accounts.update
Deploys
- CancelWrite
Cancel a deploy
deploys.cancel
- DeleteDestructive
Delete a deploy: marks a deploy for deletion
deploys.delete
- GetRead-only
Get a deploy
deploys.get
- LockWrite
Lock a deploy: locks a deploy so that subsequent deploys are built but not published
deploys.lock
- UnlockWrite
Unlock a deploy
deploys.unlock
- Update Validations ReportWrite
Update a deploy's validations report: updates the deploy validations report for a deploy
deploys.updateValidationsReport
- Upload Edge FunctionWrite
Upload a deploy's edge functions bundle
deploys.uploadEdgeFunction
- Upload FileWrite
Upload one file a deploy listed as required: `path` is the file path in the site (`index.html`, `assets/app.js`), the bytes are the body. Netlify processes the deploy once every required file and function is in
deploys.uploadFile
- Upload FunctionWrite
Upload one function bundle (a zip) a deploy listed as required, by function name
deploys.uploadFunction
- Upload ServerWrite
Upload a deploy's Netlify Server bundle: uploads the deploy's Netlify Server bundle, addressed by the digest the deploy declared in its `server` property
deploys.uploadServer
Dns
- Records.CreateWrite
Create a DNS record
dns.records.create
- Records.DeleteDestructive
Delete a DNS record
dns.records.delete
- Records.GetRead-only
Get a DNS record
dns.records.get
- Records.ListRead-only
List a DNS zone's records
dns.records.list
- Zones.CreateWrite
Create a DNS zone
dns.zones.create
- Zones.DeleteDestructive
Delete a DNS zone
dns.zones.delete
- Zones.GetRead-only
Get a DNS zone
dns.zones.get
- Zones.ListRead-only
List DNS zones: returns the DNS zones for the team given by `account_slug`, or all DNS zones the current user can access
dns.zones.list
- Zones.TransferDestructive
Transfer a DNS zone to another team
dns.zones.transfer
Env
- CreateWrite
Create one or more environment variables on a team, or on one site with `site_id`; each takes `key`, `scopes`, `values` (per deploy context) and `is_secret`
env.create
- DeleteDestructive
Delete an environment variable: deletes an environment variable
env.delete
- Delete ValueDestructive
Delete an environment variable value: deletes a specific environment variable value
env.deleteValue
- GetRead-only
Get an environment variable: returns an individual environment variable
env.get
- ListRead-only
List environment variables for a team or site: returns all environment variables for an account or site
env.list
- List For SiteRead-only
List environment variables for a site: returns all environment variables for a site
env.listForSite
- Set ValueWrite
Set a value on an environment variable: updates or creates a new value for an existing environment variable
env.setValue
- UpdateWrite
Replace an environment variable: its scopes, secret flag and every value (values left out are removed). Pass `new_key` to rename it
env.update
Hooks
- CreateWrite
Create an outgoing notification for a site: type `url` with `data.url` (and `data.signature_secret` to sign deliveries with a JWS the plugin's webhooks check), `slack` or `email`, for one event (deploy_created, deploy_failed, submission_created...)
hooks.create
- DeleteDestructive
Delete an outgoing hook
hooks.delete
- EnableWrite
Re-enable an outgoing hook: re-enables an outgoing hook that was disabled after repeated delivery errors
hooks.enable
- GetRead-only
Get an outgoing hook
hooks.get
- ListRead-only
List a site's outgoing hooks: returns the outgoing hooks for a site
hooks.list
- List TypesRead-only
List outgoing hook types: returns the available outgoing hook types
hooks.listTypes
- UpdateWrite
Update an outgoing hook
hooks.update
Deploy Keys
- CreateWrite
Create a deploy key
deployKeys.create
- DeleteDestructive
Delete a deploy key
deployKeys.delete
- GetRead-only
Get a deploy key
deployKeys.get
- ListRead-only
List deploy keys
deployKeys.list
Ai Gateway
- Get Account TokenRead-only
Get a team's AI Gateway token: returns an AI Gateway token scoped to an account
aiGateway.getAccountToken
- Get Site TokenRead-only
Get a site's AI Gateway token: returns an AI Gateway token for a specific site
aiGateway.getSiteToken
- List ProvidersRead-only
List AI Gateway providers and models
aiGateway.listProviders
Builds
- Append LogWrite
Add a message to a build log
builds.appendLog
- GetRead-only
Get a build
builds.get
- Notify StartWrite
Mark a build as started
builds.notifyStart
Oauth
- Tickets.CreateWrite
Create an OAuth ticket
oauth.tickets.create
- Tickets.ExchangeWrite
Exchange an OAuth ticket for an access token
oauth.tickets.exchange
- Tickets.GetRead-only
Get an OAuth ticket
oauth.tickets.get
Services
- GetRead-only
Get an add-on service
services.get
- Get ManifestRead-only
Get an add-on service's manifest
services.getManifest
- ListRead-only
List add-on services
services.list
Submissions
- DeleteDestructive
Delete a form submission
submissions.delete
- GetRead-only
Get a form submission, one page at a time
submissions.get
Billing
- Payment Methods.ListRead-only
List payment methods
billing.paymentMethods.list
Cache
- PurgeWrite
Purge cached content from Netlify's CDN for a site (`site_id` or `site_slug`), optionally only the responses with given cache tags
cache.purge
Forms
- Submissions.ListRead-only
List a form's submissions, one page at a time
forms.submissions.list
User
- MeRead-only
Get the user the token belongs to: name, email, teams and connected accounts
user.me
Connect Netlify to Claude, ChatGPT or Cursor
- 1
Connect Netlify in Corsair
Add your Netlify API key once in Corsair. Corsair stores the credential encrypted and makes the Netlify API calls for your agent, so it never goes into a prompt or a config file. Connect Netlify
If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs Netlify. On a ChatGPT personal plan, connect Netlify here first.
- 2
Add Corsair's MCP server to your agent
Every client uses the same address:
https://mcp.corsair.dev/mcpOpen Plugins → Add → Add custom connector, name it Corsair, paste the address, select Continue, then Add.Add a custom MCP server with the address and choose OAuth. Personal plans get read tools only.Add to CursorOr add this to~/.cursor/mcp.json. Cursor opens Corsair to sign in the first time it connects.{ "mcpServers": { "corsair": { "url": "https://mcp.corsair.dev/mcp" } } }Run this, then run/mcpin Claude Code to sign in.claude mcp add --transport http corsair https://mcp.corsair.dev/mcpCodex, Gemini CLI, VS Code, Zed and other clients with OAuth sign-in work the same way. Clients without it, such as GitHub Copilot's coding agent, use a link's own address and an API key. Setup for every client
- 3
Sign in and choose what needs your approval
Your client opens Corsair to sign in. Pick a link: the apps your agent can use and a mode that decides what it may do without asking. In the default Cautious mode, Netlify's read and write operations run right away and its 41 destructive operations wait for your approval. Strict mode asks before every write and refuses destructive operations, and Read mode allows reads only.
FAQ
Install corsair and @corsair-dev/netlify, add the Netlify plugin, and connect with an API key. Then call methods like corsair.netlify.api.accounts.audit.list() from your app. Corsair verifies webhooks, and keeps each tenant isolated.
Yes. Netlify requires an API key from your Netlify account or developer dashboard. Create credentials with access that matches what you automate, then paste them into Corsair or connect through managed auth in Hub.
Yes. One Corsair client can hit Netlify, GitHub, Notion, Stripe, and the rest. Trigger Netlify from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.
Teams use Corsair for sites, deploys (with file and function uploads), builds and build hooks, environment variables, forms and submissions, functions, DNS zones and records, TLS certificates, split tests, snippets, Netlify DB databases, agent runs, teams, members and audit logs, deploy keys, add-ons and AI Gateway tokens, plus JWS-signed webhooks for deploy and form events (185 operations). Common builds include sync jobs, admin tooling, and agents that call Netlify APIs from your backend. Webhook handlers react to Netlify events and fan out to Slack, email, or other plugins in the same tenant.
The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per Netlify API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.
We maintain @corsair-dev/netlify in the open repo. When Netlify ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.
No. Corsair does not read your Netlify data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store Netlify data on your behalf.
Yes. Add https://mcp.corsair.dev/mcp as a custom connector or MCP server in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex or any client that supports remote MCP servers with OAuth sign-in, then sign in to Corsair. On ChatGPT personal plans, custom servers currently get read tools only.
Yes. Put Netlify on a link in Strict mode and every write waits for your approval, while destructive actions are refused. The default Cautious mode asks only before the 41 destructive Netlify operations. You can change a link's mode at hub.corsair.dev/me.