Skip to main content
Glama
n8n MCP Server

n8n MCP Server

by fedealvarez

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

  1. Clone the repository:

    git clone https://github.com/<your-org>/n8n-mcp.git
    cd n8n-mcp
  2. Install dependencies:

    npm install
  3. Configure environment variables:

    cp .env.example .env

    Edit .env and fill in your n8n instance URL and API key.

  4. 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 start

The server communicates via the MCP stdio transport, so it works with any MCP-compatible client.

Available Tools

Tool

Description

list_workflows

List workflows with optional name/tag/status filters

get_workflow

Get full workflow details including nodes and connections

activate_workflow

Activate a workflow

deactivate_workflow

Deactivate a workflow

get_workflow_tags

Get tags for a workflow

list_executions

List executions with status and date-range filters

get_execution

Get execution details including node-level data

retry_execution

Retry a failed execution

stop_execution

Stop a running execution

list_credentials

List stored credentials (metadata only)

get_credential_schema

Get field definitions for a credential type

list_tags

List all tags

list_users

List all users

get_user

Get user details

list_variables

List environment variables

list_projects

List all projects

get_project

Get project details

generate_audit

Run a security audit

Development

# Build
npm run build

# Run directly
npm start

License

ISC

Available Tools

52 tools
activate_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

    B3/5.0

    Scored across 52 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count2/5

    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.

    Completeness4/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      C
      maintenance
      Enables 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.
      19
      5
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables 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.
      63
      MIT