Integration handbook

Claude / n8n ยท Documentation-reviewed guide

n8n for Claude

Connect Claude to your n8n instance, discover selected workflows and review the effects of execution before running anything.

Official setup guide (opens in a new tab)
Connection
Instance MCP / REST API
Access
Scoped to your account
Testing
Not account-tested
Contents & search

Connect Claude to n8n

n8n is useful when a conversation should invoke a workflow whose branching, credentials and downstream actions are managed explicitly. Begin with a diagnostic workflow using synthetic input, not a production workflow that sends emails or creates invoices.

There are two distinct surfaces: instance-level MCP and a workflow-specific MCP Server Trigger. The former discovers work exposed by the instance; the latter is designed inside a particular workflow. A public REST API key is another authentication route, not the same credential as MCP authorization.

Before you start

  1. Know your instance URL, installed n8n version and project role. Obtain owner/admin help to enable instance MCP if necessary.
  2. Check current feature/version requirements. n8n documentation describes newer connection screens separately from older instances; do not assume every deployment has identical menus.
  3. Inspect the proposed workflow, its credentials, trigger and downstream destinations before exposing it. A harmless name such as report can hide email or database writes.

Authorization & setup

Use Settings > Instance-level MCP and the connection details generated by your instance. OAuth is the preferred interactive route; scoped MCP access-token configuration is available for appropriate clients.

For independent REST scripts, create a key under Settings > n8n API. Send it as X-N8N-API-KEY, not as a generic bearer token. Scope availability depends on version, so inspect what your instance actually offers.

Permission decisions before connecting
Route / permissionPurposeBoundary
Instance MCP authorizationAccess MCP-enabled workflows as the userReview workflow visibility and execution permission
Workflow-specific MCP TriggerExpose selected tools within a workflowAudit the trigger configuration separately
REST API keyAutomate documented public API operationsSeparate from the MCP token; choose minimum available scopes
Source: Provider authorization reference
  1. Enable instance-level MCP with the authorized administrator and copy the generated server URL.
  2. Connect the client using the supported OAuth or token flow. Never invent a universal n8n cloud MCP address.
  3. Expose only the intended workflows. Inspect discovery results: previews can have different visibility from full execution access.
  4. Use a synthetic diagnostic input and inspect the selected workflow/version before approving a run. Published versus manual execution mode matters.
  5. Record the execution ID, expected output and observed downstream effects. Keep this evidence separate from merely seeing the server in the client.

Local environment for custom code

The hosted connector signs in through the provider; it does not read an environment file from this website. The following placeholders are only for a separate server-side project. Keep .env.local ignored by Git and configure deployment secrets separately. Never use NEXT_PUBLIC_ for these values.

.env.local - placeholders only

ENV
# Custom REST scripts only
N8N_BASE_URL=https://YOUR-N8N-HOST
N8N_API_KEY=replace_with_scoped_rest_key

Supported operations & boundaries

n8n: choose the right operation
OperationRouteImportant boundary
Discover workflow previewsInstance MCPDiscovery visibility does not imply execution access
Run an exposed workflowMCP execution toolExecution may have external side effects
Build or edit workflowsSupported version/toolsReview graph and credentials before saving or publishing
Inspect workflows programmaticallyREST APIDo not equate API management access with a chat connector
Source: Provider capability reference

Make a bounded first request

List a small workflow page via REST

CURL
curl --fail-with-body --get "$N8N_BASE_URL/api/v1/workflows" \
  --data-urlencode "limit=5" \
  --header "X-N8N-API-KEY: $N8N_API_KEY"

Listing workflows does not execute them. Inspect the returned data and pagination cursor. This request is for the public REST API; it does not test MCP authorization or establish that an individual workflow is safe to run.

Endpoint & protocol reference

These are provider API or protocol entry points, not a promise that the same named operation is exposed in every MCP client. Discover the live MCP tool schema before calling it. Follow the linked reference for request bodies, pagination, permissions and current limits.

A practical workflow

  1. Design a read-only status report: define the exact source system, reporting window and output schema before opening the workflow.
  2. Inspect every node and credential in the selected workflow. Flag HTTP requests, sends, database mutations and nested workflows for review.
  3. Run a duplicate or diagnostic workflow with synthetic data and no production destinations. Verify a known fixture produces the expected fields.
  4. Before a real execution, preview the workflow ID, execution mode, input and expected external effects. Obtain approval for the run, not merely the connection.
  5. After execution, inspect status and node output with secrets redacted. A green workflow execution is not proof that every business record contains the intended values.

AI agent playbook

Inspect or invoke one explicitly selected workflow with understood side effects.

Execution contract
BoundaryRequired context
Required inputsInstance hostname and version; Project/workflow ID; Execution mode; Synthetic or approved input; Expected external effects
Approval requiredExecuting any workflow with external effects; Editing credentials, graph, activation or publication; Exposing additional workflows
Stop conditionsUnknown node effects; Production credentials in a purported sandbox; Ambiguous prior execution outcome
Return to the userWorkflow ID/version/mode; Planned versus actual effects; Execution ID and state; Failures and whether retry is safe
Source: Handbook editorial workflow (not a provider guarantee)
  1. Discover tools and inspect workflow exposure.
  2. Read workflow graph and credential references without extracting secrets.
  3. Check execution history for an existing operation before retrying.

Troubleshooting

MCP connects but the workflow cannot run
Likely cause
Visibility, exposure settings and execution authorization are separate.
What to do
Check the specific workflow exposure and project access; do not enable every workflow as a shortcut.
401 / 403REST authentication fails
Likely cause
A REST key, MCP token and OAuth session are different credentials.
What to do
Confirm the route and use the matching credential/header. Inspect version and API availability in the instance.
The workflow ran twice
Likely cause
A retry or ambiguous timeout can trigger a second execution.
What to do
Inspect execution history before retrying. Add an application-level operation key or deduplication guard where appropriate.

Revoke access, costs & maintenance

  1. Revoke the relevant MCP client or rotate its access token in instance settings.
  2. Delete unneeded REST keys separately and remove unused workflow exposure.
  3. Review any workflow you published; revoking a chat connection does not deactivate scheduled workflows.

n8n plan and execution allowances, hosting and downstream service charges remain applicable. The public API can have plan/trial restrictions; confirm current account eligibility before promising a zero-cost setup.

Prompts to get started

Start with read-only questions. Replace placeholders with your own account context; these are examples, not live results.

Audit before execution

PROMPTCopy into your conversation
Inspect [workflow ID] on [instance]. Describe its trigger, credentials, external writes and nested workflows. Do not execute, edit, activate or publish anything. Tell me what information is missing before a safe test.
Controlled execution proposal

PROMPTCopy into your conversation
Prepare a test run for [workflow ID] using this synthetic input: [input]. State execution mode, destinations and expected output. Wait for approval before running it, and return the execution ID and observed effects afterward.

Frequently asked questions

Is an API key required for OAuth MCP?

No. The public REST key is for a separate route. Use the connection method documented by your instance rather than creating unnecessary credentials.

Does disconnecting stop my schedules?

Do not assume so. Review activated/published workflows and their triggers separately from the client authorization.

Is this account-tested or a working connection?

No. Official documentation was reviewed on November 17, 2026. This guide does not connect accounts or execute examples. Validate with your own permissions before adopting it in an agent.

Sources & resources

  • Official repository

    n8n source

    Provider source and releases; review licensing and the version matching your instance.

References used in this guide

Documentation-reviewed guide. Provider facts come from the linked references; workflow recommendations and agent approval boundaries are our editorial guidance. No private account, paid action or end-to-end workflow was tested.

Logos are local SVGs from Simple Icons. Brand marks belong to their respective owners; credits are not an endorsement. No provider screenshots have been copied into this preview.

Icon library & licensing