Netlify MCP server for AI agents

Read Netlify sites, deploys, builds, forms and environment variables; start builds, restore or lock deploys and set variables.

NetlifyBEARER_TOKEN

Runs with your users' own Netlify accounts. Credentials stay on prompt-tm.com.

22 tools · 0 triggers

Auth
Access token
Tools
22
Triggers
0
Category
Infrastructure, Developer tools

Tools and triggers

  • Get the current user

    NETLIFY_GET_CURRENT_USER

    Returns the user the token belongs to: name, email and the teams they belong to.read-only

  • List teams

    NETLIFY_LIST_ACCOUNTS_FOR_USER

    Lists the teams (accounts) of the current user with their IDs and slugs.read-only

  • List sites

    NETLIFY_LIST_SITES

    Lists the sites the user can access, with their IDs, URLs and repository settings. Filter by name.read-only

  • Get a site

    NETLIFY_GET_SITE

    Returns one site: URLs, custom domain, build settings, repository and the published deploy.read-only

  • List a site's deploys

    NETLIFY_LIST_SITE_DEPLOYS

    Lists a site's deploys, newest first. Filter by state, branch, production or deploy previews.read-only

  • Get a site's deploy

    NETLIFY_GET_SITE_DEPLOY

    Returns one deploy of a site: state, branch, commit, context, URLs and error message.read-only

  • Get a deploy

    NETLIFY_GET_DEPLOY

    Returns one deploy by its ID: state, branch, commit, context, URLs and error message.read-only

  • Start a build

    NETLIFY_CREATE_SITE_BUILD

    Starts a build of the site from its repository: production by default, or a branch, commit or pull request. It may wait for free build capacity.

  • List a site's builds

    NETLIFY_LIST_SITE_BUILDS

    Lists a site's builds, newest first, with their state and deploy IDs.read-only

  • Get a build

    NETLIFY_GET_SITE_BUILD

    Returns one build: state, error, deploy ID and timestamps.read-only

  • Restore a previous deploy

    NETLIFY_RESTORE_SITE_DEPLOY

    Publishes a previous deploy of the site.destructive

  • Roll back a site's production deploy

    NETLIFY_ROLLBACK_SITE_DEPLOY

    Rolls back the production deploy to the deploy referenced by its `rollback_id`. Does nothing if the current production deploy has no `rollback_id`.destructive

  • Cancel a deploy

    NETLIFY_CANCEL_SITE_DEPLOY

    Cancels a deploy that is still building or processing.

  • Lock a deploy

    NETLIFY_LOCK_DEPLOY

    Locks publishing on this deploy: later deploys are built but not published. A deploy that isn't the published one is published first.destructive

  • Unlock a deploy

    NETLIFY_UNLOCK_DEPLOY

    Unlocks publishing, so new deploys are published automatically again.

  • List environment variables

    NETLIFY_GET_ENV_VARS

    Lists a team's environment variables, or one site's when site_id is given, with their values per deploy context.read-only

  • Set an environment variable value

    NETLIFY_SET_ENV_VAR_VALUE

    Sets the value of an existing environment variable for one deploy context, on the team or on one site.

  • Delete an environment variable

    NETLIFY_DELETE_ENV_VAR

    Deletes an environment variable.destructive

  • List a site's forms

    NETLIFY_LIST_SITE_FORMS

    Lists the forms Netlify detected on a site, with their IDs, fields and submission counts.read-only

  • List a site's form submissions

    NETLIFY_LIST_SITE_SUBMISSIONS

    Lists the form submissions of all forms on a site, newest first.read-only

  • List a form's submissions

    NETLIFY_LIST_FORM_SUBMISSIONS

    Lists the submissions of one form, newest first.read-only

  • List a site's build hooks

    NETLIFY_LIST_SITE_BUILD_HOOKS

    Lists a site's build hooks: the URLs that start a build when something POSTs to them.read-only

Try Netlify now

Sign in, connect your account and run any of these in the playground, or ask your agent through the router.

Try it free

Connect via MCP

Create an MCP server for Netlify in the dashboard, then add its URL to your client. This is the Claude Code command; the client guide has the others.

terminal
claude mcp add --transport http netlify \
  "https://www.prompt-tm.com/mcp/<server id>?user_id=<your user>" \
  --header "x-api-key: ptm_…"

Connect via REST

Run a tool with one request. The response is { data, error, successful, log_id } for every tool.

terminal
curl -X POST https://www.prompt-tm.com/api/v3/tools/execute/NETLIFY_GET_CURRENT_USER \
  -H "x-api-key: $PROMPT_TM_KEY" -H "content-type: application/json" \
  -d '{ "user_id": "alice", "arguments": {} }'

Netlify questions