Self-Hosting n8n and Letting Claude Build the Workflows
说明与用途
作者在 Docker 中自托管 n8n,注册为 MCP 服务器,并使用 Claude 自动构建了三个工作流,消除了手动绘图并降低了配置错误。
问题
Automating workflow creation in n8n via Claude while self-hosting the platform, avoiding manual canvas construction and handling environmental pitfalls.
结果
Three production‑ready workflows built entirely by Claude, eliminating manual canvas work and reducing configuration errors.
工作流
- Register n8n Docker container with MCP server
- Configure .claude.json to point to local n8n instance
- Use Claude to: get_sdk_reference, search_nodes, create_workflow_from_code, update_workflow(operations)
- Iteratively build and test workflows
- Deploy and monitor workflows
证据
I ran n8n in Docker on my own machine, registered it with Claude Code as an MCP server, and then built three real workflows by describing them to the agent, which created and edited the nodes programmatically.
Action nodes silently clobber $json.
n8n in Docker cannot reach your host's Ollama at localhost.
- 记录日期: 2026-09-06T10:21:55.141Z