This guide explains how n8n-MCP keeps its n8n dependencies up to date with the weekly n8n release cycle.
n8n releases new versions weekly, typically on Wednesdays. To ensure n8n-MCP stays compatible and includes the latest nodes, we've implemented automated dependency update systems.
Run the update script locally:
# Check for updates (dry run)
npm run update:n8n:check
# Apply updates
npm run update:n8n
# Apply updates without tests (faster, but less safe)
node scripts/update-n8n-deps.js --skip-testsThe script will:
- Check npm for latest versions of n8n packages
- Update package.json
- Run
npm installto update lock file - Rebuild the node database
- Run validation tests
- Generate an update summary
A GitHub Action runs every Monday at 9 AM UTC to:
- Check for n8n updates
- Apply updates if available
- Create a PR with the changes
- Run all tests in the PR
You can also trigger it manually:
- Go to Actions → "Update n8n Dependencies"
- Click "Run workflow"
- Choose options:
- Create PR: Creates a pull request for review
- Auto-merge: Automatically merges if tests pass
If you prefer Renovate over the custom solution:
- Enable Renovate on your repository
- The included
renovate.jsonwill:- Check for n8n updates weekly
- Group all n8n packages together
- Create PRs with update details
- Include links to release notes
The update system tracks these n8n packages:
n8n- Main package (includes n8n-nodes-base)n8n-core- Core functionalityn8n-workflow- Workflow types and utilities@n8n/n8n-nodes-langchain- AI/LangChain nodes
- Version Check: Compares current vs latest npm versions
- Package Update: Updates package.json with new versions
- Dependency Install: Runs npm install to update lock file
- Database Rebuild: Rebuilds the SQLite database with new node definitions
- Validation: Runs tests to ensure:
- All nodes load correctly
- Properties are extracted
- Critical nodes work
- Database is valid
Always review n8n release notes for breaking changes:
- Check n8n Release Notes
- Look for changes in node definitions
- Test critical functionality after updates
When n8n adds new nodes or changes existing ones:
- The database rebuild process will capture changes
- New properties/operations will be extracted
- Documentation mappings may need updates
If an update fails:
- Check the logs for specific errors
- Review release notes for breaking changes
- Run validation manually:
npm run build npm run rebuild npm run validate
- Fix any issues before merging
Edit .github/workflows/update-n8n-deps.yml:
schedule:
# Run every Wednesday at 10 AM UTC (after n8n typically releases)
- cron: '0 10 * * 3'Edit scripts/update-n8n-deps.js:
this.n8nPackages = [
'n8n',
'n8n-core',
'n8n-workflow',
'@n8n/n8n-nodes-langchain',
// Add more packages here
];Modify the GitHub Action to:
- Add more reviewers
- Change labels
- Update PR template
- Add additional checks
# See current versions
npm ls n8n n8n-core n8n-workflow @n8n/n8n-nodes-langchain
# Check latest available
npm view n8n version
npm view n8n-core version
npm view n8n-workflow version
npm view @n8n/n8n-nodes-langchain version- Check GitHub Actions history
- Review merged PRs with "dependencies" label
- Look at git log for "chore: update n8n dependencies" commits
# Run with more logging
LOG_LEVEL=debug node scripts/update-n8n-deps.js
# Skip tests to isolate issues
node scripts/update-n8n-deps.js --skip-tests
# Manually test each step
npm run build
npm run rebuild
npm run validate- Check Action logs in GitHub
- Run the update locally to reproduce
- Fix issues and push manually
- Re-run the Action
# Force rebuild
rm -f data/nodes.db
npm run rebuild
# Check specific nodes
npm run test-nodes
# Validate database
npm run validate- Updates are tested before merging
- PRs require review (unless auto-merge is enabled)
- All changes are tracked in git
- Rollback is possible via git revert
- Review PRs carefully - Check for breaking changes
- Test after updates - Ensure core functionality works
- Monitor n8n releases - Stay informed about major changes
- Update regularly - Weekly updates are easier than monthly
- Document issues - Help future updates by documenting problems
If updating manually:
- Check n8n release notes
- Run
npm run update:n8n:check - Review proposed changes
- Run
npm run update:n8n - Test core functionality
- Commit and push changes
- Create PR with update details
- Run full test suite
- Merge after review