Data as of

n8n MCP Server for VS Code: Setup & Config

n8n MCP Server lets VS Code manage workflows and inspect or control executions in an n8n instance.

What you can do with n8n in VS Code

Pick it for workflow lifecycle controls, execution inspection, and webhook triggers against your n8n instance.

  • Create and update n8n workflows from an AI assistant.
  • Run workflows and inspect their execution results.

Before you start: n8n in VS Code

  • Node.js 20 or newer
  • An n8n instance with API access enabled
  • The globally installed @leonardsellem/n8n-mcp-server package
  • An n8n API key

Install with npm install -g @leonardsellem/n8n-mcp-server before using this executable. N8N_WEBHOOK_USERNAME and N8N_WEBHOOK_PASSWORD are needed only for webhook tools. Source builds and Docker are documented alternatives.

n8n VS Code configuration

  1. Choose VS Code configuration scope

    For n8n MCP Server, open Workspace: .vscode/mcp.json. Merge into servers; preserve existing inputs.

  2. Add n8n MCP Server to VS Code

    Use the n8n-mcp-server entry below in servers. Keep n8n MCP Server's documented stdio connection fields and your other VS Code entries.

  3. Check n8n MCP Server in VS Code

    n8n MCP Server: Start in VS Code’s MCP controls; inspect output and trust prompts.

Config file · Workspace: .vscode/mcp.json

JSON
{
  "servers": {
    "n8n-mcp-server": {
      "type": "stdio",
      "command": "n8n-mcp-server",
      "args": [],
      "env": {
        "N8N_API_URL": "<Full n8n API URL including /api/v1>",
        "N8N_API_KEY": "<n8n API key with appropriate permissions>"
      }
    }
  }
}

n8n tools available to VS Code

n8n's stored tool list documents 12 tools; compare it with VS Code's connected tool list, because the stored list is not a live check.

workflow_list

Look for workflow_list among VS Code's agent-mode tools after starting n8n through the MCP controls.

Enumerate workflows in the connected n8n instance.

workflow_get

Look for workflow_get among VS Code's agent-mode tools after starting n8n through the MCP controls.

Read one workflow’s configuration and details.

workflow_create

Look for workflow_create among VS Code's agent-mode tools after starting n8n through the MCP controls.

Create a workflow definition.

workflow_update

Look for workflow_update among VS Code's agent-mode tools after starting n8n through the MCP controls.

workflow_delete

Look for workflow_delete among VS Code's agent-mode tools after starting n8n through the MCP controls.

workflow_activate

Look for workflow_activate among VS Code's agent-mode tools after starting n8n through the MCP controls.

workflow_deactivate

Look for workflow_deactivate among VS Code's agent-mode tools after starting n8n through the MCP controls.

Disable a workflow.

execution_run

Look for execution_run among VS Code's agent-mode tools after starting n8n through the MCP controls.

Start a workflow through the n8n API.

run_webhook

Look for run_webhook among VS Code's agent-mode tools after starting n8n through the MCP controls.

Trigger a named workflow through its webhook.

execution_get

Look for execution_get among VS Code's agent-mode tools after starting n8n through the MCP controls.

execution_list

Look for execution_list among VS Code's agent-mode tools after starting n8n through the MCP controls.

execution_stop

Look for execution_stop among VS Code's agent-mode tools after starting n8n through the MCP controls.

n8n: full stored tool descriptions

Troubleshooting n8n in VS Code

  • Make n8n-mcp-server available in the workspace, container, or remote environment hosting n8n MCP Server. Start through VS Code's MCP controls; inspect output and trust prompts.
  • For n8n MCP Server, keep N8N_API_KEY, N8N_API_URL out of version control; VS Code documents input variables and secret handling.
  • n8n MCP Server uses stdio here: VS Code must keep the configured process running; protocol output belongs on stdout and diagnostics on stderr.
  • Known limitation: Requires an API-enabled n8n instance and suitable API credentials.
  • Known limitation: Webhook use needs a configured workflow and Basic Authentication credentials.
  • Known limitation: The README describes part-time maintenance and a search for co-maintainers.
  • General VS Code troubleshooting lives in the /clients/vscode guide.

n8n MCP Server — details. VS Code guide

Frequently asked questions

For n8n MCP Server, edit workspace .vscode/mcp.json. VS Code requires servers rather than mcpServers; preserve the displayed type on each entry.