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
Find in guide
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
- Know your instance URL, installed n8n version and project role. Obtain owner/admin help to enable instance MCP if necessary.
- Check current feature/version requirements. n8n documentation describes newer connection screens separately from older instances; do not assume every deployment has identical menus.
- 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.
| Route / permission | Purpose | Boundary |
|---|---|---|
| Instance MCP authorization | Access MCP-enabled workflows as the user | Review workflow visibility and execution permission |
| Workflow-specific MCP Trigger | Expose selected tools within a workflow | Audit the trigger configuration separately |
| REST API key | Automate documented public API operations | Separate from the MCP token; choose minimum available scopes |
- Enable instance-level MCP with the authorized administrator and copy the generated server URL.
- Connect the client using the supported OAuth or token flow. Never invent a universal n8n cloud MCP address.
- Expose only the intended workflows. Inspect discovery results: previews can have different visibility from full execution access.
- Use a synthetic diagnostic input and inspect the selected workflow/version before approving a run. Published versus manual execution mode matters.
- 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.
# Custom REST scripts only
N8N_BASE_URL=https://YOUR-N8N-HOST
N8N_API_KEY=replace_with_scoped_rest_keySupported operations & boundaries
| Operation | Route | Important boundary |
|---|---|---|
| Discover workflow previews | Instance MCP | Discovery visibility does not imply execution access |
| Run an exposed workflow | MCP execution tool | Execution may have external side effects |
| Build or edit workflows | Supported version/tools | Review graph and credentials before saving or publishing |
| Inspect workflows programmatically | REST API | Do not equate API management access with a chat connector |
Make a bounded first request
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.
- MCP
https://YOUR-N8N-HOST/mcp-server/httpInstance-generated MCP address. Replace the hostname using connection details from your own instance.
API reference for https://YOUR-N8N-HOST/mcp-server/http (opens in a new tab) - GET
/api/v1/workflowsRead workflow metadata through the public REST API; follow the current API reference for parameters.
API reference for /api/v1/workflows (opens in a new tab)
A practical workflow
- Design a read-only status report: define the exact source system, reporting window and output schema before opening the workflow.
- Inspect every node and credential in the selected workflow. Flag HTTP requests, sends, database mutations and nested workflows for review.
- Run a duplicate or diagnostic workflow with synthetic data and no production destinations. Verify a known fixture produces the expected fields.
- Before a real execution, preview the workflow ID, execution mode, input and expected external effects. Obtain approval for the run, not merely the connection.
- 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.
| Boundary | Required context |
|---|---|
| Required inputs | Instance hostname and version; Project/workflow ID; Execution mode; Synthetic or approved input; Expected external effects |
| Approval required | Executing any workflow with external effects; Editing credentials, graph, activation or publication; Exposing additional workflows |
| Stop conditions | Unknown node effects; Production credentials in a purported sandbox; Ambiguous prior execution outcome |
| Return to the user | Workflow ID/version/mode; Planned versus actual effects; Execution ID and state; Failures and whether retry is safe |
- Discover tools and inspect workflow exposure.
- Read workflow graph and credential references without extracting secrets.
- 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
- Revoke the relevant MCP client or rotate its access token in instance settings.
- Delete unneeded REST keys separately and remove unused workflow exposure.
- 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.
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.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 sourceProvider source and releases; review licensing and the version matching your instance.
References used in this guide
- Instance MCP setup and version caveats (opens in a new tab)
- Public API authentication (opens in a new tab)
- Workflow API reference (opens in a new tab)
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