ClickFunnels MCP 框架是一个用于将 ClickFunnels 与 Claude Desktop 集成的模型上下文协议(MCP)服务器,能够实现两者之间的高效协作。
克隆此仓库到本地,并进入项目目录:
git clone https://github.com/illGATESmusic/click-funnels-mcp-shared.git
cd click-funnels-mcp-shared
使用以下命令安装项目所需的依赖项:
npm install
使用您的 ClickFunnels API 凭证更新 .env 文件:
PORT=3002
CLICKFUNNELS_API_BASE=https://your-domain.myclickfunnels.com/api/v2
CLICKFUNNELS_WORKSPACE_ID=123456
CLICKFUNNELS_API_TOKEN=YOUR_API_TOKEN_HERE
CLICKFUNNELS_WORKSPACE_SUBDOMAIN=your-subdomain
NODE_ENV=production
运行以下命令来构建项目:
npm run build
编辑您的 Claude Desktop 配置文件(位于 ~/Library/Application Support/Claude/claude_desktop_config.json 在 Mac 上,或其他操作系统的相应位置)以包含此服务器:
{
"mcpServers": {
"clickfunnels-mcp-framework": {
"command": "node",
"args": ["/absolute/path/to/click-funnels-mcp-shared/dist/index.js"],
"env": {
"PORT": "3002",
"CLICKFUNNELS_API_BASE": "https://your-domain.myclickfunnels.com/api/v2",
"CLICKFUNNELS_WORKSPACE_ID": "123456",
"CLICKFUNNELS_API_TOKEN": "YOUR_API_TOKEN_HERE",
"CLICKFUNNELS_WORKSPACE_SUBDOMAIN": "your-subdomain",
"NODE_ENV": "production",
"MCP_LOG_LEVEL": "debug",
"MCP_LOG_TO_CONSOLE": "true",
"MCP_LOG_TO_FILE": "true",
"MCP_LOG_DIR": "/absolute/path/to/click-funnels-mcp-shared/logs",
"NODE_OPTIONS": "--max-old-space-size=256"
},
"cwd": "/absolute/path/to/click-funnels-mcp-shared"
}
},
"mcpServerConnections": [
{
"url": "http://localhost:3002/sse"
}
]
}
重启 Claude Desktop 以应用更改。
如果遇到任何问题,请检查日志文件:
/Users/username/Library/Logs/Claude/mcp-server-clickfunnels-mcp-framework.logclaude_desktop_config.json 中的路径是否与您的服务器绝对路径匹配debug:显示系统信息和日志list_funnels:列出所有可用的漏斗create_funnel:创建新漏斗delete_funnel:删除指定漏斗update_funnel:更新漏斗配置如需报告问题或提交代码,请访问 GitHub 仓库。
[此处插入许可证信息]