n8n-mcp tool fails with 404 error
Resolved 💬 4 comments Opened Oct 10, 2025 by pedja1904 Closed Jan 12, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
When I ask Claude Code to import a workflow to my self-hosted n8n instance, it tries to run a command with the package @n8n_io/n8n-mcp, which results in a 404 Not Found error from npm. It seems this package name is incorrect.
What Should Happen?
The Claude should have uploaded my n8n JSON workflow file to my Hostinger-hosted n8n
Error Messages/Logs
Perfect! I found your workflow. Now I'll upload it to your n8n instance using the n8n MCP tools. Let me first check if the n8n API is
configured and then create the workflow.
● Bash(npx -y @n8n_io/n8n-mcp n8n_create_workflow '{ timeout: 30s
"name": "RSD Bank Statement Automation - Enhanced",…)
⎿ Error: npm error code E404
npm error 404 Not Found - GET https://registry.npmjs.org/@n8n_io%2fn8n-mcp - Not found
npm error 404
npm error 404 The requested resource '@n8n_io/n8n-mcp@*' could not be found or you do not have permission to access it.
npm error 404
npm error 404 Note that you can also install from a
npm error 404 tarball, folder, http url, or git url.
npm error A complete log of this run can be found in: /home/pedja/.npm/_logs/2025-10-10T23_44_21_835Z-debug-0.log
● I see the n8n-MCP package isn't available via npx. Let me check if there's an MCP server already configured for n8n in your
environment by looking for available MCP tools:
● Bash(env | grep -i n8n)
⎿ PWD=/mnt/c/Users/pedja/n8n-projects/Test_Project_2
● Let me check if you have n8n installed locally or if there's a configuration file:
● Search(pattern: "**/.n8n*")
⎿ Found 0 files
● Search(pattern: "**/n8n.config.*")
⎿ Found 0 files
● Bash(which n8n || echo "n8n not found in PATH")
⎿ n8n not found in PATH
● I need to help you set up access to your n8n instance. To upload the workflow, I'll need some information:
To upload your workflow to n8n, I need to know:
1. Where is your n8n instance running?
- Is it running locally (e.g., http://localhost:5678)?
- Is it hosted on a cloud service (e.g., https://your-instance.n8n.cloud)?
- Self-hosted on a server?
2. Do you have API credentials?
- n8n API Key (you can generate this in n8n under Settings → API)
- Or username/password if using basic auth
Once you provide this information, I can:
- Use the n8n REST API to upload the workflow directly
- Or guide you through manual import steps
Alternative: Manual Import
If you prefer to import manually right now:
1. Open your n8n instance in a browser
2. Click "Workflows" → "Import from File" or "Import from URL"
3. Select the file: /mnt/c/Users/pedja/n8n-projects/Test_Project_2/workflows/rsd-bank-statement-automation.json
4. Click "Import"
Which approach would you prefer?
Steps to Reproduce
- Create an n8n json file with a workflow using Claude Code
- Ask Claude Code to upload it to n8n on Hostinger
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
v2.0.14
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗