Generate n8n workflows from chat using MCP tools, Claude and Postgres
Describe any automation in plain English. This AI agent builds, validates, and deploys a working n8n workflow into your instance in seconds ā no node dragging, no JSON editing, no guesswork.
šŗ Full setup guide: [https://youtu.be/HMXBInLaUB8?si=Q21gt48omSyzsTGl]
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā šÆ WHO IS THIS FOR? āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā n8n builders who want to generate workflows by chatting instead of configuring every node manually ā Agencies building automations for clients at speed ā Developers who want an AI co-pilot with real n8n knowledge ā Non-technical teams who need to create workflows by describing them in plain language
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā” WHAT MAKES THIS DIFFERENT āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Most AI workflow generators hallucinate node names, guess parameters, and produce broken JSON. This one doesn't.
It uses the official n8n MCP Client Tool node ā natively built into n8n, no community packages required ā to connect to a self-hosted n8n-mcp server (czlonkowski/n8n-mcp, 16k+ GitHub stars). That server holds the complete, structured documentation of 1,396 n8n nodes in a SQLite database with 12ms response time and zero rate limits.
The agent never guesses. It looks everything up first.
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā WHAT IT DOES āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā Accepts plain English prompts via n8n's built-in chat UI ā Looks up exact node type strings ā never assumes from training data ā Validates every node config before building anything ā Runs 3 separate post-build checks: structure, connections, and expression syntax ā Deploys directly to your n8n instance via the REST API ā Returns only the workflow URL + credential checklist ā Remembers conversation history for follow-up edits ā Modifies existing workflows with diff updates, not rebuilds
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā āļø HOW IT WORKS ā STEP BY STEP āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Chat Trigger receives your message and assigns a session ID
Postgres Chat Memory stores conversation history so follow-ups like "change the trigger to a webhook" work naturally without losing context
AI Agent (Claude Sonnet 4.5) reads the system prompt and begins calling MCP tools in strict order:
ā tools_documentation() to load current best practices ā search_nodes() for exact node type strings ā get_node_essentials() for the 10-20 params that matter ā search_templates() to find proven real-world patterns from 2,646 templates ā validate_node_minimal() + validate_node_operation() to pre-validate before building ā validate_workflow() + validate_workflow_connections() validate_workflow_expressions() post-build ā n8n_create_workflow() to deploy live ā n8n_validate_workflow() to confirm deployment
MCP Client Tool (official n8n node, no community packages) connects to the n8n-mcp Docker container on the same Docker network ā all 42 tools exposed, bearer auth secured
Respond To Chat sends only the workflow URL and a credential checklist ā never raw JSON
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā š§ WHAT YOU NEED āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā Self-hosted n8n (Docker) ā n8n-mcp container on the same Docker network (full docker-compose in sticky notes) ā OpenRouter API key (or native Anthropic node) ā Postgres for chat memory ā n8n API key with workflow create permissions ā Bearer token credential for n8n-mcp
No community nodes required. MCP Client Tool is an official built-in node in n8n.
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā š ļø NODES IN THIS WORKFLOW āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā Chat Trigger ā public chat UI, auto session management ā AI Agent (Tools Agent, v3.1) ā 25 iterations, full prompt ā MCP Client Tool (official) ā all 42 tools, bearer auth ā OpenRouter Chat Model ā Claude Sonnet 4.5 ā Postgres Chat Memory ā 10-message window per session ā Respond To Chat ā formatted reply with error fallback
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā š CUSTOMISATION āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā Swap to any LLM via OpenRouter or native Anthropic node ā Adjust Postgres memory window (default: 10 messages) ā Restrict the system prompt to specific workflow categories ā Add a human approval step before deployment ā Deploy n8n-mcp on Railway or any VPS for remote access
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā ļø SELF-HOSTED ONLY āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Requires self-hosted n8n. The n8n-mcp container must be reachable from n8n over HTTP on the same Docker network. Not compatible with n8n Cloud without exposing the MCP server publicly.
Docker Compose.yml and .env files https://docs.google.com/document/d/1qvkJnybhjeS3T2ySKsJ0MZF1rPZYcC1nbxBJjxC6Pqk/edit?usp=sharing
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā š¬ SUPPORT āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Email: salmanmehboob1947@gmail.com LinkedIn: https://www.linkedin.com/in/salman-mehboob-pro/
Related Templates
AI Email Classifier & Auto-Delete for Gmail (SPAM/OFFER Cleaner)
This workflow is designed for freelancers, solopreneurs, and business owners who receive a high volume of irrelevant mes...
Automatic News Summarization & Email Digest with GPT-4, NewsAPI and Gmail
š° AI News Digest Agent: Auto News Summarizer & Email Newsletter Create an intelligent news curation system that automat...
Generate Food Recipes from Gmail & Form Requests with Ollama & Llama 3.2
This n8n template demonstrates how to create an intelligent food recipe assistant that accepts requests via Gmail and we...
š Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments