This Model Context Protocol (MCP) server enables AI assistants to access and understand n8n workflow automation nodes and documentation. It provides structured data about n8n's 530+ nodes, their properties, and operations, allowing AI models like Claude to help create and modify n8n workflows.
Prerequisites: Node.js
# Run directly with npx (no installation needed)
npx n8n-mcp
Add to Claude Desktop config:
Basic configuration (documentation tools only):
{
"mcpServers": {
"n8n-mcp": {
"command": "npx",
"args": ["n8n-mcp"],
"env": {
"MCP_MODE": "stdio",
"LOG_LEVEL": "error",
"DISABLE_CONSOLE_OUTPUT": "true"
}
}
}
}
Full configuration (with n8n management tools):
{
"mcpServers": {
"n8n-mcp": {
"command": "npx",
"args": ["n8n-mcp"],
"env": {
"MCP_MODE": "stdio",
"LOG_LEVEL": "error",
"DISABLE_CONSOLE_OUTPUT": "true",
"N8N_API_URL": "https://your-n8n-instance.com",
"N8N_API_KEY": "your-api-key"
}
}
}
}
Prerequisites: Docker installed on your system
# Pull the Docker image
docker pull ghcr.io/czlonkowski/n8n-mcp:latest
Add to Claude Desktop config:
Basic configuration (documentation tools only):
{
"mcpServers": {
"n8n-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--init",
"-e", "MCP_MODE=stdio",
"-e", "LOG_LEVEL=error",
"-e", "DISABLE_CONSOLE_OUTPUT=true",
"ghcr.io/czlonkowski/n8n-mcp:latest"
]
}
}
}
Full configuration (with n8n management tools):
{
"mcpServers": {
"n8n-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--init",
"-e", "MCP_MODE=stdio",
"-e", "LOG_LEVEL=error",
"-e", "DISABLE_CONSOLE_OUTPUT=true",
"-e", "N8N_API_URL=https://your-n8n-instance.com",
"-e", "N8N_API_KEY=your-api-key",
"ghcr.io/czlonkowski/n8n-mcp:latest"
]
}
}
}
Prerequisites: Node.js
# 1. Clone and setup
git clone https://github.com/czlonkowski/n8n-mcp.git
cd n8n-mcp
npm install
npm run build
npm run rebuild
# 2. Test it works
npm start
Add to Claude Desktop config:
{
"mcpServers": {
"n8n-mcp": {
"command": "node",
"args": ["/absolute/path/to/n8n-mcp/dist/mcp/index.js"],
"env": {
"MCP_MODE": "stdio",
"LOG_LEVEL": "error",
"DISABLE_CONSOLE_OUTPUT": "true"
}
}
}
}
Deploy n8n-MCP to Railway's cloud platform with one click:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
Remember to restart Claude Desktop after updating the configuration.
tools_documentation
- Get documentation for any MCP toollist_nodes
- List all n8n nodes with filtering optionsget_node_info
- Get comprehensive information about a specific nodeget_node_essentials
- Get only essential properties with examplessearch_nodes
- Full-text search across all node documentationsearch_node_properties
- Find specific properties within nodeslist_ai_tools
- List all AI-capable nodesget_node_as_tool_info
- Get guidance on using any node as an AI toolget_node_for_task
- Pre-configured node settings for common taskslist_tasks
- Discover available task templatesvalidate_node_operation
- Validate node configurationsvalidate_node_minimal
- Quick validation for just required fieldsvalidate_workflow
- Complete workflow validation including AI tool connectionsvalidate_workflow_connections
- Check workflow structurevalidate_workflow_expressions
- Validate n8n expressionsget_property_dependencies
- Analyze property visibility conditionsget_node_documentation
- Get parsed documentation from n8n-docsget_database_statistics
- View database metrics and coverageOnly available when you provide N8N_API_URL
and N8N_API_KEY
:
n8n_create_workflow
- Create new workflows with nodes and connectionsn8n_get_workflow
- Get complete workflow by IDn8n_update_full_workflow
- Update entire workflown8n_update_partial_workflow
- Update workflow using diff operationsn8n_delete_workflow
- Delete workflows permanentlyn8n_list_workflows
- List workflows with filtering and paginationn8n_validate_workflow
- Validate workflows already in n8n by IDn8n_trigger_webhook_workflow
- Trigger workflows via webhook URLn8n_get_execution
- Get execution details by IDn8n_list_executions
- List executions with status filteringn8n_delete_execution
- Delete execution recordsn8n_health_check
- Check n8n API connectivity and features// Get essentials for quick configuration
get_node_essentials("nodes-base.httpRequest")
// Find nodes for a specific task
search_nodes({ query: "send email gmail" })
// Get pre-configured settings
get_node_for_task("send_email")
// Validate before deployment
validate_node_operation({
nodeType: "nodes-base.httpRequest",
config: { method: "POST", url: "..." },
profile: "runtime"
})
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "n8n-mcp" '{"command":"npx","args":["n8n-mcp"],"env":{"MCP_MODE":"stdio","LOG_LEVEL":"error","DISABLE_CONSOLE_OUTPUT":"true"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"n8n-mcp": {
"command": "npx",
"args": [
"n8n-mcp"
],
"env": {
"MCP_MODE": "stdio",
"LOG_LEVEL": "error",
"DISABLE_CONSOLE_OUTPUT": "true"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"n8n-mcp": {
"command": "npx",
"args": [
"n8n-mcp"
],
"env": {
"MCP_MODE": "stdio",
"LOG_LEVEL": "error",
"DISABLE_CONSOLE_OUTPUT": "true"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect