n8n MCP Community

io.github.drzamarian由 GitHub 账号 drzamarian 发布v0.3.1更新于 Oct 24, 2026

A security-focused MCP server for self-hosted n8n Community Edition.

概览

AI 生成的概览

面向自建 n8n 社区版的安全型 MCP 服务器,让 AI 助手管理工作流、执行记录、凭据、标签、用户和诊断信息。

可以做什么
  • 列出、读取、创建、更新、对比、归档、激活和删除工作流,并可修改单个节点
  • 列出并查看执行记录,以及重试、停止或删除执行
  • 创建、读取、更新、测试和删除凭据,并查找凭据被引用的位置
  • 管理标签和用户,包括邀请成员或管理员
  • 执行健康检查、洞察摘要、安全审计、工作流搜索、节点类型清点和离线节点文档查询
适用场景
适合自建 n8n 社区版实例的用户,希望助手通过 Public API 查看、搭建或调试工作流并管理实例对象,且默认以只读方式运行。
运行要求
通过 npm 以 stdio 在本地运行(需 Node.js 22 或 24),或作为 Claude Desktop 的 MCPB 扩展安装。需要 N8N_API_URL 提供 n8n 基础地址,N8N_API_KEY 提供专用 n8n Public API 密钥,N8N_MCP_MODE 选择只读、写入或不安全模式。需要能访问 n8n 主机的网络。
安装前请注意
API 密钥决定上游权限,应使用最小权限的专用密钥。写入和不安全模式允许创建、修改、激活、重试和永久删除工作流、执行、凭据、标签和用户;不安全模式是破坏性工具唯一的服务端授权关卡。对非回环地址使用明文 HTTP 需设置 N8N_ALLOW_INSECURE_HTTP=1,会使密钥和数据在传输中暴露。凭据测试可能联系外部服务。

安装

在 SourceWeft 中

  1. 打开 控制台中的 n8n MCP Community,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

n8n MCP Community

[n8n-mcp-community MCP server]

A security-focused Model Context Protocol server for self-hosted n8n Community Edition

Give your AI client 44 tools for self-hosted n8n Community Edition. Manage workflows, nodes, runs, credentials, tags, users, and diagnostics. No paid n8n features. The server makes no external AI calls.

[Install with npm] [Download MCPB] [Read the docs]

Install

You need Node.js 22 or 24, your n8n URL, and an n8n API key.

Install

bash
npm install --global n8n-mcp-community@latest

--global installs the command once. Use npx below if you do not want a global install.

Connect

json
{  "mcpServers": {    "n8n-community": {      "command": "n8n-mcp-community",      "env": {        "N8N_API_URL": "https://n8n.example.com",        "N8N_API_KEY": "replace-with-a-dedicated-api-key",        "N8N_MCP_MODE": "read-only"      }    }  }}

Restart your client. You should see 44 tools, 5 resources, and 4 prompts.

If the client cannot find the command, run command -v n8n-mcp-community on macOS/Linux or where n8n-mcp-community on Windows. Put that full path in "command".

Want no global install? Copy this command into the client configuration shown in the full guide:

bash
npx --yes n8n-mcp-community@latest

Want the Claude Desktop app flow? Use the MCPB below. See the full installation guide for updates, rollback, and checks.

Claude Desktop: install the MCPB (no Node.js needed)

  1. Open the latest GitHub release.
  2. Download the file that ends in .mcpb.
  3. In Claude Desktop, open Settings → Extensions → Advanced settings → Install Extension….
  4. Pick the file. Enter your n8n URL, API key, and mode.

Anthropic's MCPB guide explains the same steps. Our installation guide explains how to check the download.

Install public builds only from npm or the latest GitHub release.

[Animated demo showing installation, connection, and a useful local Introspect finding]

Read the demo transcript.

Why this project

  • Community Edition first. The release surface is designed for self-hosted n8n Community Edition, without presenting paid-only capabilities as available.
  • 44 useful tools, one explicit contract. Every tool has bounded inputs, documented side effects, MCP safety annotations, and contract tests.
  • Safe by default. Read-only mode is the default. You choose when to allow writes or the full tool set.
  • Deterministic Introspect. n8n_introspect runs a local 23-rule engine; it does not execute workflows, call an agent, or contact an external model.
  • Surgical node updates. n8n_update_node changes one validated node path while preserving the rest of the workflow and disclosing the Public API's non-atomic limitation.
  • Truthful discovery. n8n_list_node_types reports only types observed in accessible workflows. It does not claim to be a complete installed catalog.
  • Data minimization. Credential values, raw execution values, pin data, and static workflow data are not returned by the generic public tools.
See verification evidence

Current verification

The current source candidate has been verified with:

  • exactly 44 tools, 5 resources, and 4 prompts over real stdio;
  • 320 passing tests locally on Node.js 24.21.0; CI and release gates require the pinned Node.js 22.23.1 and 24.18.0 matrix;
  • zero findings from Gitleaks, Semgrep, Trivy, and both project-root production/full npm audit runs; all three source scanners are reproduced in CI, with immutable scanner/action identities;
  • a separate no-override consumer install that resolves the patched @hono/node-server 2.x line, requires a zero-finding production audit, and proves the stdio runtime and exact 44/5/4 inventory;
  • a reproducible dependency-license gate covering 187 installed package paths;
  • bounded same-origin HTTP contracts and zero-request policy-denial tests;
  • all 44 compiled tool lifecycles on disposable n8n Community 2.30.5 and 2.30.7 instances with egress isolation, revoked keys, cleanup, and zero residue; and
  • a reviewed offline npm-tarball installation under the project's committed dependency policy, plus a byte-reproducible unsigned MCPB with the same compiled runtime and complete production dependency notices.

Publication proceeds only through the reviewed release procedure: the repository-pinned MCPB signing identity, a human artifact-baseline receipt, tag-scoped protected-environment approval, and an externally signed MCPB handoff verified byte for byte against the reviewed unsigned candidate.

Safety modes

ModeWhat it allowsRequired configuration
Read-onlyRead-only tools onlyDefault, or N8N_MCP_MODE=read-only
WriteRead-only and ordinary mutation toolsN8N_MCP_MODE=write
UnsafeAll tools, including destructive or external-contact operationsN8N_MCP_MODE=unsafe

Selecting unsafe mode is the complete server-side authorization gate for unsafe tools. MCP safety annotations remain accurate so compatible clients can apply their native approval UX, and the n8n API key remains the final upstream permission boundary.

Plain HTTP is accepted automatically only for loopback URLs. A non-loopback HTTP instance additionally requires N8N_ALLOW_INSECURE_HTTP=1, which accepts the risk of exposing the API key and data in transit.

Tool catalog

Every entry links to its complete input, output, endpoint, compatibility, failure, and security reference.

Workflows

ToolModePurpose
n8n_workflows_listRead-onlyList accessible workflows with bounded filters and pagination.
n8n_workflows_getRead-onlyRead one workflow while withholding pin and static data values.
n8n_workflows_createWriteCreate a validated workflow through the Public API.
n8n_workflows_updateWriteGuard and update selected fields while preserving omitted fields.
n8n_update_nodeWriteChange one validated node property with non-atomic concurrency guards.
n8n_workflows_deleteUnsafePermanently delete one workflow.
n8n_workflows_activateUnsafeActivate one workflow.
n8n_workflows_deactivateUnsafeDeactivate one workflow.
n8n_workflows_get_versionRead-onlyRetrieve one retained historical workflow version.
n8n_workflows_get_tagsRead-onlyList tags assigned to a workflow.
n8n_workflows_update_tagsWriteReplace a workflow's complete tag assignment.
n8n_workflows_archiveUnsafeArchive one workflow.
n8n_workflows_unarchiveUnsafeRestore one archived workflow.
n8n_workflows_diffRead-onlyCompare nodes and connections without returning raw values.

Executions

ToolModePurpose
n8n_executions_listRead-onlyList execution metadata with value-free data-presence summaries.
n8n_executions_getRead-onlyRead one execution's metadata without returning workflow payloads.
n8n_executions_deleteUnsafePermanently delete a saved execution.
n8n_executions_retryUnsafeRetry an eligible saved execution.
n8n_executions_stopUnsafeStop one stoppable execution and bind identity from validated input.

Credentials

ToolModePurpose
n8n_credentials_createWriteCreate a credential without returning its values.
n8n_credentials_deleteUnsafePermanently delete one credential.
n8n_credentials_schemaRead-onlyRead the public schema for a credential type.
n8n_credentials_listRead-onlyList credential metadata verified on n8n 2.30.5 and 2.30.7.
n8n_credentials_getRead-onlyRead one credential's public metadata.
n8n_credentials_updateWriteUpdate credential metadata or values without echoing secrets.
n8n_credentials_testUnsafeTest a stored credential, potentially contacting its external service.
n8n_credentials_usageRead-onlyFind exact credential-ID references in one bounded workflow page.

Tags

ToolModePurpose
n8n_tags_listRead-onlyList workflow tags.
n8n_tags_getRead-onlyRead one tag.
n8n_tags_createWriteCreate a tag with the live 1–24 character bound.
n8n_tags_updateWriteRename a tag with the live 1–24 character bound.
n8n_tags_deleteUnsafePermanently delete one tag.

Users

ToolModePurpose
n8n_users_listRead-onlyList users visible to the API key.
n8n_users_getRead-onlyRead one user by stable ID or exact email.
n8n_users_createUnsafeInvite a member or admin.
n8n_users_deleteUnsafeDelete one API-eligible user without unsupported transfer claims.

Diagnostics and instance metadata

ToolModePurpose
n8n_healthRead-onlyPerform a bounded same-origin health check.
n8n_insights_summaryRead-onlyRead the official insights summary with optional date filters.
n8n_audit_generateUnsafeGenerate n8n's instance security audit.
n8n_search_workflowsRead-onlySearch one workflow page locally by name, node type, or tag.
n8n_get_node_docsRead-onlyRead one of four immutable offline core-node references.
n8n_list_node_typesRead-onlyInventory node types observed in bounded accessible workflow pages.
n8n_introspectRead-onlyRun deterministic local workflow and execution diagnostics.
n8n_community_packages_listRead-onlyList installed community-package metadata without mutation paths.

Resources and prompts

The server also exposes five static resources:

  • n8n://usage-guide
  • n8n://node-docs/webhook
  • n8n://node-docs/code
  • n8n://node-docs/http-request
  • n8n://node-docs/if

Four prompts guide safe workflow creation, debugging, optimization, and credential management: create-workflow, debug-workflow, optimize-workflow, and manage-credentials.

Security model in one minute

  • The server uses local stdio; it does not expose an inbound HTTP listener.
  • Connected requests are same-origin and limited to the configured n8n host.
  • Redirects are rejected; request and response bodies are bounded to 2 MiB.
  • Generic output is validated, sanitized, bounded to 256 KiB, and wrapped as { "data": ..., "redacted": boolean, "untrusted": true }.
  • Raw credential values and generic execution payload values are never returned.
  • n8n_introspect uses fixed local rules and has no external-model code path.
  • Security controls reduce risk; they do not make untrusted n8n content safe to execute or authorize broader API-key permissions.

Read the complete security model and use SECURITY.md to report a vulnerability privately.

Documentation

Development

bash
npm cinpm run verify:contributornpm run sbom > sbom.cdx.json

npm run verify:contributor runs the complete keyless contributor gate, including formatting, dependency licenses/notices, strict TypeScript, all tests, the compiled runtime, and documentation inventory parity. See CONTRIBUTING.md before opening a change.

Scope and non-affiliation

This project is not affiliated with, endorsed by, or sponsored by n8n GmbH. “n8n” is used only to identify compatibility with the n8n product and Public API. The project does not redistribute the n8n-nodes-base catalog and does not use browser cookies, interactive session routes, or runtime package downloads to construct one.

The v0.3.x surface intentionally excludes arbitrary workflow execution, credential/workflow transfer, folders, data tables, beta evaluation endpoints, and execution annotations. See the roadmap for the annotation proposal retained outside the release target.

License and maintainer

The project is released under the MIT License. Third-party dependencies retain their own licenses.

Created and maintained by Dr. Walter Zamarian Jr..

来源:README.md,提交 fd2185e

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

2
  1. v0.3.1最新Oct 4, 2026
  2. v0.3.0Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分