mcp-n8n
Provides comprehensive tools for managing n8n workflows, executions, data tables, tags, credentials, users, variables, projects, audit, and webhooks via the n8n API.
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., "@mcp-n8nlist all workflows with status 'active'"
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.
mcp-n8n
The most complete MCP server for n8n
43 tools · Workflows · Data Tables · Tags · Credentials · Users · Webhooks · Audit
Quick Start · All 43 Tools · Configuration · Contributing
Why mcp-n8n?
Other n8n MCPs cover workflows and executions. mcp-n8n covers everything — including Data Tables, the only MCP to do so.
Feature | mcp-n8n | leonardsellem | illuminare | czlonkowski |
Workflows (CRUD + execute) | 10 | 7 | 8 | 4 |
Executions | 3 | 5 | 3 | 2 |
Data Tables | 8 | — | — | — |
Tags + Workflow Tags | 7 | — | 5 | — |
Credentials | 4 | — | 3 | — |
Users | 3 | — | 4 | — |
Variables | 3 | — | 3 | — |
Projects (Enterprise) | 4 | — | 4 | — |
Security Audit | 1 | — | 1 | — |
Webhooks | 1 | 1 | — | 1 |
Health Check | 1 | — | — | 1 |
Total | 43 | 12 | 33 | 20 |
Data Tables — full CRUD with filters, search, upsert and dry-run. No other MCP has this.
Related MCP server: n8n MCP Server
🚀 Quick Start
claude mcp add --scope user \
-e N8N_BASE_URL=http://localhost:5678 \
-e N8N_API_KEY=your-api-key \
-- n8n npx -y @nextoolsolutions/mcp-n8nAdd to ~/.cursor/mcp.json:
{
"mcpServers": {
"n8n": {
"command": "npx",
"args": ["-y", "mcp-n8n"],
"env": {
"N8N_BASE_URL": "http://localhost:5678",
"N8N_API_KEY": "your-api-key"
}
}
}
}Add to claude_desktop_config.json:
{
"mcpServers": {
"n8n": {
"command": "npx",
"args": ["-y", "mcp-n8n"],
"env": {
"N8N_BASE_URL": "http://localhost:5678",
"N8N_API_KEY": "your-api-key"
}
}
}
}Config file location:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Add to your Windsurf MCP config:
{
"mcpServers": {
"n8n": {
"command": "npx",
"args": ["-y", "mcp-n8n"],
"env": {
"N8N_BASE_URL": "http://localhost:5678",
"N8N_API_KEY": "your-api-key"
}
}
}
}Add to your VS Code settings.json:
{
"mcp": {
"servers": {
"n8n": {
"command": "npx",
"args": ["-y", "mcp-n8n"],
"env": {
"N8N_BASE_URL": "http://localhost:5678",
"N8N_API_KEY": "your-api-key"
}
}
}
}
}Getting your API key
Open your n8n instance
Go to Settings → n8n API
Create a new API key
Copy it into the
N8N_API_KEYenvironment variable
🛠 Tools
Workflows (10)
Tool | Description |
| List all workflows with optional filters |
| Get a workflow by ID (includes nodes, connections, settings) |
| Create a new workflow from JSON |
| Update an existing workflow (full replacement) |
| Permanently delete a workflow |
| Activate a workflow for production |
| Deactivate a workflow |
| Trigger execution with optional input data |
| List tags associated with a workflow |
| Replace all tags on a workflow |
Executions (3)
Tool | Description |
| List executions with filters (workflow, status, cursor) |
| Get execution status, result data and timing |
| Delete an execution record |
Data Tables (8)
Only available in n8n v1.64+. This is the only MCP server with Data Tables support.
Tool | Description |
| List all data tables with filtering and sorting |
| Create a table with typed columns (string, number, boolean, date, json) |
| Get table metadata (columns, name, ID) |
| Query rows with filter, full-text search, sorting and pagination |
| Insert one or more rows |
| Update rows matching a filter (supports dry-run) |
| Update if exists, insert if not |
| Delete rows matching a filter (supports dry-run) |
Tags (5)
Tool | Description |
| List all tags |
| Get a tag by ID |
| Create a new tag |
| Rename a tag |
| Delete a tag |
Credentials (4)
Tool | Description |
| List credentials (names and types only — data is redacted) |
| Create a credential (use |
| Delete a credential |
| Get the JSON schema for a credential type |
Users (3)
Tool | Description |
| List all users (requires instance owner role) |
| Get a user by ID or email |
| Delete a user |
Variables (3)
Tool | Description |
| List all environment variables |
| Create a key-value variable |
| Delete a variable |
Projects (4) — Enterprise
Tool | Description |
| List all projects |
| Create a project |
| Rename a project |
| Delete a project |
Audit (1)
Tool | Description |
| Generate a security audit (credentials, database, filesystem, nodes) |
System (1)
Tool | Description |
| Verify n8n API connectivity |
Webhooks (1)
Tool | Description |
| Trigger a workflow via its webhook URL (production or test) |
⚙️ Configuration
Variable | Default | Description |
|
| Your n8n instance URL |
| — | API key (required) |
|
| Retry attempts on 429 / 5xx errors |
|
| Request timeout in milliseconds |
✨ Features
43 tools — the most comprehensive n8n MCP available
Data Tables — full CRUD, the only MCP with this support
Automatic retry — exponential backoff on rate limits (429) and server errors (5xx)
Configurable timeout — prevent hung requests (default 30s)
Zero external dependencies — only MCP SDK + Zod
TypeScript strict mode — fully typed, safe, and maintainable
Node 16+ compatible — native fetch with http/https fallback
🔒 Security
API keys are never hardcoded — loaded exclusively from environment variables
Credential data is redacted in list responses (n8n API behavior)
All IDs are sanitized with
encodeURIComponentto prevent path traversalNo sensitive data is logged or exposed in error messages
🏗 Development
git clone https://github.com/RPGMais/mcp-n8n.git
cd mcp-n8n
npm installCommand | Description |
| Run with tsx (no build step) |
| Compile TypeScript to |
| Run compiled version |
Project structure
mcp-n8n/
├── src/
│ ├── index.ts # MCP server — tool registration and handlers
│ └── n8n-client.ts # HTTP client — API calls, retry, timeout
├── dist/ # Compiled output
├── package.json
├── tsconfig.json
└── README.md🤝 Contributing
Contributions are welcome! Please:
Fork the repository
Create a feature branch (
git checkout -b feat/my-feature)Commit your changes
Push and open a Pull Request
📄 License
MIT — free for personal and commercial use.
Built by NexTool Solutions
If this project helps you, consider giving it a ⭐
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/RPGMais/mcp-n8n'
If you have feedback or need assistance with the MCP directory API, please join our Discord server