Templates / Expose workflows as an MCP server for Claude and OpenAI agents

Expose workflows as an MCP server for Claude and OpenAI agents

Ready for 3.0

by Dr. Firas ✓ · 73 views · created 2026-07-21 · Engineering, AI RAG

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What 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).

  1. Configuration (Edit Fields (Set)): sets 5 fields: workflow_tag, only_published_workflows, operation…
  2. Workflow runner agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (n8n workflows MCP client); memory: Conversation memory
  3. Route by operation (Switch): routes items into 5 branches
  4. Get MCP-tagged workflows (n8n): uses n8n
  5. Get MCP-tagged workflows for add (n8n): uses n8n
  6. Split workflow IDs (Edit Fields (Set)): sets or maps fields
  7. Get available workflows (Data table): get
  8. Check workflow is available (Data table): get
  9. Format workflow profiles (Edit Fields (Set)): sets 4 fields: workflowId, name, description…
  10. 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

OpenAI Chat ModelMCP Client

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)

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…

Excerpt from Dr. Firas's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.