You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I successfully integrated n8n workflow management with Claude Desktop on Windows. The current n8n-mcp package provides great documentation tools, but doesn't include API workflow management. Here's a complete working solution that adds those capabilities. GITHUB-SOLUTION-POST.md
Using n8n API with Claude Desktop on Windows - Complete Working Solution
Summary
This guide shows how to successfully integrate n8n workflow management with Claude Desktop on Windows using a custom MCP server that provides full API access (create, read, update, delete, activate/deactivate workflows).
Background
The n8n-mcp npm package provides excellent documentation and template tools, but it does not include actual n8n API workflow management capabilities. This solution creates a custom MCP server that connects directly to your n8n instance via the REST API.
What You'll Get
✅ List all n8n workflows
✅ Get workflow details
✅ Create new workflows
✅ Update existing workflows
✅ Delete workflows
✅ Activate/deactivate workflows
✅ Full integration with Claude Desktop
Prerequisites
Node.js installed
n8n instance running (local or remote)
n8n API key
Claude Desktop
Installation Steps
1. Create Project Directory
mkdir n8n-api-mcp
cd n8n-api-mcp
2. Create package.json
{
"name": "n8n-api-mcp-server",
"version": "1.0.0",
"description": "n8n API MCP Server for Claude Desktop",
"main": "index.js",
"type": "commonjs",
"dependencies": {
"@modelcontextprotocol/sdk": "^1.0.0",
"axios": "^1.7.0"
}
}
3. Create index.js
See the full server code in the linked Gist or at the end of this post.
4. Install Dependencies
npm install
5. Get Your n8n API Key
Open n8n → Settings → API
Click "Create API Key"
Name it: "Claude MCP Integration"
Copy the generated key
6. Configure Claude Desktop
Edit: %APPDATA%\Claude\claude_desktop_config.json
⚠️ Important: Use forward slashes (/) in Windows paths!
Verify n8n is accessible: curl http://localhost:5678
Check API key in n8n settings
Always click "Allow once" or "Always allow"
❌ Server shows "Failed" status
Solution:
# Check logs
type "%LOCALAPPDATA%\AnthropicClaude\logs\mcp-server-n8n-api.log"# Test server manually
cd C:\path\to\n8n-api-mcp
set N8N_API_URL=http://localhost:5678/api/v1
set N8N_API_KEY=your-key
node index.js
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I successfully integrated n8n workflow management with Claude Desktop on Windows. The current n8n-mcp package provides great documentation tools, but doesn't include API workflow management. Here's a complete working solution that adds those capabilities.
GITHUB-SOLUTION-POST.md
Using n8n API with Claude Desktop on Windows - Complete Working Solution
Summary
This guide shows how to successfully integrate n8n workflow management with Claude Desktop on Windows using a custom MCP server that provides full API access (create, read, update, delete, activate/deactivate workflows).
Background
The
n8n-mcpnpm package provides excellent documentation and template tools, but it does not include actual n8n API workflow management capabilities. This solution creates a custom MCP server that connects directly to your n8n instance via the REST API.What You'll Get
✅ List all n8n workflows
✅ Get workflow details
✅ Create new workflows
✅ Update existing workflows
✅ Delete workflows
✅ Activate/deactivate workflows
✅ Full integration with Claude Desktop
Prerequisites
Installation Steps
1. Create Project Directory
mkdir n8n-api-mcp cd n8n-api-mcp2. Create
package.json{ "name": "n8n-api-mcp-server", "version": "1.0.0", "description": "n8n API MCP Server for Claude Desktop", "main": "index.js", "type": "commonjs", "dependencies": { "@modelcontextprotocol/sdk": "^1.0.0", "axios": "^1.7.0" } }3. Create
index.jsSee the full server code in the linked Gist or at the end of this post.
4. Install Dependencies
5. Get Your n8n API Key
6. Configure Claude Desktop
Edit:
%APPDATA%\Claude\claude_desktop_config.json/) in Windows paths!{ "mcpServers": { "n8n-api": { "command": "node", "args": ["C:/path/to/n8n-api-mcp/index.js"], "env": { "N8N_API_URL": "http://localhost:5678/api/v1", "N8N_API_KEY": "your-api-key-here" } } } }For remote/tunneled n8n:
7. Test the Integration
Usage Examples
List Workflows
Get Workflow Details
Create a Workflow
Update a Workflow
Activate/Deactivate
Troubleshooting
❌ "Command not found" or "Module not found"
Solution: Use forward slashes in path:
❌ "No result received"
Possible causes:
Solution:
curl http://localhost:5678❌ Server shows "Failed" status
Solution:
Full Server Code
Click to expand complete index.js
Features
Comparison with n8n-mcp Package
Recommendation: Use both together! Use
n8n-mcpfor documentation/templates and this custom server for workflow management.Contributing
Feel free to extend this server with additional n8n API endpoints:
License
MIT
Related
Status: ✅ Tested and working on Windows 11 with Claude Desktop v0.14.4 and n8n v1.115.2
Beta Was this translation helpful? Give feedback.
All reactions