Netlify MCP Server logo

Netlify MCP Server

by DynamicEndpoints

The Netlify MCP Server provides tools and resources for interacting with Netlify through their CLI, enabling deploying sites, managing environment variables, and builds. It is compatible with Netlify CLI v19.1.5.

View on GitHub

Last updated: N/A

What is Netlify MCP Server?

The Netlify MCP Server is a Model Context Protocol (MCP) server that acts as an intermediary between a client application and the Netlify CLI. It allows users to automate and manage Netlify deployments, environment variables, and other tasks programmatically.

How to use Netlify MCP Server?

To use the server, you need to install it either via Smithery or manually by cloning the repository, installing dependencies, and building the server. You also need to generate a Personal Access Token (PAT) from Netlify and configure it as an environment variable (NETLIFY_AUTH_TOKEN) in the server's configuration. Then, configure your MCP client to point to the server and use the available tools with the appropriate parameters.

Key features of Netlify MCP Server

  • Deploy and manage sites

  • Manage environment variables

  • Get function logs

  • Access site data via Resources

  • Comprehensive error handling

  • Type-safe parameter validation using Zod

Use cases of Netlify MCP Server

  • Automated deployments from CI/CD pipelines

  • Managing environment variables across multiple Netlify sites

  • Retrieving function logs for debugging

  • Programmatically creating and deleting Netlify sites

  • Integrating Netlify functionality into custom applications

FAQ from Netlify MCP Server

Why do I need a Personal Access Token (PAT)?

The Netlify CLI requires authentication. Since the MCP server runs non-interactively, a PAT is the recommended way to authenticate.

What Netlify CLI version is supported?

This server is compatible with Netlify CLI v19.1.5.

Why are some CLI commands not available?

Certain commands requiring interactive prompts or those related to unsupported features in CLI v19.1.5 have been removed for compatibility.

How do I pass the site context for commands like env:*?

The server automatically passes the siteId via the NETLIFY_SITE_ID environment variable for commands that require site context.

Where can I find more information about the Netlify CLI?

Refer to the Netlify CLI Documentation: https://cli.netlify.com/