n8n MCP Agent
Supports credential creation for Airtable, allowing n8n workflows to manage Airtable bases.
Enables credential creation for GitHub, allowing n8n workflows to interact with GitHub.
Supports credential creation for Google services, enabling n8n workflows to use Google APIs.
Supports credential creation for MySQL, allowing n8n workflows to execute database queries.
Provides comprehensive tools for managing n8n instances, including workflows, executions, credentials, tags, and variables.
Enables credential creation for Notion, allowing n8n workflows to interact with Notion.
Supports credential creation for OpenAI, allowing n8n workflows to use OpenAI APIs.
Provides access to Shopify workflow templates, enabling e-commerce automation.
Enables credential creation for Slack, allowing n8n workflows to interact with Slack.
Allows credential creation for Telegram, enabling n8n workflows to send and receive messages.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@n8n MCP Agentlist my recent workflows"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
n8n MCP Agent
Autonomous AI agent for n8n workflow automation with credential factories, execution helpers, 4343+ workflow templates, and specialized sub-agents.
Features
38 MCP Tools - Full n8n API coverage for workflows, executions, credentials, tags, variables, and more
4343+ Workflow Templates - Access to Zie619 database with 268 integrations across 16 categories
Credential Factories - Type-safe factories for Google, Postgres, Slack, Telegram, OpenAI, GitHub, and more
Execution Helpers - Wait for completion, extract output data, get errors, batch operations
Workflow Helpers - Webhook URL extraction, duplication with credential stripping, node management
Auto-Connect - Automatic connection from environment variables (N8N_URL, N8N_API_KEY)
TypeScript First - Built with TypeScript, well-tested with 205+ tests
Installation
Get your n8n API Key
Log into your n8n instance
Click your user icon in the bottom left
Go to Settings
Select API
Click "Create API Key"
Copy your API key (you will not be able to see it again)
Install from npm
npm install -g @anatolykoptev/n8n-mcp-agentInstall from Source
git clone https://github.com/anatolykoptev/n8n-mcp-agent.git
cd n8n-mcp-agent
npm install
npm run buildConfiguration
Claude Desktop
Open your Claude Desktop configuration file:
~/Library/Application Support/Claude/claude_desktop_config.jsonAdd the n8n configuration:
{
"mcpServers": {
"n8n": {
"command": "n8n-mcp-agent",
"env": {
"N8N_URL": "https://your-n8n-instance.com",
"N8N_API_KEY": "your-api-key-here"
}
}
}
}Cline (VS Code)
Open VS Code
Open the Cline extension from the left sidebar
Click the "MCP Servers" icon at the top of the pane
Scroll to bottom and click "Configure MCP Servers"
Add to the opened settings file:
{
"mcpServers": {
"n8n": {
"command": "n8n-mcp-agent",
"env": {
"N8N_URL": "https://your-n8n-instance.com",
"N8N_API_KEY": "your-api-key-here"
}
}
}
}Environment Variables
The server auto-connects when these environment variables are set:
Variable | Description |
| Your n8n instance URL (e.g., |
| Your n8n API key |
MCP Tools
Workflow Management (8 tools)
init-n8n- Initialize connection to n8n instancelist-workflows- List all workflowsget-workflow- Get workflow by IDcreate-workflow- Create new workflowupdate-workflow- Update existing workflowdelete-workflow- Delete workflowactivate-workflow- Activate workflowdeactivate-workflow- Deactivate workflow
Execution Management (3 tools)
list-executions- List executions with filtersget-execution- Get execution by IDdelete-execution- Delete execution
Credential Management (3 tools)
create-credential- Create credentialdelete-credential- Delete credentialget-credential-schema- Get schema for credential type
Tag Management (7 tools)
list-tags- List all tagscreate-tag- Create new tagget-tag- Get tag by IDupdate-tag- Update tag namedelete-tag- Delete tagget-workflow-tags- Get tags for workflowupdate-workflow-tags- Update workflow tags
User Management (4 tools)
list-users- List all userscreate-users- Create usersget-user- Get user by ID or emaildelete-user- Delete user
Project Management (4 tools, Enterprise)
list-projects- List all projectscreate-project- Create projectupdate-project- Update projectdelete-project- Delete project
Variable Management (3 tools, Enterprise)
list-variables- List all variablescreate-variable- Create variabledelete-variable- Delete variable
Security (1 tool)
generate-audit- Generate security audit
Workflow Templates (5 tools)
n8n-patterns-stats- Get database statisticsn8n-patterns-search- Search templatesn8n-patterns-get- Get template by IDn8n-patterns-categories- List categoriesn8n-patterns-integrations- List top integrations
Credential Factories
Type-safe factory methods for creating credentials programmatically:
// Available factories
createGoogleServiceAccount(name, email, privateKey)
createPostgres(name, host, database, user, password, port?, ssl?)
createHttpBasic(name, username, password)
createApiKey(name, apiKey, headerName?)
createSlack(name, accessToken)
createTelegram(name, accessToken)
createOpenAI(name, apiKey)
createAirtable(name, apiKey)
createNotion(name, apiKey)
createGitHub(name, accessToken)
createSmtp(name, host, port, user, password, secure?)
createMySql(name, host, database, user, password, port?)Execution Helpers
Advanced execution monitoring and data extraction:
// Wait for execution to complete with polling
waitForCompletion(executionId, timeout?, pollInterval?)
// Extract output data from execution
getOutput(executionId)
// Get error message from failed execution
getError(executionId)
// Check if execution is running
isRunning(executionId)
// List failed executions
listFailed(workflowId?, limit?)
// List running executions
listRunning(workflowId?, limit?)
// Delete multiple executions
deleteMany({ workflowId?, status?, limit? })Workflow Helpers
Advanced workflow manipulation:
// Extract webhook URL from workflow
getWebhookUrl(workflowId)
// Duplicate workflow with credential stripping
duplicate(sourceId, newName, stripCredentials?)
// Add node to existing workflow
addNode(workflowId, node)
// Create workflow with trigger
createWithTrigger(name, triggerType, triggerConfig?)
// Get workflow statistics
getStats(workflowId)Workflow Templates
Access 4343+ workflow templates from the Zie619 database:
268 integrations - Shopify, OpenAI, Slack, Telegram, GitHub, and more
16 categories - E-commerce, AI Agent Development, Marketing, CRM, and more
Complexity levels - Low, Medium, High
Trigger types - Manual, Webhook, Scheduled, Complex
Validation
After configuration:
Restart your LLM application
Ask: "List my n8n workflows"
You should see your workflows listed
If you get an error:
Check that your n8n instance is running
Verify your API key has correct permissions
Ensure N8N_URL has no trailing slash
Troubleshooting
Common Issues
"Client not initialized"
Check N8N_URL and N8N_API_KEY are set correctly
Ensure n8n instance is accessible
Verify API key permissions
"License required"
You are trying to use an Enterprise feature
Either upgrade to n8n Enterprise or use core features only
Connection Issues
Verify n8n instance is running
Check URL protocol (http/https)
Remove trailing slash from N8N_URL
Security Best Practices
API Key Management
Use minimal permissions necessary
Rotate keys regularly
Never commit keys to version control
Instance Access
Use HTTPS for production
Enable n8n authentication
Keep n8n updated
Support
Author
Anatoly Koptev
License
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/anatolykoptev/n8n-mcp-agent'
If you have feedback or need assistance with the MCP directory API, please join our Discord server