Data as of

n8n MCP Server for Windsurf: Setup & Config

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

What you can do with n8n in Windsurf

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

  • Activate or deactivate existing automations.
  • Trigger a Basic-Auth-protected n8n webhook by workflow name.

Before you start: n8n in Windsurf

  • 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 Windsurf configuration

  1. Choose Windsurf configuration scope

    For n8n MCP Server, open macOS/Linux: ~/.codeium/windsurf/mcp_config.json Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json. Merge into mcpServers; remote endpoints use serverUrl.

  2. Add n8n MCP Server to Windsurf

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

  3. Check n8n MCP Server in Windsurf

    n8n MCP Server: Refresh MCP in Windsurf settings and inspect Cascade’s tools.

Config file · macOS/Linux: ~/.codeium/windsurf/mcp_config.json

Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json

JSON
{
  "mcpServers": {
    "n8n-mcp-server": {
      "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 Windsurf

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

workflow_list

After refreshing n8n in Windsurf settings, check Cascade's tool list for workflow_list.

workflow_get

After refreshing n8n in Windsurf settings, check Cascade's tool list for workflow_get.

workflow_create

After refreshing n8n in Windsurf settings, check Cascade's tool list for workflow_create.

workflow_update

After refreshing n8n in Windsurf settings, check Cascade's tool list for workflow_update.

Change an existing workflow definition.

workflow_delete

After refreshing n8n in Windsurf settings, check Cascade's tool list for workflow_delete.

Remove a workflow.

workflow_activate

After refreshing n8n in Windsurf settings, check Cascade's tool list for workflow_activate.

Enable a workflow.

workflow_deactivate

After refreshing n8n in Windsurf settings, check Cascade's tool list for workflow_deactivate.

execution_run

After refreshing n8n in Windsurf settings, check Cascade's tool list for execution_run.

run_webhook

After refreshing n8n in Windsurf settings, check Cascade's tool list for run_webhook.

execution_get

After refreshing n8n in Windsurf settings, check Cascade's tool list for execution_get.

Inspect details for a specific workflow run.

execution_list

After refreshing n8n in Windsurf settings, check Cascade's tool list for execution_list.

List runs associated with a workflow.

execution_stop

After refreshing n8n in Windsurf settings, check Cascade's tool list for execution_stop.

Stop an execution that is currently running.

n8n: full stored tool descriptions

Troubleshooting n8n in Windsurf

  • Check n8n-mcp-server on the machine running Windsurf's MCP integration for n8n MCP Server; refresh MCP and inspect Cascade's tools.
  • Check N8N_API_KEY, N8N_API_URL for n8n MCP Server; do not bypass a Windsurf permission error with a broad administrator token.
  • n8n MCP Server uses stdio here: Windsurf 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 Windsurf troubleshooting lives in the /clients/windsurf guide.

n8n MCP Server — details. Windsurf guide

Frequently asked questions

Windsurf reads n8n MCP Server under mcpServers in ~/.codeium/windsurf/mcp_config.json on macOS/Linux; Windows uses %USERPROFILE%\.codeium\windsurf\mcp_config.json.

Windsurf's n8n-mcp-server example uses stdio.

n8n MCP Server's Windsurf configuration invokes n8n-mcp-server.

Windsurf's n8n MCP Server example references N8N_API_KEY, N8N_API_URL. Check these names if startup or authentication fails; the example alone does not distinguish required from optional values.

n8n MCP Server's stored list contains 12 tools, including workflow_list, workflow_get, workflow_create. Compare those names with Windsurf's connected tool list; the stored list is not a live check.

Configure Basic Authentication on the n8n webhook node and set N8N_WEBHOOK_USERNAME and N8N_WEBHOOK_PASSWORD on the server.

Yes. Tools retrieve a run, list runs for a workflow, and stop a running execution.