此 MCP 服务器使 Claude 能够与 Webflow 的 API 进行交互。
或者,您也可以生成一个 OAuth 访问令牌。
安装依赖项:
npm install
为本地开发创建一个 .env
文件(不要提交此文件):
WEBFLOW_API_TOKEN=your-api-token
打开您的 Claude 桌面配置文件:
对于 MacOS:
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
对于 Windows:
code %AppData%\Claude\claude_desktop_config.json
添加或更新配置:
{
"mcpServers": {
"webflow": {
"command": "node",
"args": [
"/ABSOLUTE/PATH/TO/YOUR/build/index.js"
],
"env": {
"WEBFLOW_API_TOKEN": "your-api-token"
}
}
}
}

保存文件并重新启动 Claude 桌面应用程序。
要通过 Smithery 自动为 Claude 桌面安装 Webflow MCP 服务器:
npx -y @smithery/cli install @kapilduraphe/webflow-mcp-server --client claude
该服务器目前提供以下工具:
检索经过身份验证的用户可以访问的所有 Webflow 站点的列表。返回详细信息包括:
通过 ID 检索特定 Webflow 站点的详细信息。需要一个 siteId 参数,并返回与 get_sites 相同的单个站点的详细信息。
interface WebflowApiError {
status?: number;
message: string;
code?: string;
}
interface WebflowCustomDomain {
id: string;
url: string;
lastPublished: string;
}
interface WebflowLocale {
id: string;
cmsLocaleId: string;
enabled: boolean;
displayName: string;
redirect: boolean;
subdirectory: string;
tag: string;
}
interface WebflowSite {
id: string;
workspaceId: string;
createdOn: string;
displayName: string;
shortName: string;
lastPublished: string;
lastUpdated: string;
previewUrl: string;
timeZone: string;
parentFolderId?: string;
customDomains: WebflowCustomDomain[];
locales: {
primary: WebflowLocale;
secondary: WebflowLocale[];
};
dataCollectionEnabled: boolean;
dataCollectionType: string;
}

该服务器处理各种错误场景:
要查看服务器日志:
对于 MacOS/Linux:
tail -n 20 -f ~/Library/Logs/Claude/mcp*.log

对于 Windows:
Get-Content -Path "$env:AppData\Claude\Logs\mcp*.log" -Wait -Tail 20

如果您遇到环境变量错误,请确认:
WEBFLOW_API_TOKEN
:应为有效的 API 令牌如果您遇到任何问题:
MIT 许可证 - 详情请参阅 LICENSE 文件。