The MCP Builder is an automated pipeline that creates new Model Context Protocol (MCP) tools. When triggered, it follows a sequence of searching documentation, generating code via LLM, deploying n8n workflows, and registering the tool.
The build lifecycle:
- Research: Searches API docs (via SearXNG) and fetches content (via Jina Reader).
- Generation: Builds a prompt and uses Claude to generate the tool logic.
- Deployment: Assembles and deploys a two-workflow structure (MCP Server workflow + Sub-Workflow).
- Testing: Performs an actual MCP protocol call (
initialize -> notifications/initialized -> tools/call) to verify functionality. If testing fails, it attempts an LLM-driven auto-fix. - Registration: Adds the tool to the Supabase
mcp_registry and updates the agent's mcp_instructions.
Start → Search API Docs (SearXNG) → Fetch Docs (Jina Reader)
→ BuildPrompt (LLM prompt with docs)
→ Generate Tool (Claude)
→ Assemble & Deploy
→ Create Sub-Workflow (Code node with actual logic)
→ Activate Sub-Workflow
→ Build MCP JSON
→ Create MCP Workflow (mcpTrigger + toolWorkflow)
→ Test MCP (actual MCP protocol call)
→ Register in Supabase mcp_registry
→ Update agent mcp_instructions