Netlify
Integrates with
Netlify
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
- Get detailed site information
- Delete sites
Installation
- Clone this repository:
git clone https://github.com/MCERQUA/netlify-mcp.git
cd netlify-mcp
- Install dependencies:
npm install
- Build the project:
npm run build
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
.env
file in the project root:
NETLIFY_ACCESS_TOKEN=your_token_here
- Add the server to your MCP settings configuration:
{
"mcpServers": {
"netlify": {
"command": "node",
"args": ["path/to/netlify-mcp/build/index.js"],
"env": {
"NETLIFY_ACCESS_TOKEN": "your_token_here"
},
"disabled": false,
"autoApprove": []
}
}
}
Available Tools
createSiteFromGitHub
Create a new Netlify site from a GitHub repository.
interface CreateSiteFromGitHubArgs {
name: string; // Name for the new site
repo: string; // GitHub repository (format: owner/repo)
branch: string; // Branch to deploy from
buildCommand: string; // Build command to run
publishDir: string; // Directory containing the built files
}
listSites
List all Netlify sites you have access to.
interface ListSitesArgs {
filter?: 'all' | 'owner' | 'guest'; // Optional filter for sites
}
getSite
Get detailed information about a specific site.
interface GetSiteArgs {
siteId: string; // ID of the site to retrieve
}
deleteSite
Delete a Netlify site.
interface DeleteSiteArgs {
siteId: string; // ID of the site to delete
}
Documentation
For more detailed information, see:
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.