n8n MCP Server
Provides tools for interacting with an n8n instance's REST API, enabling AI assistants to list, inspect, activate, and deactivate workflows; list, inspect, retry, and stop executions; list credentials and credential schemas; manage tags, users, variables, and projects; and run security audits.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@n8n MCP Server list failed executions from the last 24 hours"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
n8n MCP Server
An MCP (Model Context Protocol) server that lets AI assistants query and manage n8n workflow automation instances via the n8n REST API.
Features
Workflows -- list, inspect, activate, and deactivate workflows
Executions -- list (with date-range filtering), inspect, retry, and stop executions
Credentials -- list credentials and inspect credential schemas
Tags -- list tags and view tags per workflow
Users -- list users and get user details
Variables -- list environment variables
Projects -- list and inspect projects
Audit -- run a security audit on the n8n instance
Related MCP server: n8n MCP Server
Prerequisites
Node.js >= 18
An n8n instance with the REST API enabled
An API key generated in n8n Settings > n8n API
Setup
Clone the repository:
git clone https://github.com/<your-org>/n8n-mcp.git cd n8n-mcpInstall dependencies:
npm installConfigure environment variables:
cp .env.example .envEdit
.envand fill in your n8n instance URL and API key.Build:
npm run build
Usage
With Claude Code
Add the server to your Claude Code MCP configuration (~/.claude.json or project-level):
{
"mcpServers": {
"n8n-api": {
"command": "node",
"args": ["/absolute/path/to/n8n-mcp/dist/index.js"],
"env": {
"N8N_BASE_URL": "https://your-n8n-instance.com",
"N8N_API_KEY": "your-api-key"
}
}
}
}With other MCP clients
Run the server over stdio:
npm startThe server communicates via the MCP stdio transport, so it works with any MCP-compatible client.
Available Tools
Tool | Description |
| List workflows with optional name/tag/status filters |
| Get full workflow details including nodes and connections |
| Activate a workflow |
| Deactivate a workflow |
| Get tags for a workflow |
| List executions with status and date-range filters |
| Get execution details including node-level data |
| Retry a failed execution |
| Stop a running execution |
| List stored credentials (metadata only) |
| Get field definitions for a credential type |
| List all tags |
| List all users |
| Get user details |
| List environment variables |
| List all projects |
| Get project details |
| Run a security audit |
Development
# Build
npm run build
# Run directly
npm startLicense
ISC
Available Tools
52 toolsactivate_workflowA
Activate a workflow so it starts listening for triggers.
Inputs: id (required).
add_project_usersC
Add one or more users to a project with specified roles.
Inputs: id (required), relations (required).
create_credentialA
Create a new credential. Use get_credential_schema first to see required fields for the credential type.
Inputs: data (required), name (required), type (required).
create_data_tableC
Create a new data table with defined columns.
Inputs: name (required), columns (required).
create_projectC
Create a new project.
Inputs: name (required).
create_tagC
Create a new tag.
Inputs: name (required).
create_variableC
Create a new environment variable.
Inputs: key (required), value (required), projectId.
create_workflowC
Create a new workflow. Requires name, nodes array, connections object, and settings object.
Inputs: name (required), nodes (required), settings (required), connections (required).
deactivate_workflowB
Deactivate a workflow so it stops listening for triggers.
Inputs: id (required).
delete_credentialC
Delete a credential by ID.
Inputs: id (required).
delete_data_tableA
Delete a data table and all its rows.
Inputs: id (required).
delete_data_table_rowsC
Delete rows matching filter conditions from a data table.
Inputs: filter (required), dataTableId (required), dryRun, returnData.
delete_executionC
Delete a specific execution by ID.
Inputs: id (required).
delete_projectC
Delete a project by ID.
Inputs: id (required).
delete_tagC
Delete a tag by ID.
Inputs: id (required).
delete_variableC
Delete an environment variable by ID.
Inputs: id (required).
delete_workflowA
Delete a workflow by ID. This also deletes its execution history.
Inputs: id (required).
discoverB
Discover available API capabilities based on the current API key's scopes. Returns resources, endpoints, and operations accessible to this key.
Inputs: include, resource, operation.
generate_auditB
Run a security audit on the n8n instance and return the findings.
Inputs: no named parameters.
get_credential_schemaA
Get the schema/field definition for a specific credential type (e.g. 'slackApi', 'githubApi').
Inputs: typeName (required).
get_data_table_rowsC
Query and retrieve rows from a data table with optional filtering, sorting, search, and pagination.
Inputs: dataTableId (required), limit, cursor, filter, +2 more.
get_executionA
Get information about a specific execution. By default returns metadata only. Use includeData=true for node-level results, with optional filtering via nodeNames and truncateData to manage response size.
Inputs: id (required), nodeNames, includeData, truncateData.
get_execution_tagsC
Get annotation tags for a specific execution.
Inputs: id (required).
get_projectB
Get details of a specific project by ID.
Inputs: id (required).
get_userB
Get details of a specific user by ID.
Inputs: id (required).
get_workflowA
Get full details of a specific workflow by ID, including its nodes and connections.
Inputs: id (required).
get_workflow_tagsB
Get all tags assigned to a specific workflow.
Inputs: id (required).
insert_data_table_rowsC
Insert one or more rows into a data table.
Inputs: data (required), dataTableId (required), returnType.
list_credentialsA
List all credentials stored in n8n (returns metadata only, not secret values).
Inputs: limit, cursor.
list_data_tablesC
List all data tables with optional filtering and sorting.
Inputs: limit, cursor, filter, sortBy.
list_executionsA
List workflow executions. Filter by status or workflow ID. Supports date range filtering via startedAfter/startedBefore (ISO 8601 or YYYY-MM-DD).
Inputs: limit, cursor, status, projectId, +4 more.
list_projectsC
List all projects in the n8n instance.
Inputs: limit, cursor.
list_project_usersC
List all members of a project with their roles.
Inputs: id (required), limit, cursor.
list_tagsC
List all tags used to organize workflows.
Inputs: limit, cursor.
list_usersA
List all users in the n8n instance. Can filter by project to see project members.
Inputs: limit, cursor, projectId, includeRole.
list_variablesB
List all environment variables configured in n8n.
Inputs: limit, state, cursor, projectId.
list_workflowsC
List all workflows in the n8n instance. Supports filtering by name, active status, and tags.
Inputs: name, tags, limit, active, +2 more.
remove_project_userC
Remove a user from a project.
Inputs: userId (required), projectId (required).
retry_executionB
Retry a failed execution.
Inputs: id (required).
source_control_pullB
Pull changes from the remote source control repository. Requires Source Control to be configured.
Inputs: force, variables, autoPublish.
stop_executionC
Stop a currently running execution.
Inputs: id (required).
transfer_credentialC
Transfer a credential to another project.
Inputs: id (required), destinationProjectId (required).
transfer_workflowC
Transfer a workflow to another project.
Inputs: id (required), destinationProjectId (required).
update_credentialC
Update an existing credential. All fields are optional.
Inputs: id (required), data, name, type.
update_data_tableC
Rename a data table.
Inputs: id (required), name (required).
update_data_table_rowsC
Update rows matching filter conditions in a data table.
Inputs: data (required), filter (required), dataTableId (required), dryRun, +1 more.
update_projectC
Update a project's name.
Inputs: id (required), name (required).
update_project_user_roleC
Update a user's role within a project.
Inputs: role (required), userId (required), projectId (required).
update_tagC
Rename an existing tag.
Inputs: id (required), name (required).
update_workflowB
Update an existing workflow. Requires the full workflow definition (name, nodes, connections, settings).
Inputs: id (required), name (required), nodes (required), settings (required), +1 more.
update_workflow_tagsB
Replace all tags on a workflow with the given tag IDs.
Inputs: id (required), tagIds (required).
upsert_data_table_rowA
Update a row if it matches filter conditions, or insert a new one if no match is found.
Inputs: data (required), filter (required), dataTableId (required), dryRun, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 52 tools
Most tools target a distinct resource+action (workflows, executions, credentials, projects, tags, variables, data tables), so selection is generally clear. Minor overlap exists: list_users can filter by project while list_project_users also lists project members, and update_data_table (rename) vs update_data_table_rows (row update) are close but differentiated by descriptions.
The dominant convention is consistent snake_case verb_noun (list_workflows, create_tag, delete_credential). A few deviations break the pattern: source_control_pull uses noun_verb ordering, and discover is a bare verb with no noun, but these are isolated.
With 52 tools this is far above the well-scoped 3-15 range and heavy even for a large platform. While n8n is a rich domain, the surface is thick enough (e.g. five separate data-table-row operations) that it burdens selection and warrants consolidation.
Coverage is broad: workflows have full CRUD plus activate/deactivate/tags/transfer, executions have list/get/delete/retry/stop, and projects, tags, data tables, and credentials all have solid lifecycles. Minor gaps remain (no single get_credential, no update_variable, users are read-only), but agents can work around them.
Maintenance
Related MCP Connectors
n8n MCP — query your own n8n instance (BYO).
Free public n8n, AI support and software acceptance templates; scoped private delivery workflows.
Build, check and fix n8n workflows from Claude, Cursor or ChatGPT. Built on 1,100+ real n8n node definitions and curated templates, with a validator that repairs common mistakes (wrong node types, missing settings) and returns JSON ready to import into n8n. Sign in with a free gydmation.com account; nothing to install.
AI automation platform (n8n/Zapier alternative): build, schedule and run workflows from your agent.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage n8n automation workflows through natural language commands, including creating, executing, monitoring, and organizing workflows with full CRUD operations and execution management.99 npm2MIT
- AlicenseBqualityCmaintenanceEnables AI assistants to interact with n8n workflow automation instances through the REST API. Supports workflow management, execution control, tag organization, execution history monitoring, and webhook management.195MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to manage n8n workflow automation instances through tools for workflow CRUD operations, execution monitoring, and webhook triggering. It facilitates programmatic interaction with n8n instances via the n8n API with AI-optimized descriptions and error handling.63MIT
- AlicenseAqualityDmaintenanceConnects AI assistants to your n8n instance to manage workflows, executions, credentials, and user settings through 31 specialized tools. It enables users to perform n8n operations like workflow creation, activation, and execution history retrieval via natural language.2718 npmMIT