Expose workflows as an MCP server for Claude and OpenAI agents
Ready for 3.0What this workflow does
This AI workflow has 36 nodes and runs when an MCP client calls one of its tools (plus 2 other triggers). Along the way it connects OpenAI Chat Model and MCP Client.
How it runs
Trigger: When an MCP client calls one of its tools (plus 2 other triggers).
- Configuration (Edit Fields (Set)): sets 5 fields: workflow_tag, only_published_workflows, operation…
- Workflow runner agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (n8n workflows MCP client); memory: Conversation memory
- Route by operation (Switch): routes items into 5 branches
- Get MCP-tagged workflows (n8n): uses n8n
- Get MCP-tagged workflows for add (n8n): uses n8n
- Split workflow IDs (Edit Fields (Set)): sets or maps fields
- Get available workflows (Data table): get
- Check workflow is available (Data table): get
- Format workflow profiles (Edit Fields (Set)): sets 4 fields: workflowId, name, description…
- Keep only requested workflows (Filter): keeps only the items that match a condition
…plus 15 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (17)
- MCP Server Trigger
@n8n/n8n-nodes-langchain.mcpTrigger - Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Edit Fields (Set)
n8n-nodes-base.set - Switch
n8n-nodes-base.switch - n8n
n8n-nodes-base.n8n - Aggregate
n8n-nodes-base.aggregate - Filter
n8n-nodes-base.filter - If
n8n-nodes-base.if - Data table
n8n-nodes-base.dataTable - Split Out
n8n-nodes-base.splitOut - Execute Sub-workflow
n8n-nodes-base.executeWorkflow - Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - MCP Client Tool
@n8n/n8n-nodes-langchain.mcpClientTool
From the author
Quick overview This workflow exposes selected n8n workflows as Model Context Protocol (MCP) tools, letting MCP clients (like Claude Desktop) discover, allowlist, and execute tagged workflows. It uses the n8n API to list workflows and an n8n Data Table to…