Netlify MCP Server
Netlify MCP Server
A Model Context Protocol server that provides comprehensive tools for working with Netlify through their CLI. This server enables deploying sites, managing deployments, handling environment variables, DNS settings, serverless functions, forms, plugins, and webhooks.
Features
- Deploy and manage sites
- Configure DNS settings
- Deploy serverless functions
- Manage form submissions
- Handle environment variables
- Install and configure plugins
- Set up webhook notifications
- Comprehensive error handling
- Type-safe parameter validation
Installation
- Install dependencies:
- Build the server:
- Install Netlify CLI globally:
- Authenticate with Netlify:
This will open a browser window for authentication. After authenticating, the CLI will store your token locally.
Configuration
Add to your MCP settings file (location varies by platform):
Settings file locations:
- Windows:
%APPDATA%/Windsurf/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Linux:
~/.config/claude/settings.json
Available Tools
Site Management
deploy-site
Deploy a site to Netlify
list-sites
List all Netlify sites
get-deploy-status
Get deployment status for a site
DNS Management
add-dns-record
Add a DNS record to a site
Serverless Functions
deploy-function
Deploy a serverless function
Form Management
manage-form
Manage form submissions
Plugin Management
manage-plugin
Manage site plugins
Environment Variables
set-env-vars
Set environment variables for a site
Webhook Management
manage-hook
Manage webhook notifications
Error Handling
The server provides detailed error messages for:
- Authentication failures
- Invalid site IDs
- Deployment failures
- Network connectivity issues
- Invalid parameter types
- DNS configuration errors
- Function deployment issues
- Plugin installation problems
- Webhook configuration errors
Development
To modify the server:
- Update source code in
src/index.ts
- Build with
npm run build
- Test your changes by deploying a test site
Type Safety
The server uses Zod for runtime type validation of all parameters, ensuring:
- Required parameters are provided
- Parameters have correct types
- Optional parameters are properly handled
- Enum values are validated
- Complex object structures are verified
Resources
This server cannot be installed
This is an MCP server that can be used with Netlify