n8n MCP ServerΒΆ

git clone --depth=1 https://github.com/leonardsellem/n8n-mcp-server
cd n8n-mcp-server
npm install
npm run build
cp .env.example .env

Edit .env:

N8N_API_URL=http://localhost:5678/api/v1
N8N_API_KEY=<your_n8n_api_key>
DEBUG=false
N8N_WEBHOOK_USERNAME=<username>
N8N_WEBHOOK_PASSWORD=<password>

Get <your_n8n_api_key> from n8n:

  1. n8n β†’ Settings β†’ n8n API β†’ Create an API Key

  2. Label n8n-mcp-server, Expiration No Expiration β†’ Save

node build/index.js

SettingΒΆ

  • Extension β†’ Cline β†’ Manage MCP Servers β†’ Settings β†’ Configure MCP Servers

    {
      "mcpServers": {
        "n8n-local": {
          "autoApprove": [],
          "disabled": false,
          "timeout": 60,
          "command": "node",
          "args": [
            "C:/Users/User/Usr/Script/n8n-mcp-server/build/index.js"
          ],
          "env": {
            "N8N_API_URL": "http://localhost:5678/api/v1",
            "N8N_API_KEY": "<your_n8n_api_key>",
            "N8N_WEBHOOK_USERNAME": "<username>",
            "N8N_WEBHOOK_PASSWORD": "<password>"
          },
          "transportType": "stdio"
        }
      }
    }