Netlify MCP Server

by MCERQUA
Verified

Integrations

  • 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 服务器

用于管理 Netlify 站点的模型上下文协议 (MCP) 服务器。此服务器通过 MCP 与 Netlify 的 API 无缝集成,让您可以直接在启用 MCP 的环境中创建、管理和部署站点。

特征

  • 从 GitHub 存储库创建新站点
  • 列出现有的 Netlify 站点
  • 获取详细的站点信息
  • 删除网站

安装

  1. 克隆此存储库:
git clone https://github.com/MCERQUA/netlify-mcp.git cd netlify-mcp
  1. 安装依赖项:
npm install
  1. 构建项目:
npm run build

配置

获取您的 Netlify 访问令牌

  1. https://app.netlify.com/signup创建 Netlify 帐户
  2. 转到用户设置>应用程序>个人访问令牌
  3. 点击“新建访问令牌”
  4. 给它起一个名字(例如,“MCP Integration”)
  5. 复制生成的token

设置 MCP

  1. 在项目根目录中创建一个.env文件:
NETLIFY_ACCESS_TOKEN=your_token_here
  1. 将服务器添加到您的 MCP 设置配置中:
{ "mcpServers": { "netlify": { "command": "node", "args": ["path/to/netlify-mcp/build/index.js"], "env": { "NETLIFY_ACCESS_TOKEN": "your_token_here" }, "disabled": false, "autoApprove": [] } } }

可用工具

createSiteFromGitHub

从 GitHub 存储库创建一个新的 Netlify 站点。

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 }

列表站点

列出您可以访问的所有 Netlify 网站。

interface ListSitesArgs { filter?: 'all' | 'owner' | 'guest'; // Optional filter for sites }

获取站点

获取有关特定站点的详细信息。

interface GetSiteArgs { siteId: string; // ID of the site to retrieve }

删除站点

删除 Netlify 站点。

interface DeleteSiteArgs { siteId: string; // ID of the site to delete }

文档

有关详细信息,请参阅:

贡献

欢迎贡献代码!欢迎提交 Pull 请求。

执照

该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅LICENSE文件。

-
security - not tested
A
license - permissive license
-
quality - not tested

允许管理 Netlify 站点的模型上下文协议服务器,使用户能够直接从支持 MCP 的环境中创建、列出、获取有关 Netlify 站点的信息和删除 Netlify 站点。

  1. Features
    1. Installation
      1. Configuration
        1. Getting Your Netlify Access Token
        2. Setting Up MCP
      2. Available Tools
        1. createSiteFromGitHub
        2. listSites
        3. getSite
        4. deleteSite
      3. Documentation
        1. Contributing
          1. License
            ID: ufdnp5jiot