Skip to main content
Glama

Netlify MCP 服务器

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

特征

  • 从 GitHub 存储库创建新站点

  • 列出现有的 Netlify 站点

  • 获取详细的站点信息

  • 删除网站

Related MCP server: MCP Serverless Functions Example

安装

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

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

Latest Blog Posts

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