Give your AI agent safe access to the right n8n workflows. This setup lets a bot discover, approve, and run selected flows while you stay in control. It is ideal for teams that want AI help without risking random or outdated automations.
Under the hood, an MCP server in n8n exposes simple tools to the agent. A search step pulls workflows from your n8n instance by tag. A Redis list acts as the approved pool so the agent only uses workflows you add. The system also reads each workflow’s input schema from its JSON so parameters are set in the right format. A pass through execute step calls subworkflows without hard coded fields, and a switch routes Add, Remove, List, Search, and Execute actions.
Setup needs an n8n API key, a Redis connection, and an OpenAI key. Tag the workflows you want to expose and add subworkflow triggers with input schema. Expect faster handling of common tasks, fewer run errors, and better control over what the agent can do. Good uses include support triage, data pulls, report runs, and any repeat job an agent can plan and execute.