N8n MCP Server 699f6af6

MCPAI代理

提供方 Shravan1610

AI代理 stdio · 本地进程 无需鉴权 社区 / 第三方 Claude DesktopClaude
查看接入方式

通过Claude AI自然语言交互控制n8n工作流自动化平台的服务,支持42种工作流管理操作。

一句话选型结论

按资料字段整理

N8n MCP Server 699f6af6 属于AI代理类 MCP 服务器,stdio · 本地进程,无需鉴权,可直接接入 Claude Desktop、Claude,有可直接执行的安装命令。接入前先确认权限范围;涉及写入、删除或付款的操作,建议先在测试环境验证。

分类AI代理 传输方式stdio · 本地进程 鉴权无需鉴权 部署方式本地部署
GitHub 星标 0 仓库热度,无公开仓库时显示未标注
工具数 42 暴露给模型的工具数量
资源 / 提示词 0 / 0 资源与提示词模板数量
维护方 社区 / 第三方 核验等级 仅资料核对

工具与能力

AI代理
数量来自来源目录的标注,具体工具清单以官方文档为准
工具数量42暴露给模型可调用的工具个数
资源数量0可读取的资源条目
提示词数量0内置提示词模板数量

能力标签

支持客户端

适用场景

工作流自动化JavaScript本地部署AI控制自然语言交互n8n集成MCP协议

安装与配置

stdio · 本地进程 无需鉴权
客户端在本机拉起子进程,数据不出本机
docker run --rm -i --env-file .env n8n-mcp-server:latest

这条命令只是入口,具体启动参数请按官方文档补齐,不要直接照搬到别的服务器。

  1. 1
    准备运行环境

    stdio 服务在本地起进程,需要先装好 Docker,再按安装命令拉取依赖。

  2. 2
    安装服务

    复制上面的安装命令执行;命令里带占位符的位置,换成自己的密钥或路径。

  3. 3
    写入客户端配置

    在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4
    验证是否可用

    连接成功后客户端会列出约 42 个工具,随便调一个只读工具确认能返回结果。

典型使用场景

3 类
按分类与标签整理的常见用法,具体以官方文档为准
给代理接外部能力

让代理在任务中途调用搜索、数据库等真实工具。

多步任务编排

把一串操作拆成步骤,由代理按顺序执行。

自动化重复流程

把固定流程交给代理跑,减少手工操作。

选择建议

选之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 资料标注 42 个工具,覆盖面较广,能满足多种调用。
  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。
  • 已适配 Claude Desktop、Claude,换客户端不用重新研究配置。
  • 资料标注无需鉴权,装好就能连。

先想清楚的地方

  • stdio 方式要求本地装好运行时(如 Node.js),换机器要重新装一遍。
  • 版本更新与行为细节以官方仓库为准。

更适合

  • 需要在AI代理场景里让模型直接调用外部能力的人。
  • 已经在用 Claude Desktop、Claude 的用户,接入路径最短。
  • 想先快速试一下、能接受在本地或自有环境跑服务的人。

不太适合

  • 完全不想在本地装环境的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
MCP 服务器工具数传输方式部署方式安装命令最后核验
N8n MCP Server 699f6af6当前 42 stdio · 本地进程 本地部署 有 2026-05-17
Filesystem 560c4363 13 未标注 本地部署 无 2026-05-17
Server Everything (everything) 11 stdio · 本地进程 本地部署 有 2026-05-17
Time 7365cb6d 2 SSE · 服务端推送 远程部署 有 2026-05-18
Everything Claude Code 未标注 stdio · 本地进程 本地部署 有 2026-05-17
Openmemory 557e1585 未标注 stdio · 本地进程 本地部署 有 2026-05-17

服务器档案

AI代理
字段来自项目仓库与公开索引,中文说明由本站标注
提供方Shravan1610上游标注的维护方 Shravan1610
分类AI代理本站按上游分类展示
连接方式stdio · 本地进程客户端在本机拉起子进程,数据不出本机
鉴权方式无需鉴权远程服务建议用最小权限凭据
维护方社区 / 第三方核验等级 仅资料核对
包名 / 运行时未标注 · Docker本地安装时用到的包标识与运行时
部署类型本地部署上游给出的部署形态
最近核验2026-05-17上游最后核验时间

详细介绍

18.5 KB
来自项目仓库与上游目录的原文,未做删改

🤖 n8n MCP Server - Control n8n with Claude AI

> Give Claude AI full control over your n8n workflows through natural conversation


🎯 What This Does (In Plain English)

Instead of clicking through n8n's web interface, you can now talk to Claude and have it manage your workflows:

You say: "Show me all my workflows"
Claude does: Lists all your n8n workflows with their status

You say: "Activate my Daily Report workflow"
Claude does: Turns on that workflow for you

You say: "What workflows failed today?"
Claude does: Shows you failed executions with error details

It's like having an AI assistant that knows how to use n8n for you.


✨ What You'll Be Able To Do

Once set up, you can ask Claude to:

📋 Workflow Management

  • ✅ List all your workflows
  • ✅ Create new workflows
  • ✅ Activate/deactivate workflows
  • ✅ Update workflow settings
  • ✅ Delete workflows
  • ✅ Organize workflows with tags

⚡ Execution Monitoring

  • ✅ See which workflows ran successfully
  • ✅ Find failed executions
  • ✅ Retry failed workflows
  • ✅ Get detailed error information
  • ✅ Track execution history

🔧 Advanced Features

  • ✅ Manage environment variables
  • ✅ Handle credentials securely
  • ✅ Manage users and projects
  • ✅ Generate security audits
  • ✅ Health check your n8n instance

Total: 42 different operations - all through natural conversation with Claude.


🤔 Before You Start: What Are These Things?

What is MCP (Model Context Protocol)?

Think of it as a "universal connector" that lets Claude AI talk to other software. It's like teaching Claude how to use n8n by giving it a specialized plugin.

Official docs: https://modelcontextprotocol.io/

What is n8n?

n8n is a workflow automation tool (like Zapier, but self-hosted). It connects different apps and automates tasks. For example: "When I get an email, save it to Google Sheets and notify me on Slack."

n8n website: https://n8n.io/

What is Docker?

Docker packages software so it runs the same way on any computer. Think of it as a "container" for software - it includes everything needed to run, so you don't have to install dependencies manually.

Docker website: https://www.docker.com/


📋 Prerequisites (What You Need First)

Before starting, make sure you have:

1. Docker Desktop (Required)

  • Download: https://www.docker.com/products/docker-desktop
  • Install it and make sure it's running (you'll see the Docker icon in your system tray)
  • Test it works: Open terminal/command prompt and type:bash docker --version
    You should see something like: Docker version 24.0.0

2. n8n Instance with API Access (Required)

You need:
- ✅ A running n8n instance (self-hosted or cloud)
- ✅ The URL to your n8n (e.g., https://your-n8n.com)
- ✅ An API key from n8n

How to get your n8n API key:
1. Log into your n8n instance
2. Click your profile icon (top right)
3. Go to "Settings" → "API"
4. Click "Create API Key"
5. Copy the key (starts with eyJ...) - you'll need this later

3. Claude Desktop (Required)

  • Download: https://claude.ai/download
  • Install the desktop app (not just the web version)

4. Docker MCP Gateway (Required)

This is the "bridge" between Claude and Docker containers.

Install it:```bash

On macOS/Linux

curl -fsSL https://raw.githubusercontent.com/docker/mcp-gateway/main/install.sh | sh

On Windows (PowerShell as Administrator)

irm https://raw.githubusercontent.com/docker/mcp-gateway/main/install.ps1 | iex


**Verify it installed:**```bash
docker mcp --version

Official docs: https://github.com/docker/mcp-gateway

5. Basic Terminal Knowledge (Helpful but not required)

You'll need to copy-paste commands into a terminal. Don't worry - we'll guide you through each one.


🚀 Installation Guide (Step-by-Step)

Follow these steps exactly in order. Each step has a "✅ Success Check" so you know it worked.

Step 0: Enable Docker MCP Toolkit (IMPORTANT!)

Before anything else, you need to enable MCP support in Docker Desktop:

  1. Open Docker Desktop
  2. Click the Settings icon (gear icon, top right)
  3. Go to Beta features (in the left sidebar)
  4. Find "Enable Docker MCP Toolkit"
  5. Check the box to enable it
  6. Click "Apply & Restart"
  7. Wait for Docker Desktop to restart

✅ Success Check: After restart, open terminal and run:```bash
docker mcp --version

You should see version information (not an error).

---

### Step 1: Download This Project

**Option A: Using Git (if you have it)**```bash
cd ~/Desktop
git clone https://github.com/Shravan1610/n8n-mcp-server.git
cd n8n-mcp-server

Option B: Download ZIP
1. Go to https://github.com/Shravan1610/n8n-mcp-server
2. Click the green "Code" button
3. Click "Download ZIP"
4. Unzip it to your Desktop
5. Open terminal and navigate to it:bash cd ~/Desktop/n8n-mcp-server-main

✅ Success Check: Run ls - you should see files like README.md, package.json, Dockerfile


Step 2: Configure Your n8n Connection

Create your environment file:```bash
cp .env.example .env


**Edit the `.env` file:**

1. **On Mac/Linux:**```bash
   nano .env
   ```

2. **On Windows:**```bash
   notepad .env
   ```

3. **Fill in your n8n details:**```env
   N8N_API_KEY=paste_your_actual_n8n_api_key_here
   N8N_BASE_URL=https://your-n8n-instance.com/api/v1
   ```

   **Important notes:**
   - Replace `paste_your_actual_n8n_api_key_here` with the API key you got from n8n
   - Replace `https://your-n8n-instance.com` with your actual n8n URL
   - **DO NOT add a trailing slash** at the end of the URL
   - Keep `/api/v1` at the end

4. **Save the file:**
   - In nano: Press `Ctrl+O`, then `Enter`, then `Ctrl+X`
   - In notepad: File → Save

**Example `.env` file (with YOUR actual values):**```env
N8N_API_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.your_actual_key_here
N8N_BASE_URL=https://your-actual-n8n-url.com/api/v1

✅ Success Check: Run cat .env (Mac/Linux) or type .env (Windows) - you should see your API key and URL (not the placeholder text)


Step 3: Build the Docker Container

This packages everything needed to run the MCP server.

Run the build script:

On Mac/Linux:```bash
chmod +x build.sh
./build.sh


**On Windows:**```bash
docker build -t n8n-mcp-server:latest .

This will take 2-3 minutes. You'll see lots of output - that's normal.

✅ Success Check: Run docker images | grep n8n-mcp-server - you should see the image listed with "latest" tag


Step 4: Test the Server (Optional but Recommended)

Let's make sure it can connect to your n8n instance.

Run the test:

On Mac/Linux:```bash
chmod +x test.sh
./test.sh


**On Windows:**```bash
docker run --rm -i --env-file .env n8n-mcp-server:latest

Then paste this and press Enter:```json
{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1.0.0"}}}

Press `Ctrl+C` to exit.

**✅ Success Check:** You should see a JSON response (not an error). If you see "Unexpected token" or connection errors, check your `.env` file.

---

### Step 5: Set Up Docker MCP Gateway

Now we tell Docker MCP Gateway about our n8n server.

**Initialize the gateway (first time only):**```bash
docker mcp catalog init

Add the n8n server configuration:

  1. Edit the Docker MCP config file:

On Mac/Linux:bash nano ~/.docker/mcp/docker-mcp.yaml

On Windows:bash notepad %USERPROFILE%\.docker\mcp\docker-mcp.yaml

  1. Add this configuration at the end:yaml n8n-server: image: n8n-mcp-server:latest environment: N8N_API_KEY: paste_your_actual_n8n_api_key_here N8N_BASE_URL: https://your-n8n-instance.com/api/v1 description: "n8n workflow automation MCP server"

  2. Replace the placeholder values:
    - Use the same API key from your .env file
    - Use the same n8n URL from your .env file

  3. Save the file

Enable the server:```bash
docker mcp server enable n8n-server


**✅ Success Check:** Run `docker mcp server list` - you should see `n8n-server` with status "enabled"

---

### Step 6: Connect to Claude Desktop

**Option A: Automatic (Docker MCP Gateway handles it)**

The Docker MCP Gateway should automatically configure Claude Desktop. Just **completely quit and restart Claude Desktop.**

**Option B: Manual Configuration (if automatic doesn't work)**

1. **Find your Claude Desktop config file:**
   - **Mac:** `~/Library/Application Support/Claude/claude_desktop_config.json`
   - **Windows:** `%APPDATA%\Claude\claude_desktop_config.json`

2. **Edit the file:**

   **On Mac:**```bash
   nano ~/Library/Application\ Support/Claude/claude_desktop_config.json
   ```

   **On Windows:**```bash
   notepad %APPDATA%\Claude\claude_desktop_config.json
   ```

3. **Add or update the configuration:**```json
   {
     "mcpServers": {
       "docker-mcp-gateway": {
         "command": "docker",
         "args": ["run", "-i", "--rm", "docker-mcp-gateway"]
       }
     }
   }
   ```

4. **Save the file**

**Restart Claude Desktop:**
- **Don't just close the window** - fully quit the app:
  - **Mac:** Claude Desktop → Quit Claude Desktop (or Cmd+Q)
  - **Windows:** Right-click the system tray icon → Exit
- **Start Claude Desktop again**

**✅ Success Check:** Open Claude Desktop and start a new conversation. Type "What n8n tools do you have?" - Claude should list the 42 available tools. If not, see troubleshooting below.

---

## 🎉 You're Done! Now What?

Try asking Claude these things:

### Basic Commands```
"List all my n8n workflows"
"Show me the details of workflow [name]"
"What's the health status of my n8n instance?"

Workflow Management```

"Activate my [workflow name] workflow"
"Deactivate the [workflow name] workflow"
"Show me all inactive workflows"


### Execution Monitoring```
"Show me all failed executions from today"
"What went wrong with execution [id]?"
"Retry execution [id]"

Advanced Operations```

"List all environment variables"
"Create a variable named API_URL with value https://api.example.com"
"Show me all users in my n8n instance"


---

## 🆘 Troubleshooting (Common Issues)

### Issue 1: "Docker MCP command not found"

**Symptoms:** `docker mcp: command not found`

**Solution:**
1. **Make sure Docker MCP Toolkit is enabled:**
   - Open Docker Desktop
   - Settings → Beta Features → Enable Docker MCP Toolkit
   - Apply & Restart

2. **Reinstall Docker MCP Gateway:**```bash
   curl -fsSL https://raw.githubusercontent.com/docker/mcp-gateway/main/install.sh | sh
   ```

---

### Issue 2: "Tools not showing in Claude"

**Symptoms:** Claude says it doesn't have n8n tools available

**Solutions:**
1. **Verify Docker MCP Gateway is running:**```bash
   docker mcp server list
   ```
   Make sure `n8n-server` shows as "enabled"

2. **Enable the server if it's disabled:**```bash
   docker mcp server enable n8n-server
   ```

3. **Completely restart Claude Desktop:**
   - Quit (don't just close)
   - Wait 5 seconds
   - Start again

4. **Check Docker is running:**
   - Look for Docker icon in system tray
   - Should show "Docker Desktop is running"

---

### Issue 3: "Cannot connect to n8n" or "401 Unauthorized"

**Symptoms:** Claude says it can't reach your n8n instance or authentication fails

**Solutions:**
1. **Verify your API key works:**```bash
   curl -H "X-N8N-API-KEY: your_api_key" "https://your-n8n.com/api/v1/workflows?limit=1"
   ```
   Replace with your actual values. You should get JSON response, not an error.

2. **Check your `.env` file:**```bash
   cat .env
   ```
   Make sure:
   - API key is correct (starts with `eyJ`)
   - URL has no trailing slash
   - URL ends with `/api/v1`

3. **Check the Docker MCP config:**```bash
   cat ~/.docker/mcp/docker-mcp.yaml
   ```
   Make sure the values match your `.env` file

4. **Rebuild the server:**```bash
   ./build.sh
   docker mcp server disable n8n-server
   docker mcp server enable n8n-server
   ```

---

### Issue 4: "Unexpected non-whitespace character" Error

**Symptoms:** JSON parsing errors when testing

**This should be fixed in this version.** If you still see it:

1. **Make sure you're using the latest code:**```bash
   git pull origin main
   ./build.sh
   ```

2. **Verify the image was rebuilt:**```bash
   docker images | grep n8n-mcp-server
   ```
   Check the "CREATED" date - should be recent

---

### Issue 5: "Permission Denied" Errors

**On Mac/Linux:**```bash
chmod +x build.sh test.sh
./build.sh

On Windows: Run PowerShell as Administrator


🤔 Common Mistakes (Learn from Others!)

❌ Mistake 1: Forgetting to Enable Docker MCP Toolkit

The #1 issue! You MUST enable this in Docker Desktop Settings → Beta Features before anything will work.

❌ Mistake 2: Adding Trailing Slash to URL

Wrong:```env
N8N_BASE_URL=https://n8n.example.com/api/v1/

**Correct:**```env
N8N_BASE_URL=https://n8n.example.com/api/v1

❌ Mistake 3: Forgetting to Quit Claude Desktop

Closing the window isn't enough - you must fully quit the app for config changes to take effect.

❌ Mistake 4: Using Wrong API Key

Make sure you're using an n8n API key, not your login password. Get it from: n8n Settings → API → Create API Key

❌ Mistake 5: Docker Not Running

The Docker icon must be in your system tray and show "running" status. If Docker isn't running, nothing will work.

❌ Mistake 6: Not Enabling the Server

After editing docker-mcp.yaml, you must run:bash docker mcp server enable n8n-server


🎓 How It Works (For the Curious)

Here's what happens behind the scenes:

  1. You talk to Claude in natural language
  2. Claude understands what you want to do with n8n
  3. Claude calls the Docker MCP Gateway
  4. The Gateway launches your n8n MCP server container
  5. The MCP server makes API calls to your n8n instance
  6. n8n responds with the data
  7. The response flows back through Gateway → Claude → You

It's like having a translator that speaks "Human" on one side and "n8n API" on the other.


📚 Available Tools (All 42 of Them)

Click to expand the complete list

Workflow Management (10 tools)

  • n8n_list_workflows - List all workflows with pagination
  • n8n_get_workflow - Get detailed workflow information
  • n8n_create_workflow - Create new workflows
  • n8n_update_workflow - Modify existing workflows
  • n8n_delete_workflow - Delete workflows
  • n8n_activate_workflow - Enable workflows
  • n8n_deactivate_workflow - Disable workflows
  • n8n_transfer_workflow - Transfer workflows between projects
  • n8n_get_workflow_tags - Get workflow tags
  • n8n_update_workflow_tags - Update workflow tags

Execution Management (4 tools)

  • n8n_list_executions - List executions with filtering
  • n8n_get_execution - Get detailed execution information
  • n8n_delete_execution - Delete execution records
  • n8n_retry_execution - Retry failed executions

Credentials Management (4 tools)

  • n8n_create_credential - Create new credentials
  • n8n_delete_credential - Delete credentials
  • n8n_get_credential_schema - Get credential schemas
  • n8n_transfer_credential - Transfer credentials

Variables Management (4 tools)

  • n8n_list_variables - List environment variables
  • n8n_create_variable - Create new variables
  • n8n_update_variable - Update existing variables
  • n8n_delete_variable - Delete variables

Tags Management (5 tools)

  • n8n_list_tags - List all tags
  • n8n_create_tag - Create new tags
  • n8n_get_tag - Get tag details
  • n8n_update_tag - Update tag names
  • n8n_delete_tag - Delete tags

Users Management (5 tools)

  • n8n_list_users - List all users
  • n8n_create_user - Create new users
  • n8n_get_user - Get user details
  • n8n_delete_user - Delete users
  • n8n_update_user_role - Update user roles

Projects Management (7 tools)

  • n8n_list_projects - List all projects
  • n8n_create_project - Create new projects
  • n8n_update_project - Update project details
  • n8n_delete_project - Delete projects
  • n8n_add_user_to_project - Add users to projects
  • n8n_remove_user_from_project - Remove users
  • n8n_update_user_in_project - Update user roles

Audit & Monitoring (3 tools)

  • n8n_generate_audit - Generate security audits
  • n8n_pull_source_control - Pull from source control
  • n8n_health_check - Check instance health

🔒 Security & Privacy

What data does this share?
- Only the data you ask Claude to fetch from n8n
- Your n8n API key stays on your computer (in .env file)
- No data is sent to third parties

Best practices:
- ✅ Never commit .env file to Git (it's in .gitignore)
- ✅ Use read-only API keys if possible
- ✅ Rotate your API keys periodically
- ✅ Don't share your .env file with anyone

Docker security:
- ✅ Runs as non-root user
- ✅ No privileged access required
- ✅ Isolated container environment


💡 Pro Tips

Tip 1: Create Shortcuts

Save common commands as Claude conversations for quick access.

Tip 2: Combine Operations

You can ask Claude to do multiple things at once:
"Show me all failed workflows from today, then retry each one"

Tip 3: Use Descriptive Workflow Names

Claude works better when your workflows have clear names like "Daily Email Report" instead of "Workflow 1"

Tip 4: Ask for Explanations

Claude can explain what workflows do: "Explain what my 'Customer Onboarding' workflow does"

Tip 5: Monitor in Real-Time

Ask Claude to check execution status while workflows are running


🚀 Next Steps

Now that you have it working:

  1. ⭐ Star this repo if it helped you!
  2. 🔁 Share with other n8n users
  3. 💬 Give feedback - what features do you want added?
  4. 🐛 Report bugs via GitHub Issues
  5. 🤝 Contribute - PRs welcome!

📞 Need Help?

  • GitHub Issues: https://github.com/Shravan1610/n8n-mcp-server/issues
  • n8n API Docs: https://docs.n8n.io/api/
  • MCP Documentation: https://modelcontextprotocol.io/
  • Docker MCP Gateway: https://github.com/docker/mcp-gateway

🙏 Acknowledgments

Built with:
- Anthropic MCP SDK
- n8n API
- Docker MCP Gateway


🎯 About This Project

This is Day 1 of my 30-day challenge to build useful AI integrations.

Built in one session. Open sourced for the community.

More projects coming! Follow for daily updates.


⭐ If this saved you time, drop a star on GitHub!

Built with Model Context Protocol · 42 Tools · Production Ready

常见问题

8 问
答案由本站依据条目字段整理,不引用上游原文
N8n MCP Server 699f6af6 怎么安装?

在客户端按下面的安装命令接入:docker run --rm -i --env-file .env n8n-mcp-server:latest。装完在客户端配置里引用同一个包或端点。

N8n MCP Server 699f6af6 怎么在 Claude Desktop、Claude 里配置?

它的传输方式是stdio · 本地进程,在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,配置才会生效。

N8n MCP Server 699f6af6 收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

N8n MCP Server 699f6af6 需要 API Key 吗?

资料标注为无需认证,装好就能连;如果实际调用时报鉴权错误,按官方文档补上凭据。

N8n MCP Server 699f6af6 支持哪些客户端?

资料标注支持 Claude Desktop、Claude;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

N8n MCP Server 699f6af6 能提供哪些能力?

资料显示约 42 个工具;能力标签包括 工作流自动化、自然语言交互、JavaScript、Claude、AI控制。具体工具清单以官方文档为准。

N8n MCP Server 699f6af6 需要什么运行环境?

运行时为 Docker;属于本地进程,需要在本机装好运行环境。

N8n MCP Server 699f6af6 是本地还是远程?

它是本地进程(stdio),由客户端在本机拉起。传输方式为stdio · 本地进程。

热门专题

按标签挑服务器
全部专题 →

服务器信息以作者仓库与官方文档为准;分类、传输方式与鉴权方式的中文说明为中文整理,最近核验 2026-05-17。