n8n MCP Server is an MCP server that connects AI assistants to an n8n automation instance using natural language. It is designed for developers, DevOps engineers, and workflow automation teams who want to orchestrate tasks without leaving their AI chat interface. By communicating with the n8n REST API and webhook endpoints, the server enables language models to inspect existing workflows, retrieve execution logs, create or edit automated sequences, and activate or deactivate triggers on demand. Users can trigger executions programmatically through standard API calls or basic-auth webhooks and pass structured payload data directly into automated steps. In addition to active tooling, the server exposes read-only resource endpoints for listing workflows and monitoring execution states. This setup allows AI agents running in MCP-compatible clients to diagnose pipeline failures, inspect run histories, stop ongoing workflow executions, and manage entire integration graphs remotely without manual dashboard navigation.
Category: CRM, ERP & E-commerce
Tags: automation, integration, n8n, orchestration, workflows
bash npm install -g @leonardsellem/n8n-mcp-server Alternatively, clone https://github.com/leonardsellem/n8n-mcp-server, run npm install, and run npm run build. 3. Generate an API key in your n8n web interface under Settings > API > API Keys. 4. Add the server configuration to your Claude Desktop configuration file (claude_desktop_config.json) or VS Code settings.json: json { "mcpServers": { "n8n-local": { "command": "n8n-mcp-server", "env": { "N8N_API_URL": "http://localhost:5678/api/v1", "N8N_API_KEY": "your_n8n_api_key", "N8N_WEBHOOK_USERNAME": "username", "N8N_WEBHOOK_PASSWORD": "password" } } } } 5. Restart your MCP client to initialize the server tools.Part of MCP Servers
n8n MCP Server allows AI clients to manage and trigger n8n automation instances. It provides tools to list, create, update, delete, activate, and deactivate workflows. It also supports running workflows via direct API calls or webhooks, checking run logs, and stopping active executions.
You can install it globally via npm using npm install -g @leonardsellem/n8n-mcp-server, or clone the repository and build it with npm run build. It can also be deployed using Docker with the leonardsellem/n8n-mcp-server container image.
It works with any MCP-compliant client that supports local command execution and environment variables, including Claude Desktop, Cursor, and VS Code with compatible model context protocol extensions.
You need the base URL of your n8n instance ending in /api/v1 and an API key generated from the n8n Settings menu. If you plan to trigger webhooks protected by basic authentication, you also need to supply a webhook username and password.
Yes, n8n MCP Server is open source and hosted on GitHub under the repository leonardsellem/n8n-mcp-server, where community contributions and bug reports are accepted.