Templates / Expose workflow management tools over an MCP server using the n8n Public API

Expose workflow management tools over an MCP server using the n8n Public API

Ready for 3.0

by Giovanni Ruggieri ✓ · 47 views · created 2026-08-10 · DevOps, 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 67 nodes and runs when an MCP client calls one of its tools (plus 1 other trigger). It uses only n8n's built-in nodes.

How it runs

Trigger: When an MCP client calls one of its tools (plus 1 other trigger).

  1. Config (Edit Fields (Set)): sets 2 fields: host, api_key
  2. Parse Payload (Code): runs custom JavaScript code
  3. Execution Data: uses Execution Data
  4. Operation (Switch): routes items into 16 branches
  5. GET Workflows List (HTTP Request): calls an HTTP API
  6. Build Search Queries (Code): runs custom JavaScript code
  7. GET Workflow By Id (HTTP Request): calls an HTTP API
  8. GET Workflow For Node Lookup (HTTP Request): calls an HTTP API
  9. Sanitize Create Payload (Code): runs custom JavaScript code
  10. Fetch Executions (HTTP Request): calls an HTTP API

…plus 39 more steps. See the full node list below.

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 (10)

From the author

Quick overview This workflow exposes an MCP (Model Context Protocol) server endpoint that lets an MCP client manage workflows and executions in an n8n instance via the n8n Public API, including searching, reading, creating, updating, activating/deactivating,…

Excerpt from Giovanni Ruggieri'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.