home / mcp / netlify mcp server
MCP server for Netlify integration - manage Netlify sites through Model Context Protocol
Configuration
View docs{
"mcpServers": {
"mcerqua-netlify-mcp": {
"command": "node",
"args": [
"path/to/netlify-mcp/build/index.js"
],
"env": {
"NETLIFY_ACCESS_TOKEN": "your_token_here"
}
}
}
}You run a Netlify MCP Server to manage Netlify sites from your MCP-enabled environment. It lets you create sites from GitHub repos, list and inspect existing sites, and delete sites, all through a secure, TypeScript-based service that can be deployed locally or in Docker.
You interact with the Netlify MCP Server by configuring it in your MCP client settings and then invoking the serverโs endpoints to perform actions such as creating new Netlify sites from GitHub repositories, listing sites with pagination, retrieving detailed site information, and deleting sites.
Prerequisites: ensure you have Node.js 18 or higher installed on your machine.
Install the server from source by cloning the repository, installing dependencies, and building the project.
# Clone the project
git clone https://github.com/MCERQUA/netlify-mcp.git
cd netlify-mcp
# Install dependencies
npm install
# Build the project
npm run buildAlternatively, you can run the server via Docker by building the image and starting a container with the Netlify access token configured.
docker build -t netlify-mcp .
docker run -e NETLIFY_ACCESS_TOKEN=your_token_here netlify-mcpTo authenticate with Netlify, obtain a personal access token and provide it to the server via an environment variable named NETLIFY_ACCESS_TOKEN.
Add the MCP server configuration in your MCP settings to enable the Netlify MCP Server. The example below shows how to wire the local Node.js runtime to run the MCP server build output and pass the token.
{
"mcpServers": {
"netlify": {
"command": "node",
"args": ["path/to/netlify-mcp/build/index.js"],
"env": {
"NETLIFY_ACCESS_TOKEN": "your_token_here"
},
"disabled": false,
"autoApprove": []
}
}
}Keep your Netlify API access token secure. Do not expose it in client-side code. Store it in a protected environment variable and reference it in the server configuration as shown.
Common issues include missing tokens, invalid tokens, or misformatted repository references. Ensure the token is set correctly in the environment, that the token has the required permissions, and that you pass repository identifiers in the expected owner/repo format.
During development, you can run in development mode to enable auto-rebuilds and test changes quickly.
# Run in development mode with auto-rebuild
npm run dev
# Clean build artifacts
npm run clean
# Build the project
npm run buildCreate a new Netlify site from a GitHub repository by providing a site name, repository owner/name, build command, publish directory, and optional environment variables.
List Netlify sites you have access to with optional filtering and pagination.
Retrieve detailed information about a specific Netlify site by ID or name.
Delete a specified Netlify site by ID or name.