
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.
概览
本地 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 及以上;列出用户需实例所有者角色;项目仅限企业版。
安装
在 SourceWeft 中
- 打开 控制台中的 n8n MCP Server,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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
Why mcp-n8n?
Other n8n MCPs cover workflows and executions. mcp-n8n covers everything — including Data Tables, the only MCP to do so.
Data Tables — full CRUD with filters, search, upsert and dry-run. No other MCP has this.
🚀 Quick Start
Claude Code
Cursor
Add to ~/.cursor/mcp.json:
Claude Desktop
Add to claude_desktop_config.json:
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:
VS Code (Copilot)
Add to your VS Code settings.json:
Getting your API key
- Open your n8n instance
- Go to Settings → n8n API
- Create a new API key
- Copy it into the
N8N_API_KEYenvironment variable
🛠 Tools
Workflows (10)
Executions (3)
Data Tables (8)
Only available in n8n v1.64+. This is the only MCP server with Data Tables support.
Tags (5)
Credentials (4)
Users (3)
Variables (3)
Projects (4) — Enterprise
Audit (1)
System (1)
Webhooks (1)
⚙️ Configuration
✨ 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
encodeURIComponentto prevent path traversal - No sensitive data is logged or exposed in error messages
🏗 Development
Project structure
🤝 Contributing
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch (
git checkout -b feat/my-feature) - Commit your changes
- 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版本历史
1- v2.0.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分