N8n Extending MCP Official
n8nOfficialPublished by n8n
- Skill
- Tool integration
- Automation and integrations
- Apache-2.0
- Low risk
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides a structured approach for creating custom n8n workflows that function as tools for your coding agent. It covers two primary use cases: wrapping n8n REST API capabilities not natively exposed by the MCP, and exposing general-purpose workflows—such as third-party API integrations or internal business logic—as reusable agent tools. By following this protocol, you ensure that your agent can discover and invoke these workflows as if they were native tools, effectively bridging gaps in functionality and codifying recurring tasks for future sessions.
What it does
- Wraps n8n REST API endpoints to provide missing MCP functionality like folder deletion or credential creation.
- Exposes custom business logic or third-party API integrations as callable tools for the agent.
- Provides a standardized pattern for workflow discovery and invocation via the MCP.
- Guides the documentation of new tools within the agent's context files for persistent availability.
- Ensures secure credential management by enforcing the use of n8n credentials over plain text.
- Establishes a validation and testing lifecycle for custom tool workflows.
When to use it
- When you need an n8n API capability that is not currently supported by the native MCP tools.
- When you want to codify a recurring task or complex logic so the agent can invoke it repeatedly.
- When the agent requires access to a private system or third-party service not natively integrated.
- When you want to avoid re-explaining or re-implementing a specific process in future agent sessions.
Advantages
- Extends agent capabilities without waiting for native MCP updates.
- Reduces repetitive manual tasks by codifying them into reusable workflows.
- Improves agent efficiency by providing persistent, discoverable tools.
- Maintains security by leveraging standard n8n credential management.
- Enables seamless integration with internal systems and private APIs.
Usage examples
- “I need to delete a folder in n8n, but the MCP doesn't have a tool for it. Can you help?”
- The agent identifies the missing capability, proposes building a wrapper workflow using the n8n REST API, and guides you through the creation and documentation process.
- “Build a tool for my agent that fetches data from our internal CRM and formats it for a report.”
- The agent creates a workflow with an Execute Workflow Trigger, implements the CRM API call, and updates your agent's context file so it can invoke the tool by name.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/n8n-io/n8n-extending-mcp-official/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip n8n-extending-mcp-official.zip -d .agents/skills
Documentation by n8n
<!-- TEMPORARY: update whenever n8n mcp capacities are added. a lot of listed functionalities missing are coming soon -->
n8n Extending MCP
Any n8n workflow with MCP access enabled becomes a tool the coding agent can call by name. Two common cases:
Wrap n8n capabilities the MCP doesn't expose. The MCP covers workflow CRUD, validation, execution, data tables, credential listing, execution search, folder create/rename/move and folder/project listing, tag listing and attach/detach. Still missing: folder deletion, project create/rename, tag rename/delete, instance metadata, credential creation. Build a workflow that hits the n8n API and exposes the result as an agent tool.
Expose a general-purpose workflow as a tool. A workflow that has nothing to do with n8n itself (calls a third-party API, runs internal business logic, looks something up in a private system) can be MCP-callable. Lets the agent invoke real operations during a coding session.
The MCP calls your workflow as if it were a native tool: input from the Execute Workflow Trigger, output from the workflow's last node.
When to reach for this
Case 1 (wrap n8n capability):
Folder delete, and project create/rename: no MCP tool. Folder create/rename/move and moving workflows between folders now have MCP tools (
create_folder,update_folder,move_workflows_to_folder), on a registered instance; delete still needs the REST API.Tag rename/delete: the MCP lists tags (
list_workflow_tags) and attaches/detaches them (update_workflowaddTags/removeTags, auto-creating unknown names), but can't rename or delete tag entities. REST API exists for those.Instance metadata (limits, plan info, configured integrations): no MCP tool.
Credential creation: REST API exists (
POST /credentials), no MCP tool yet.Any n8n API operation the MCP doesn't natively expose.
Case 2 (general agent tool):
A recurring agent task you'd rather codify than re-explain (lookup, format, send).
An action against a system the agent doesn't have direct access to (private API, internal service, third-party integration).
Anything you want a future session to invoke without re-deriving the implementation.
Don't reach for this for:
One-off questions, ask the user directly.
Things the MCP already exposes natively.
Non-negotiables
Ask the user before building. This creates a workflow on their instance, with credentials. They need to OK it explicitly.
Credentials via credential, never text field. Same rule as everywhere else in n8n. See
n8n-credentials-and-security-official.
Protocol
Search for existing wrappers first.
search_workflows({ tags: ['tool'] })and a capability keyword search. If something matches, use it instead of duplicating.For case 1, build as a stateless, queryable utility. Takes input, calls n8n's API, returns the result. No side effects. Case 2 may legitimately have side effects (sending, writing); name them in the tool description.
Offer to edit the agent's context file yourself (CLAUDE.md, AGENTS.md, GEMINI.md, whatever the user's agent reads on session start) to add an entry for the new tool. You have Edit/Write tools, so there's no reason to make the user paste a snippet manually. Ask first since it's their config file, then edit it directly when they say yes.
The pattern, end to end
1. User asks for a capability (missing MCP feature, or a workflow they want
the agent to be able to invoke).
2. You: "I can build a workflow that exposes this as a tool the MCP can call.
Want me to create it?"
3. User: yes.
4. You build the workflow:
- Trigger: Execute Workflow Trigger with declared inputs.
- Body: whatever logic the tool needs (HTTP Request to n8n's API, a
third-party call, internal computation).
- Output: structured response.
5. Validate, test, publish.
6. Ask the user if you can add an entry for this tool to their agent context
file (CLAUDE.md / AGENTS.md / etc.) so future sessions know to search for
it by name. Edit the file directly when they say yes.
7. The workflow is immediately callable: agent-created workflows have `availableInMCP: true` set by default.Common case-1 wrappers (missing MCP capabilities)
Most common patterns, by usefulness. Case 2 (general agent tools) is whatever your project needs, no canonical examples.
n8n REST API reference: https://docs.n8n.io/api/api-reference/. Start here for any case-1 wrap. Find the endpoint, then wrap it with an HTTP Request node +
n8nApicredential. Self-hosted instances expose this at<instance-url>/api/v1/.
1. Folder delete and project management
The MCP now creates, renames, and moves folders natively (create_folder, update_folder, move_workflows_to_folder), so those no longer need wrapping. Still missing: deleting a folder, and creating/renaming projects. n8n's REST API covers both (Folders endpoint), so a one-time wrap fills the gap.
Tool: delete folder
Input: { projectId: string, folderId: string }
Output: { success: boolean }2. Instance metadata
Version, configured integrations, environment info. Useful for the SessionStart drift check or adapting workflows to instance capabilities.
Tool: get instance info
Input: {}
Output: { version, edition, integrations: [...], limits: {...} }How the agent invokes a tool workflow
The MCP doesn't register each tool-flagged workflow as a separately-named MCP tool. Discovery and invocation are two steps:
Discover via
search_workflows({ query: '<keyword>' }). Workflows with MCP access on returnavailableInMCP: true. Filter for that.Invoke via
execute_workflow({ workflowId, inputs }). Read the input schema first withget_workflow_details. TheExecute Workflow Triggerdefines typed fields.
Output is whatever the workflow's last node returns.
MCP access defaults: Agent-created workflows default to availableInMCP: true. UI-created workflows may default off, in which case the user has to toggle MCP access on in the workflow's settings before it appears in search results. Either way, the user can flip it off later to restrict access.
This is why the agent-context-file snippet (CLAUDE.md / AGENTS.md / etc.) matters. Future sessions don't auto-enumerate tool workflows. The snippet tells them the tool exists by name, so they search for it instead of re-deriving the implementation.
Anti-patterns
| Anti-pattern | What goes wrong | Fix |
|---|---|---|
| Building an MCP-extension workflow without asking the user | Surprise creation of workflows on their instance with credentials | Always ask permission first |
| Not documenting the new tool in the agent's context file | Future sessions don't auto-enumerate tool workflows. Without a hint they'll re-derive the implementation. | Ask the user, then edit CLAUDE.md / AGENTS.md / whichever file their agent reads, directly. Don't make them paste a snippet. |
| Hardcoding the n8n API token in the HTTP Request node | Token leak when the workflow is exported or copied | Use a credential of type n8nApi or appropriate header auth |
| Side-effecting tool with no mention of side effects in its name/description | Agent invokes thinking it's a read, ends up sending real messages or writing real data | Name and describe the side effect explicitly (e.g., Tool: send Slack message). Read-only is the safer default for case-1 wrappers. |
| Wrapper that does bulk or destructive ops (archive, delete) with no dry-run | One bug touches many workflows | Strong explicit opt-in per call, plus a dry-run mode that lists targets without acting |
| Wrapper returns credential values | Token leak via tool output | Return IDs, names, types only. Never the secret. |
| Skipping the validate + verify + test cycle on the wrapper | The "tool" itself is broken, manifests as confusing tool-not-found or empty-response errors | Same lifecycle as any workflow: see n8n-workflow-lifecycle-official |
Files
- ATTRIBUTION.mdAdded by AutoGineer858 B
- LICENSELicence file added by AutoGineer11.0 KiB
- SKILL.md8.5 KiB
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs Node.js
Security
What our scanner noticed· Low risk
- Phrasing that asks for actions without confirmation
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Published by
- n8n
- Publisher
- n8n (Official)
- Source
- n8n-io/skills · skills/n8n-extending-mcp-official · commit 27b6b9f
- Licence
- Apache License 2.0 (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by n8n.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download n8n-extending-mcp-official.zip