The Netlify MCP Server allows you to manage Netlify sites through a Model Context Protocol (MCP) interface. You can:
Create new sites from GitHub repositories by specifying name, repository, branch, build command, and publish directory
List existing Netlify sites with optional filtering by access type
Retrieve detailed information about specific sites using their IDs
Delete Netlify sites from your account
Allows creating Netlify sites from GitHub repositories by specifying repository details, branch to deploy from, and build configuration.
Enables site management on Netlify's platform, including creating new sites from GitHub repositories, listing existing sites, retrieving detailed site information, and deleting sites.
Netlify MCP Server
A Model Context Protocol (MCP) server for managing Netlify sites. This server enables seamless integration with Netlify's API through MCP, allowing you to create, manage, and deploy sites directly from your MCP-enabled environment.
Features
🚀 Create new sites from GitHub repositories
📋 List existing Netlify sites with pagination
🔍 Get detailed site information
🗑️ Delete sites
🔐 Secure authentication with Netlify API
⚡ Built with TypeScript for type safety
🐳 Docker support for easy deployment
Related MCP server: MCP Serverless Functions Example
Requirements
Node.js 18 or higher
A Netlify account with API access
A GitHub repository for deploying sites
Installation
From Source
Clone this repository:
Install dependencies:
Build the project:
Using Docker
Configuration
Getting Your Netlify Access Token
Create a Netlify account at https://app.netlify.com/signup
Go to User Settings > Applications > Personal access tokens
Click "New access token"
Give it a name (e.g., "MCP Integration")
Copy the generated token
Setting Up MCP
Create a
.envfile in the project root:
Add the server to your MCP settings configuration:
Available Tools
createSiteFromGitHub
Create a new Netlify site from a GitHub repository.
listSites
List all Netlify sites you have access to.
getSite
Get detailed information about a specific site.
deleteSite
Delete a Netlify site.
Documentation
For more detailed information, see:
Development
Troubleshooting
Common Issues
"NETLIFY_ACCESS_TOKEN environment variable is required"
Make sure you've set the token in your environment or
.envfile
"Failed to create site: 401 Unauthorized"
Your access token might be invalid or expired
Generate a new token from Netlify settings
"Invalid repo format"
Ensure the repository is in format
owner/repoExample:
facebook/react, nothttps://github.com/facebook/react
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Fork the repository
Create your feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add some amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
Model Context Protocol for the MCP framework
Netlify for their excellent deployment platform