The Netlify MCP Server is a comprehensive Model Context Protocol server that provides access to all Netlify CLI features through the latest MCP SDK and Netlify CLI. It offers 43 tools covering functionalities like deployments, blobs storage, dev server, recipes, analytics, forms, and advanced API operations.
To install Netlify MCP Server for Claude Desktop automatically:
npx -y @smithery/cli install @DynamicEndpoints/Netlify-MCP-Server --client claude
git clone <repository-url>
cd Netlify-MCP-Server
npm install
npm run build
npm install -g netlify-cli@latest
Since the server runs non-interactively, you must use a Personal Access Token (PAT):
Generate a PAT:
Configure the Token: Make this token available as the NETLIFY_AUTH_TOKEN
environment variable in your MCP settings.
Add this configuration to your MCP settings file:
{
"mcpServers": {
"netlify": {
"command": "node",
"args": ["C:\\path\\to\\Netlify-MCP-Server\\build\\index.js"],
"env": {
"NETLIFY_AUTH_TOKEN": "YOUR_NETLIFY_PAT_HERE"
},
"disabled": false,
"autoApprove": []
}
}
}
Settings file locations:
%APPDATA%\Claude\claude_desktop_config.json
~/Library/Application Support/Claude/claude_desktop_config.json
Deploy a site directory to Netlify.
{
"path": "./dist",
"prod": true,
"message": "Deploying latest changes"
}
List all Netlify sites linked to your account.
{}
Trigger a new build/deploy for a site.
{
"siteId": "your-site-id-here",
"message": "Triggering rebuild"
}
Create a new site on Netlify.
{
"name": "my-awesome-new-site"
}
Delete a site from Netlify.
{
"siteId": "site-id-to-delete",
"force": true
}
Link the current project directory to a Netlify site.
{
"siteId": "your-site-id-here"
}
Unlink the current project directory from the associated Netlify site.
{}
Set environment variables for a site.
{
"siteId": "your-site-id-here",
"envVars": {
"API_KEY": "secret123",
"NODE_ENV": "production"
}
}
Get the value of a specific environment variable.
{
"siteId": "your-site-id-here",
"key": "API_KEY"
}
Delete an environment variable.
{
"siteId": "your-site-id-here",
"key": "OLD_VAR"
}
Import environment variables from a .env file.
{
"siteId": "your-site-id-here",
"filePath": ".env.production",
"replace": true
}
Get a blob from storage.
{
"storeName": "my-store",
"key": "data.json"
}
Set/store a blob.
{
"storeName": "my-store",
"key": "data.json",
"data": "{ \"hello\": \"world\" }"
}
Delete a blob from storage.
{
"storeName": "my-store",
"key": "old-data.json"
}
List all blobs in a store.
{
"storeName": "my-store",
"prefix": "users/"
}
Start Netlify dev server locally.
{
"dir": "./",
"port": 8888
}
Serve a built site locally.
{
"dir": "./dist",
"port": 8000
}
List available Netlify recipes.
{}
Run a specific Netlify recipe.
{
"recipeName": "create-react-app"
}
Make direct Netlify API calls.
{
"path": "/api/v1/sites",
"method": "GET"
}
Get form submissions for a site.
{
"siteId": "your-site-id-here",
"formId": "form-123"
}
Get site analytics data.
{
"siteId": "your-site-id-here",
"period": "30d"
}
Access Netlify data directly using these resource URIs:
netlify://sites
- List all sitesnetlify://sites/{siteId}/overview
- Complete site overviewnetlify://sites/{siteId}/functions
- List site functionsnetlify://sites/{siteId}/env
- List environment variablesnetlify://sites/{siteId}/deploys
- List site deploymentsnetlify://sites/{siteId}/forms
- Form submissions and configurationnetlify://sites/{siteId}/analytics
- Site usage analyticsnetlify://blobs/{storeName}
- Netlify Blobs storage managementnetlify://recipes
- Netlify automation recipesnetlify://api/methods
- Available Netlify API endpointsnetlify login
) are not supportedNETLIFY_SITE_ID
environment variableTo add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "netlify" '{"command":"node","args":["C:\\path\\to\\Netlify-MCP-Server\\build\\index.js"],"env":{"NETLIFY_AUTH_TOKEN":"YOUR_NETLIFY_PAT_HERE"},"disabled":false,"autoApprove":[]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"netlify": {
"command": "node",
"args": [
"C:\\path\\to\\Netlify-MCP-Server\\build\\index.js"
],
"env": {
"NETLIFY_AUTH_TOKEN": "YOUR_NETLIFY_PAT_HERE"
},
"disabled": false,
"autoApprove": []
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"netlify": {
"command": "node",
"args": [
"C:\\path\\to\\Netlify-MCP-Server\\build\\index.js"
],
"env": {
"NETLIFY_AUTH_TOKEN": "YOUR_NETLIFY_PAT_HERE"
},
"disabled": false,
"autoApprove": []
}
}
}
3. Restart Claude Desktop for the changes to take effect