Skip to main content
← Back to Articles
mcpnetlifydeploycursorsetup2026

Netlify MCP Server Setup for Cursor IDE (2026): Deploy & Manage Sites from Chat

Set up Netlify's official MCP server in Cursor IDE with one npx command — deploy sites, manage environment variables, and check build logs from chat, with an optional Personal Access Token for CI-style auth.

By Web MCP GuideJuly 22, 20268 min read


Netlify MCP Server Setup for Cursor IDE (2026)

To set up the Netlify MCP server in Cursor, add a netlify entry to mcp.json that runs npx @netlify/mcp, then restart Cursor — it authenticates through your existing Netlify CLI login by default, so you don't need a token in the config unless you're running it somewhere without an interactive session. Once connected, Cursor can create and deploy sites, manage environment variables, and check build status without you opening the Netlify dashboard.

This is Netlify's own package (@netlify/mcp), not a community wrapper, so it tracks Netlify's platform changes directly and gets a one-click install option inside Cursor's own MCP directory.

What the Netlify MCP Server Actually Gives You

Once connected, Cursor can:

  • Create and deploy projects — spin up new Netlify sites and trigger deploys straight from a coding session

  • Manage environment variables and secrets — read, set, or update env vars without the dashboard

  • Inspect deploys and builds — check deploy status, pull build logs, debug failed builds

  • Manage access controls — adjust site-level permissions and team settings

  • Handle form submissions — query Netlify Forms data

  • Install and manage extensions — add/remove Netlify extensions on a site

  • Look up account/team info — which team and sites you currently have access to
  • Prerequisites


  • Cursor IDE with MCP support (0.43+ recommended)

  • Node.js 22 or higher — this is a hard requirement; older Node versions are a common source of "server won't start" issues with this package

  • A Netlify account

  • Optional but recommended: netlify-cli installed globally (npm install -g netlify-cli) for a smoother first-run experience
  • Step 1: Log Into Netlify CLI (Recommended Auth Path)

    If you have netlify-cli installed:

    netlify login

    This opens a browser to authorize the CLI. The MCP server reuses this session by default — no token needed in your mcp.json for local development.

    Step 2: Add Netlify to Your MCP Config

    Open ~/.cursor/mcp.json (or Settings → MCP in Cursor) and add:

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

    If you skipped Step 1, or you're running Cursor in an environment without a persisted CLI session (a remote box, a fresh container), add a Personal Access Token instead:

    {
    "mcpServers": {
    "netlify": {
    "command": "npx",
    "args": ["-y", "@netlify/mcp"],
    "env": {
    "NETLIFY_PERSONAL_ACCESS_TOKEN": "your-pat-here"
    }
    }
    }
    }

    Generate a PAT from Netlify → User settings → Applications → New access token. Don't commit it — keep mcp.json out of version control or use your OS keychain if Cursor supports env var references in your setup.

    Cursor also offers a one-click install for this server from its own MCP directory, which writes the config for you — useful if you want to skip hand-editing JSON.

    Step 3: Restart Cursor and Verify

    Fully quit and reopen Cursor. In chat, try:

    List my Netlify sites

    If real site names come back, you're connected. Then check something project-specific:

    Show me the latest deploy status for [site name]

    Step 4: Practical Workflows

    Deploy from chat after a change

    Deploy the current build of this site to Netlify and tell me the deploy URL when it's done

    Debug a failed build without leaving the editor

    The last deploy on [site name] failed — pull the build log and tell me what broke

    Manage environment variables across environments

    Show me the environment variables set on the "staging" context for this site, and add a new one called FEATURE_FLAG_BETA set to "true"

    Check form submissions

    How many submissions came into the "contact" form on this site in the last 7 days?

    Audit site access before onboarding someone

    List everyone with access to [site name] and what role each person has

    Troubleshooting

    Server fails to start / hangs on connect
    Check your Node version first — node --version. Anything below 22 is a common cause of silent failures with @netlify/mcp. Upgrade via nvm (nvm install 22 && nvm use 22) and restart Cursor.

    "Not authenticated" errors despite being logged into the CLI
    The MCP process Cursor spawns doesn't always inherit your shell session the way a terminal does. If netlify status works fine in your terminal but the MCP tools still fail, fall back to a NETLIFY_PERSONAL_ACCESS_TOKEN in the env block — it sidesteps session-inheritance issues entirely.

    Wrong site or team shows up in results
    If you belong to multiple Netlify teams, the CLI session defaults to whichever team/site context was last active. Be explicit in your prompts ("on the site called X, under team Y") rather than assuming the AI knows which one you mean.

    Deploy tool runs but nothing changes on the live site
    Confirm which deploy context you targeted — production vs. a branch/preview deploy context. Netlify treats these differently, and a successful "deploy" to a preview context won't touch your live production URL.

    Frequently Asked Questions

    Q: Do I need a Personal Access Token, or does the CLI login work?
    A: For local development, the CLI login is enough — the MCP server reuses that session and no token is required in mcp.json. A PAT is mainly for environments without a persisted interactive session, like a remote dev box or a container that gets recreated often.

    Q: Can this MCP server accidentally push a broken site to production?
    A: Yes, in the sense that any deploy tool can — if you approve a deploy prompt without checking what's being deployed or which context it targets, it'll happen. Treat deploy-capable tool calls the way you'd treat a teammate asking to run netlify deploy --prod — confirm the target before agreeing.

    Q: Does this replace the Netlify CLI, or work alongside it?
    A: Alongside it. The MCP server is a thin layer that lets your AI assistant call the same underlying Netlify platform APIs the CLI uses, from inside a chat session. You'll likely still use netlify-cli directly for scripted CI steps — the MCP server is for the ad hoc, conversational side of site management.

    Q: I manage sites across personal and team Netlify accounts — can one config handle both?
    A: A single CLI-session-based config follows whatever account is currently logged in. For clean separation, run the server twice under different keys with separate PATs scoped to each account, similar to how you'd handle multiple GitHub or AWS accounts in one mcp.json.

    Q: Is this specific to Cursor, or does the same package work with other AI tools?
    A: Same package works anywhere that speaks MCP over stdio — Claude, Windsurf, and other MCP clients use the identical npx @netlify/mcp command. Cursor just happens to offer a one-click installer for it in its directory.

    Related Guides


  • Vercel MCP Server: Cursor IDE Setup (2026)

  • Firebase MCP Server: Cursor IDE Setup (2026)

  • Cloudflare MCP Server: Cursor IDE Setup (2026)

  • How to Authenticate MCP Servers: OAuth & API Keys

  • Cursor IDE MCP Setup: Complete Guide (2026)
  • ---


    Related guides