N
N8n MCP Server
作者 @Lars-FivMo
MCP server exposing n8n workflow automation to Claude
创建于 3/9/2026
更新于 5 days ago
README
Repository documentation and setup instructions
n8n-mcp-server
A Model Context Protocol (MCP) server that exposes n8n workflow automation as tools for Claude.
Tools
| Tool | Description |
|------|-------------|
| list_workflows | List all n8n workflows |
| get_workflow | Get details of a specific workflow |
| execute_workflow | Execute a workflow by ID |
Setup
npm install
Usage
Register with Claude Code:
claude mcp add n8n --scope user \
-e N8N_BASE_URL=http://localhost:5678 \
-e N8N_API_KEY=<your-key> \
-- node /path/to/n8n-mcp-server/server.js
Configuration
| Environment Variable | Default | Description |
|---|---|---|
| N8N_API_KEY | — | n8n API key (Settings → API → API Keys) |
| N8N_BASE_URL | http://localhost:5678 | n8n instance URL |
License
快速设置
此服务器的安装指南
安装包 (如果需要)
npx @modelcontextprotocol/server-n8n-mcp-server
Cursor 配置 (mcp.json)
{
"mcpServers": {
"lars-fivmo-n8n-mcp-server": {
"command": "npx",
"args": [
"lars-fivmo-n8n-mcp-server"
]
}
}
}