n8n MCP Server

n8n MCP Server

Enables AI assistants to manage n8n workflows and executions, including creating, updating, deleting, activating, deactivating, and executing workflows, as well as listing and retrieving execution details.

Category
Visit Server

README

n8n MCP Server

A Model Context Protocol (MCP) server for managing n8n workflows. This server enables AI assistants to interact with your n8n instance to create, update, delete, monitor, and control workflows and executions.

Features

Workflow Management

  • List workflows - Get all workflows with optional filtering by active status
  • Get workflow - Retrieve detailed information about a specific workflow
  • Create workflow - Create new workflows programmatically
  • Update workflow - Modify existing workflow configurations
  • Delete workflow - Remove workflows from your n8n instance

Workflow Control

  • Activate workflow - Enable a workflow to run on triggers
  • Deactivate workflow - Disable a workflow

Workflow Execution

  • Execute workflow - Manually trigger a workflow execution
  • List executions - View execution history with optional workflow filtering
  • Get execution - Retrieve detailed execution information including results
  • Delete execution - Remove execution records

Prerequisites

  • Node.js 18 or higher
  • n8n instance (self-hosted or cloud)
  • n8n API key

Installation

  1. Clone this repository:
git clone <repository-url>
cd n8n-mcp
  1. Install dependencies:
npm install
  1. Build the server:
npm run build

Configuration

Generate n8n API Key

  1. Log in to your n8n instance
  2. Go to Settings > n8n API
  3. Click Create an API Key
  4. Copy the generated API key

Environment Variables

Set the following environment variables:

export N8N_BASE_URL="https://your-n8n-instance.com"
export N8N_API_KEY="your-api-key-here"

For n8n cloud:

export N8N_BASE_URL="https://your-instance.app.n8n.cloud"

For self-hosted:

export N8N_BASE_URL="http://localhost:5678"

Usage with Claude Desktop

Add this server to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "n8n": {
      "command": "node",
      "args": ["/absolute/path/to/n8n-mcp/build/index.js"],
      "env": {
        "N8N_BASE_URL": "https://your-n8n-instance.com",
        "N8N_API_KEY": "your-api-key-here"
      }
    }
  }
}

Available Tools

Workflow Management

list_workflows

List all workflows with optional active status filter.

Parameters:

  • active (boolean, optional): Filter by active status

Example:

List all active workflows

get_workflow

Get detailed information about a specific workflow.

Parameters:

  • id (string, required): Workflow ID

Example:

Get workflow with ID "123"

create_workflow

Create a new workflow.

Parameters:

  • name (string, required): Workflow name
  • nodes (array, required): Workflow nodes configuration
  • connections (object, optional): Node connections
  • settings (object, optional): Workflow settings

Example:

Create a simple workflow named "Test Workflow"

update_workflow

Update an existing workflow.

Parameters:

  • id (string, required): Workflow ID
  • name (string, optional): New workflow name
  • nodes (array, optional): Updated nodes
  • connections (object, optional): Updated connections
  • settings (object, optional): Updated settings

delete_workflow

Delete a workflow.

Parameters:

  • id (string, required): Workflow ID

Workflow Control

activate_workflow

Activate a workflow to enable trigger-based execution.

Parameters:

  • id (string, required): Workflow ID

deactivate_workflow

Deactivate a workflow.

Parameters:

  • id (string, required): Workflow ID

Execution Management

execute_workflow

Manually execute a workflow.

Parameters:

  • id (string, required): Workflow ID

list_executions

List workflow executions.

Parameters:

  • workflowId (string, optional): Filter by workflow ID

get_execution

Get detailed execution information.

Parameters:

  • id (string, required): Execution ID

delete_execution

Delete an execution record.

Parameters:

  • id (string, required): Execution ID

Development

Watch mode

npm run watch

Build

npm run build

Troubleshooting

API Key Issues

  • Ensure your API key is valid and has the necessary permissions
  • For n8n Cloud, you need a paid plan to use the API

Connection Issues

  • Verify the N8N_BASE_URL is correct and accessible
  • Check that your n8n instance is running
  • Ensure there are no firewall issues blocking the connection

MCP Server Not Showing

  • Restart Claude Desktop after configuration changes
  • Check the Claude Desktop logs for errors
  • Verify the path to index.js is absolute and correct

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured