Build a centralized n8n workflow Multi-Component Platform (MCP) server that lets AI agents discover, manage, and execute specialized n8n templates using Redis for state management.
Download this n8n workflow template and start using it instantly.
AI Developers & Prompt Engineers: Those needing a flexible way to turn complex business logic into callable AI tools using n8n. Automation Specialists: Users who want to centralize their n8n workflow library and expose filtered subsets to AI systems. Organizations using Redis: Teams already utilizing Redis for temporary state management within their n8n environment. Users building advanced AI applications: Anyone leveraging n8n templates to create sophisticated, multi-step AI processes.
The AI Agent Workflow Management Server solves the critical problem of providing large language models (LLMs) with reliable, executable, and specialized tools built on robust business logic. Instead of exposing every single n8n workflow, this solution introduces a concept of 'available' workflows stored in Redis memory.
This core n8n workflow acts as a dispatcher. It uses the n8n node to search for candidate workflows (tagged 'mcp'), saves the necessary execution metadata (including input schema parsed from the subworkflow n8n trigger) into Redis, and then allows the AI agent to list, add, remove, and execute these specialized n8n templates. This approach ensures that the agent only uses approved and documented tools, leading to predictable and powerful automation.
This automation is structured around two main entry points: the MCP Server Trigger and the Execute Workflow Trigger.
N8N Workflows MCP Server node acts as the external API endpoint. It defines five crucial tools (Add, Remove, List, Search, Execute), all of which internally call the core logic of this n8n workflow via the When Executed by Another Workflow n8n trigger.Get Memory n8n node.Operations n8n node routes the flow based on the requested action (e.g., addWorkflow, executeWorkflow).addWorkflow or searchWorkflows, the workflow uses the n8n node to fetch all workflows tagged 'mcp' in the instance. The Simplify Workflows n8n node then parses the workflow's JSON to extract the input schema defined in its Subworkflow n8n trigger, adding this critical parameter information to the tool description.executeWorkflow, the system first checks if the requested workflow ID is present in the Redis 'available' list. If confirmed, the Execute Workflow with PassThrough Variables n8n node runs the target n8n workflow ID, passing the agent-provided parameters implicitly through the data stream.To deploy this comprehensive n8n workflow template, follow these steps:
Get MCP-tagged Workflows n8n node. This is essential for the searchWorkflows functionality to discover candidate n8n templates.Get Memory and Store In Memory n8n nodes. This Redis connection is mandatory for tracking which workflows are currently 'available' to the agent.n8n node) and utilize an Execute Workflow Trigger (Subworkflow Trigger) with the input schema defined. N8N Workflows MCP Server (MCP Trigger): This n8n trigger establishes the webhook endpoint for the Multi-Component Platform server, defining the entry point for AI clients and exposing the built-in toolWorkflow nodes.
When Executed by Another Workflow (Execute Workflow Trigger): The internal trigger used to receive commands from the various toolWorkflow nodes within this n8n workflow. It receives operation, workflowIds, and parameters data.
n8n node (Get MCP-tagged Workflows): Connects via the n8n API to query and retrieve a list of existing n8n workflows in the instance, filtered specifically by the tag 'mcp'.
Simplify Workflows (Set node): A critical n8n node that transforms the raw workflow data into a simplified tool format, meticulously extracting the input schema parameters from the target workflow's JSON to assist the AI in proper parameter formatting.
Redis node (Store In Memory / Get Memory): Used for persistent state management. It stores the array of currently 'available' tools under the key mcpn8ntools.
Operations (Switch node): Directs the flow based on the requested operation (addWorkflow, removeWorkflow, listWorkflows, etc.) received from the internal n8n trigger.
Build a powerful Google Drive MCP server using n8n to enable AI agents to search, download, and read complex file contents (PDF, CSV, image, audio) via a single n8n workflow.

Build a powerful, secure GitHub Model Context Protocol (MCP) server using this ready-to-use n8n workflow template. Integrate AI agents with GitHub tasks.

Deploy a robust FileSystem MCP server using this powerful n8n workflow. Enable AI agents to securely list, read, write, and manage files on your host machine.

Automate secure PostgreSQL CRUD operations using an AI agent server built with an n8n workflow. This n8n template utilizes parameterized queries and the n8n node structure to prevent SQL injection.

Use this advanced n8n workflow to build a custom Qdrant Vector Store MCP server. Leverage the n8n node ecosystem to add Group Search and Recommendation APIs for specialized AI agents.


Freelance consultant based in the UK specialising in AI-powered automations. I work with select clients tackling their most challenging projects. For business enquiries, send me an email at [email protected] LinkedIn: https://www.linkedin.com/in/jimleuk/ X/Twitter: https://x.com/jimle_uk







































