n8n MCP Server
Provides tools to manage n8n workflows, executions, credentials, tags, variables, and audit logs via the n8n REST 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., "@n8n MCP Serverlist all 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 Server
MCP Server untuk n8n REST API, dibangun dengan FastMCP. Ekspos tool untuk mengelola workflows, executions, credentials, tags, dan variables langsung dari MCP client (Claude Desktop, Claude Code, Claude Web).
Dipakai lewat tiga kanal: stdio, Claude Code, dan Claude Web (claude.ai). Otentikasi memakai Authentik sebagai identity provider (untuk Claude Web).
Tools yang tersedia
Kategori | Tool | Deskripsi |
Workflow |
| Daftar semua workflow |
Workflow |
| Ambil detail satu workflow |
Workflow |
| Buat workflow baru |
Workflow |
| Perbarui workflow |
Workflow |
| Hapus workflow |
Workflow |
| Aktifkan workflow |
Workflow |
| Nonaktifkan workflow |
Execution |
| Daftar eksekusi (dengan filter) |
Execution |
| Ambil detail satu eksekusi |
Execution |
| Hapus eksekusi |
Credential |
| Daftar credentials |
Credential |
| Ambil detail credential |
Credential |
| Buat credential baru |
Credential |
| Hapus credential |
Tag |
| Daftar semua tag |
Tag |
| Buat tag baru |
Tag |
| Perbarui nama tag |
Tag |
| Hapus tag |
Variable |
| Daftar semua variable |
Variable |
| Buat variable baru |
Variable |
| Hapus variable |
Audit |
| Ambil audit log n8n |
Related MCP server: N8N MCP Server
Cara pakai per kanal
1. stdio — Claude Desktop / Claude Code lokal
Tidak perlu auth jaringan; client men-spawn proses langsung.
{
"mcpServers": {
"n8n-mcp": {
"command": "uvx",
"args": ["--from", "git+https://github.com/andhit-r/n8n-mcp@v0.1.0", "n8n-mcp"],
"env": {
"N8N_API_BASE_URL": "http://localhost:5678/api/v1",
"N8N_API_KEY": "your-n8n-api-key"
}
}
}
}Atau via Docker (stdio):
{
"mcpServers": {
"n8n-mcp": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"-e", "MCP_TRANSPORT=stdio",
"-e", "N8N_API_BASE_URL=http://host.docker.internal:5678/api/v1",
"-e", "N8N_API_KEY=your-n8n-api-key",
"ghcr.io/andhit-r/n8n-mcp:latest"
]
}
}
}2. Claude Code
# stdio (langsung, tanpa server terpisah)
claude mcp add n8n-mcp -- uvx --from "git+https://github.com/andhit-r/n8n-mcp@v0.1.0" n8n-mcp
# remote (server HTTP yang sudah berjalan)
claude mcp add --transport http n8n-mcp https://n8n-mcp.example.com/mcp3. Claude Web (claude.ai) — remote, WAJIB OAuth Authentik
Jalankan server sebagai service HTTP di URL publik HTTPS, daftarkan sebagai Custom Connector di claude.ai.
docker run -d -p 8000:8000 \
-e N8N_API_BASE_URL=https://your-n8n.example.com/api/v1 \
-e N8N_API_KEY=your-n8n-api-key \
-e MCP_BASE_URL=https://n8n-mcp.example.com \
-e AUTHENTIK_BASE_URL=https://auth.example.com \
-e AUTHENTIK_APP_SLUG=n8n-mcp \
-e AUTHENTIK_CLIENT_ID=... \
-e AUTHENTIK_CLIENT_SECRET=... \
ghcr.io/andhit-r/n8n-mcp:latestDirilis via GitHub (GitHub Release + image GHCR). Tidak tersedia di PyPI. Install dari sumber:
pip install "git+https://github.com/andhit-r/n8n-mcp@v0.1.0".
Konfigurasi n8n API
Aktifkan Public REST API di n8n: Settings → n8n API → Create an API key. Pastikan akun memiliki izin yang sesuai (admin direkomendasikan).
Variabel | Wajib | Contoh |
| Ya |
|
| Ya |
|
| Tidak |
|
Otentikasi (Authentik)
Server memilih auth otomatis dari environment:
Mekanisme | Untuk | Aktif jika |
OAuth Authentik | Claude Web / browser |
|
API Key statis | VS Code / CLI |
|
(tanpa auth) | stdio / jaringan lokal | tidak ada yang diisi |
Buat OAuth2/OIDC Provider + Application di Authentik (Redirect URI
https://<MCP_BASE_URL>/auth/callback, scope openid profile email).
Transport (environment)
Variabel | Default | Keterangan |
|
|
|
|
| bind saat http/sse |
| — | URL publik (wajib untuk OAuth Authentik) |
Deployment cloud: uvicorn n8n_mcp.asgi:app --host 0.0.0.0 --port 8000.
Pengembangan
pip install -e .
cp .env.example .env # isi N8N_API_BASE_URL dan N8N_API_KEY
python -m n8n_mcp # jalankan lokal (stdio)
make test # gate test (lint + unit)Lisensi
MIT.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- -license-quality-maintenanceProvides seamless integration between MCP-compatible AI assistants and n8n workflow automation, enabling intelligent management and automation of n8n workflows through natural language.5
- Alicense-qualityDmaintenanceEnables Claude Desktop to integrate with n8n workflow automation platform through a centralized MCP server. Provides seamless connection to n8n instances for workflow management and automation tasks.159MIT
- Alicense-qualityDmaintenanceEnables management of multiple N8N workflow automation instances through MCP. Supports listing, creating, updating, deleting, executing workflows and monitoring their executions across different N8N environments.159MIT
- AlicenseAqualityAmaintenanceProvides ops-focused n8n tools for MCP-compatible agents, enabling listing, inspecting, triggering, validating, managing tags, running security audits, and safely editing n8n workflows with auto-backup and confirm gates.20811MIT
Related MCP Connectors
Create, browse, remix, collaborate on, and run durable AI workflow nodes from MCP hosts.
Artifact store for AI agents. Hosted OAuth at mcp.artifacta.io/mcp; local stdio via npm/PyPI.
Search, read, and write your Apple Notes from ChatGPT/Claude via a local Mac agent + MCP relay.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/andhit-r/n8n-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server