n8n MCP Server

n8n MCP Server

by n8n
Featured Productivity
automationworkflown8nno-code

Summary

Official instance-level MCP server that lets AI agents discover, run, and edit workflows on your n8n instance.

Features

  • Search and discover workflows exposed to MCP
  • Trigger and test workflows conversationally
  • Create and edit workflows and data tables
  • OAuth2 or personal access token auth
  • Works with Cloud and self-hosted n8n instances

Installation

Set up this MCP server in your favorite AI agent — copy a ready-made configuration below.

Any MCP-compatible agent

Most agents (Claude, Cursor, Windsurf, VS Code, and more) read a standard mcpServers configuration.

  1. Open your agent's MCP configuration file.
  2. Merge the snippet below into it.
  3. Restart the agent — the "n8n MCP Server" tools will be available.
{
  "mcpServers": {
    "n8n-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "supergateway",
        "--streamableHttp",
        "https://<your-n8n-domain>/mcp-server/http",
        "--header",
        "Authorization:Bearer <YOUR_N8N_MCP_TOKEN>"
      ]
    }
  }
}

Description

n8n's built-in instance-level MCP server exposes your own n8n Cloud or self-hosted instance to MCP clients like Claude Desktop, Claude Code, and Cursor. Once enabled by an instance owner or admin, agents can search workflows, trigger and test workflows that have been marked available for MCP, and create or edit workflows and data tables through natural language, instead of hand-building JSON. Connections use either OAuth2 or a rotatable personal access token.

Related MCP Servers

Browse all MCP servers →