n8n MCP Server

io.github.RPGMais由 GitHub 账号 RPGMais 发布v2.0.2更新于 Oct 24, 2026

The most complete MCP server for n8n — 43 tools for workflows, data tables, and more.

概览

AI 生成的概览

本地 MCP 服务器,将助手连接到 n8n 实例,提供 43 个工具来管理工作流、执行记录、数据表、标签、凭据、用户等。

可以做什么
列出、查看、创建、更新、删除、启用、停用并执行工作流,读取或替换其标签。列出、查看和删除执行记录。创建和查询数据表,插入、更新、upsert 或删除行,更新和删除支持试运行。管理标签、凭据(创建、删除、查询 schema)、用户、变量和企业版项目。通过 webhook 地址触发工作流,生成安全审计,并执行健康检查。
适用场景
适合已运行 n8n、希望助手在对话中创建、修改、运行或清理工作流及其执行记录,或操作 n8n 数据表和实例管理而无需打开 n8n 界面的场景。
运行要求
通过 npx 在本地运行,需要 Node.js。需要可访问的 n8n 实例地址,配置在 N8N_BASE_URL(默认 n8n API 密钥,配置在 N8N_API_KEY,可在设置中的 n8n API 页面创建。可选 N8N_MAX_RETRIES 和 N8N_TIMEOUT。数据表需 n8n v1.64 及以上;列出用户需实例所有者角色;项目仅限企业版。
安装前请注意
该 API 密钥可广泛控制 n8n 实例。许多工具会写入或删除数据:工作流、执行记录、标签、凭据、用户、变量、项目和数据表行都可能被删除,工作流还可被启用或执行,可能触发真实自动化。凭据列表只显示名称和类型,但创建凭据需要提供密钥内容。N8N_BASE_URL 只应指向你信任的实例。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

mcp-n8n

The most complete MCP server for n8n

43 tools · Workflows · Data Tables · Tags · Credentials · Users · Webhooks · Audit

[npm] [License: MIT] [Node.js] [TypeScript] [MCP SDK]

Quick Start · All 43 Tools · Configuration · Contributing


Why mcp-n8n?

Other n8n MCPs cover workflows and executions. mcp-n8n covers everything — including Data Tables, the only MCP to do so.

Featuremcp-n8nleonardsellemilluminareczlonkowski
Workflows (CRUD + execute)10784
Executions3532
Data Tables8———
Tags + Workflow Tags7—5—
Credentials4—3—
Users3—4—
Variables3—3—
Projects (Enterprise)4—4—
Security Audit1—1—
Webhooks11—1
Health Check1——1
Total43123320

Data Tables — full CRUD with filters, search, upsert and dry-run. No other MCP has this.


🚀 Quick Start

Claude Code
bash
claude mcp add --scope user \  -e N8N_BASE_URL=http://localhost:5678 \  -e N8N_API_KEY=your-api-key \  -- n8n npx -y @nextoolsolutions/mcp-n8n
Cursor

Add to ~/.cursor/mcp.json:

json
{  "mcpServers": {    "n8n": {      "command": "npx",      "args": ["-y", "mcp-n8n"],      "env": {        "N8N_BASE_URL": "http://localhost:5678",        "N8N_API_KEY": "your-api-key"      }    }  }}
Claude Desktop

Add to claude_desktop_config.json:

json
{  "mcpServers": {    "n8n": {      "command": "npx",      "args": ["-y", "mcp-n8n"],      "env": {        "N8N_BASE_URL": "http://localhost:5678",        "N8N_API_KEY": "your-api-key"      }    }  }}

Config file location:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
Windsurf

Add to your Windsurf MCP config:

json
{  "mcpServers": {    "n8n": {      "command": "npx",      "args": ["-y", "mcp-n8n"],      "env": {        "N8N_BASE_URL": "http://localhost:5678",        "N8N_API_KEY": "your-api-key"      }    }  }}
VS Code (Copilot)

Add to your VS Code settings.json:

json
{  "mcp": {    "servers": {      "n8n": {        "command": "npx",        "args": ["-y", "mcp-n8n"],        "env": {          "N8N_BASE_URL": "http://localhost:5678",          "N8N_API_KEY": "your-api-key"        }      }    }  }}

Getting your API key

  1. Open your n8n instance
  2. Go to Settings → n8n API
  3. Create a new API key
  4. Copy it into the N8N_API_KEY environment variable

🛠 Tools

Workflows (10)

ToolDescription
n8n_list_workflowsList all workflows with optional filters
n8n_get_workflowGet a workflow by ID (includes nodes, connections, settings)
n8n_create_workflowCreate a new workflow from JSON
n8n_update_workflowUpdate an existing workflow (full replacement)
n8n_delete_workflowPermanently delete a workflow
n8n_activate_workflowActivate a workflow for production
n8n_deactivate_workflowDeactivate a workflow
n8n_execute_workflowTrigger execution with optional input data
n8n_get_workflow_tagsList tags associated with a workflow
n8n_update_workflow_tagsReplace all tags on a workflow

Executions (3)

ToolDescription
n8n_list_executionsList executions with filters (workflow, status, cursor)
n8n_get_executionGet execution status, result data and timing
n8n_delete_executionDelete an execution record

Data Tables (8)

Only available in n8n v1.64+. This is the only MCP server with Data Tables support.

ToolDescription
n8n_list_datatablesList all data tables with filtering and sorting
n8n_create_datatableCreate a table with typed columns (string, number, boolean, date, json)
n8n_get_datatableGet table metadata (columns, name, ID)
n8n_get_datatable_rowsQuery rows with filter, full-text search, sorting and pagination
n8n_insert_datatable_rowsInsert one or more rows
n8n_update_datatable_rowsUpdate rows matching a filter (supports dry-run)
n8n_upsert_datatable_rowUpdate if exists, insert if not
n8n_delete_datatable_rowsDelete rows matching a filter (supports dry-run)

Tags (5)

ToolDescription
n8n_list_tagsList all tags
n8n_get_tagGet a tag by ID
n8n_create_tagCreate a new tag
n8n_update_tagRename a tag
n8n_delete_tagDelete a tag

Credentials (4)

ToolDescription
n8n_list_credentialsList credentials (names and types only — data is redacted)
n8n_create_credentialCreate a credential (use get_credential_schema first)
n8n_delete_credentialDelete a credential
n8n_get_credential_schemaGet the JSON schema for a credential type

Users (3)

ToolDescription
n8n_list_usersList all users (requires instance owner role)
n8n_get_userGet a user by ID or email
n8n_delete_userDelete a user

Variables (3)

ToolDescription
n8n_list_variablesList all environment variables
n8n_create_variableCreate a key-value variable
n8n_delete_variableDelete a variable

Projects (4) — Enterprise

ToolDescription
n8n_list_projectsList all projects
n8n_create_projectCreate a project
n8n_update_projectRename a project
n8n_delete_projectDelete a project

Audit (1)

ToolDescription
n8n_generate_auditGenerate a security audit (credentials, database, filesystem, nodes)

System (1)

ToolDescription
n8n_health_checkVerify n8n API connectivity

Webhooks (1)

ToolDescription
n8n_trigger_webhookTrigger a workflow via its webhook URL (production or test)

⚙️ Configuration

VariableDefaultDescription
N8N_BASE_URLhttp://localhost:5678Your n8n instance URL
N8N_API_KEY—API key (required)
N8N_MAX_RETRIES3Retry attempts on 429 / 5xx errors
N8N_TIMEOUT30000Request timeout in milliseconds

✨ Features

  • 43 tools — the most comprehensive n8n MCP available
  • Data Tables — full CRUD, the only MCP with this support
  • Automatic retry — exponential backoff on rate limits (429) and server errors (5xx)
  • Configurable timeout — prevent hung requests (default 30s)
  • Zero external dependencies — only MCP SDK + Zod
  • TypeScript strict mode — fully typed, safe, and maintainable
  • Node 16+ compatible — native fetch with http/https fallback

🔒 Security

  • API keys are never hardcoded — loaded exclusively from environment variables
  • Credential data is redacted in list responses (n8n API behavior)
  • All IDs are sanitized with encodeURIComponent to prevent path traversal
  • No sensitive data is logged or exposed in error messages

🏗 Development

bash
git clone https://github.com/NexTools-Solutions/mcp-n8n.gitcd mcp-n8nnpm install
CommandDescription
npm run devRun with tsx (no build step)
npm run buildCompile TypeScript to dist/
npm startRun compiled version

Project structure

mcp-n8n/├── src/│   ├── index.ts          # MCP server — tool registration and handlers│   └── n8n-client.ts     # HTTP client — API calls, retry, timeout├── dist/                  # Compiled output├── package.json├── tsconfig.json└── README.md

🤝 Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feat/my-feature)
  3. Commit your changes
  4. Push and open a Pull Request

📄 License

MIT — free for personal and commercial use.


Built by NexTool Solutions

If this project helps you, consider giving it a ⭐

来源:README.md,提交 f443f4e

工具

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

版本历史

1
  1. v2.0.2最新Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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