Skip to main content
Glama

Netlify MCP Server

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文件。

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

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

  1. 特征
    1. 安装
      1. 配置
        1. 获取您的 Netlify 访问令牌
        2. 设置 MCP
      2. 可用工具
        1. createSiteFromGitHub
        2. 列表站点
        3. 获取站点
        4. 删除站点
      3. 文档
        1. 贡献
          1. 执照

            Related MCP Servers

            • -
              security
              -
              license
              -
              quality
              A basic example of developing and running serverless Model Context Protocol (MCP) using Netlify Functions, enabling AI agents to interact with your services via a standardized API.
              Last updated -
            • -
              security
              -
              license
              -
              quality
              A basic example of developing and running serverless Model Context Protocol (MCP) using Netlify Functions, demonstrating how to deploy and access serverless functions with customized URLs.
              Last updated -
            • -
              security
              F
              license
              -
              quality
              A serverless implementation of the Model Context Protocol (MCP) that runs on Netlify Functions, allowing developers to build and deploy MCP-compatible services with minimal configuration.
              Last updated -
            • -
              security
              F
              license
              -
              quality
              A basic example of a serverless Model Context Protocol (MCP) implementation using Netlify Functions, allowing developers to run MCP services without managing traditional server infrastructure.
              Last updated -

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/MCERQUA/netlify-mcp'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server