N8n MCP Server

Enables AI assistants to interact with and manage n8n workflows through natural language.

Local serverstdioTypeScript★ 1.6k

What is the N8n MCP Server?

Enables AI assistants to interact with and manage n8n workflows through natural language.

What you get

A Model Context Protocol (MCP) server that allows AI assistants to interact with n8n workflows through natural language.

This project provides a Model Context Protocol (MCP) server that empowers AI assistants to seamlessly interact with n8n, a popular workflow automation tool. It acts as a bridge, enabling AI assistants to programmatically manage and control n8n workflows and executions using natural language commands.

  • Learn and Grow: — Sharpen your skills in areas like TypeScript, Node.js, API integration, and AI tool development
  • Collaborate: — Work alongside other motivated developers and AI users
  • Make an Impact: — Directly shape the future of this project and help build a valuable tool for the AI community
  • Open Source: — Gain experience contributing to an open-source project

Configuration and credentials

  • Node.js 20 or later - n8n instance with API access enabled

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the N8n MCP Server

claude mcp add n8n-2 --env N8N_API_URL=your-value --env N8N_API_KEY=your-value --env N8N_WEBHOOK_USERNAME=your-value --env N8N_WEBHOOK_PASSWORD=your-value --env YOUR_N8N_API_KEY=your-value -- npx -y @leonardsellem/n8n-mcp-server

Configuration

  • Node.js 20 or later - n8n instance with API access enabled
VariableDescriptionRequired
N8N_API_URLEndpoint or connection string the server talks to.Yes
N8N_API_KEYCredential the server authenticates with.Yes
N8N_WEBHOOK_USERNAMEConfiguration value read at startup.Optional
N8N_WEBHOOK_PASSWORDConfiguration value read at startup.Optional

Example prompts to try

  • “Use N8n to Prerequisites.”
  • “Use N8n to Building.”
  • “Use N8n to Testing.”

Frequently asked questions

The n8n MCP Server allows AI assistants to interact with and manage your n8n workflows using natural language. It acts as a bridge between your AI assistant and your n8n instance.