一个综合平台,可将 N8N 工作流转换为模型上下文协议 (MCP) 服务器,从而实现与 Claude、Cursor 等 AI 助手以及其他兼容 MCP 的平台无缝集成。使用 N8N 的可视化工作流编辑器构建强大的自动化工具,并将其部署为可调用的 AI 函数。 ![]()
您的 N8N 工作流程已部署完毕,并创建本地托管的 MCP 服务器。只需将服务器 URL 粘贴到 Claude、Cursor、Super Chain 或任何兼容 MCP 的平台即可! 将您的 N8N 工作流程转换为 MCP 服务器,以便 AI 助手可以将其用作自定义工具
配置说明:
# Example MCP server URL format:
http://localhost:6545/mcp/{workflow_id}/{api_key}
# Test MCP server:
curl http://localhost:6545/list # List all registered MCP servers
系统使用Supabase 中的2 个主要表:
-- Main workflow storage table
CREATE TABLE IF NOT EXISTS public.user_workflows (
id UUID DEFAULT gen_random_uuid() PRIMARY KEY,
user_id TEXT NOT NULL,
template_id TEXT NOT NULL,
template_url TEXT NOT NULL,
workflow_name TEXT NOT NULL,
workflow_json JSONB NOT NULL,
workflow_description TEXT,
n8n_workflow_id TEXT,
source TEXT DEFAULT 'user_upload',
credentials_required JSONB DEFAULT '[]'::jsonb,
mcp_link TEXT,
status TEXT DEFAULT 'pending',
created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW(),
updated_at TIMESTAMP WITH TIME ZONE DEFAULT NOW()
);
-- MCP server configurations
CREATE TABLE IF NOT EXISTS public.mcp_configs (
id UUID DEFAULT gen_random_uuid() PRIMARY KEY,
workflow_id TEXT NOT NULL,
user_apikey TEXT NOT NULL,
code TEXT NOT NULL,
created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW(),
updated_at TIMESTAMP WITH TIME ZONE DEFAULT NOW(),
UNIQUE(workflow_id, user_apikey)
);
-- Enable Row Level Security (recommended)
ALTER TABLE user_workflows ENABLE ROW LEVEL SECURITY;
ALTER TABLE mcp_configs ENABLE ROW LEVEL SECURITY; python main.py 这将自动启动这两项服务:
cd agent_marketplace
python app.py cd mcp_router
python mcp_router.py # Test Agent Marketplace
curl http://localhost:5000/api/health
# Test MCP Router
curl http://localhost:6545/list
# View all endpoints
curl http://localhost:5000/api/health | grep endpoints # Kill processes on ports 5000 and 6545
fuser -k 5000/tcp 6545/tcp
# Or restart with main.py which handles this automatically
python main.py # Verify Supabase configuration
python -c "from agent_marketplace.database import db_manager; print('✅ Database OK' if db_manager.supabase else '❌ Database connection failed')"
# Reset database tables
python agent_marketplace/setup_supabase.py # Check if MCP Router is running
curl http://localhost:6545/list
# View MCP Router logs
# Logs appear in terminal where main.py was started
# Install missing packages
pip install playwright
playwright install # For N8N authentication (required)
# Or install all dependencies
pip install -r requirements.txt # If playwright browsers fail to download
playwright install --force
# For headless environments (servers)
playwright install chromium
# Check if playwright is working
python -c "from playwright.async_api import async_playwright; print('✅ Playwright OK')" # Enable debug mode for Flask
export FLASK_DEBUG=1
# View detailed MCP Router logs
cd mcp_router && python mcp_router.py --log-level debug
# Test individual components
python -m agent_marketplace.n8n_workflow_parser # Test parser
python -m mcp_router.mcp_router # Test MCP Router
该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅LICENSE文件。
由 SUPERCHAIN 团队倾情打造,面向 AI 自动化社区 |
涉嫌贩运毒品并藏匿国外,50岁新加坡籍男子在泰国曼谷落网后,星期三(7月9日)被引渡回新加坡,星期四(10日)被控上法庭。🧪案件背景主角身份:陈良忠(译音,Tan Leng Chong),50岁,新加坡籍男子。涉嫌罪行:涉 ...