npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

n8n-nodes-claudecode-enhanced

v1.0.9

Published

Enhanced n8n node for Claude Code with native authentication, advanced MCP support, and enterprise features

Downloads

16

Readme

Enhanced Claude Code - n8n Community Node

npm version License: MIT

🚀 An enhanced version of the Claude Code n8n community node with enterprise features!

This project extends the original @holtweb/n8n-nodes-claudecode with powerful enhancements for production use.

✨ Key Features

  • Native Authentication - Built-in credential management without CLI dependency
  • Direct API Access - Bypass Claude Code CLI when needed
  • Latest Models - Access to Claude 3.5 Sonnet, Haiku, and Opus
  • Enterprise Ready - Advanced error handling, debugging, and monitoring
  • Backward Compatible - Works with existing workflows
  • 🔄 Future MCP Support - Native MCP protocol integration (planned)

🔥 What's Enhanced

| Feature | Original | Enhanced | |---------|----------|----------| | Authentication | CLI-only | Built-in credentials + CLI | | API Access | CLI wrapper only | Direct API + CLI fallback | | Model Support | Legacy names | Latest model identifiers | | Error Handling | Basic | Enterprise-grade recovery | | Configuration | Static | Dynamic with validation | | Debugging | Limited | Comprehensive logging |

🚀 Quick Start

Docker (Recommended)

docker run -it --rm \
  -p 5678:5678 \
  -e N8N_COMMUNITY_NODE_PACKAGES="n8n-nodes-claudecode-enhanced" \
  -v ~/.n8n:/home/node/.n8n \
  n8nio/n8n

npm

npm install n8n-nodes-claudecode-enhanced

📖 Documentation

🎯 Migration from Original

The enhanced node is 100% backward compatible. Simply:

  1. Install the enhanced package
  2. Replace "Claude Code" nodes with "Claude Code Enhanced"
  3. Optionally configure new authentication method
  4. Enjoy the new features!

🔧 Configuration

Authentication Options

Option 1: API Key (Recommended)

// In n8n Credentials
{
  "authMethod": "credentials",
  "apiKey": "sk-ant-your-api-key",
  "organizationId": "optional-org-id"
}

Option 2: CLI Authentication

// Uses existing Claude Code CLI setup
{
  "authMethod": "cli"
}

Operation Modes

Query Mode

Start fresh conversations with full tool access:

{
  "operation": "query",
  "prompt": "Create a Python web scraper",
  "model": "claude-3-5-sonnet-20241022"
}

Continue Mode

Maintain conversation context:

{
  "operation": "continue", 
  "prompt": "Now add error handling"
}

Direct API Mode

Fast text generation without tools:

{
  "operation": "direct",
  "prompt": "Explain async/await in JavaScript",
  "model": "claude-3-5-sonnet-20241022",
  "maxTokens": 2000,
  "temperature": 0.3
}

🏗️ Development

Building from Source

git clone https://github.com/shaike1/n8n-claudecode.git
cd n8n-claudecode
npm install
npm run build

Testing Locally

npm link
n8n start

Project Structure

├── nodes/
│   └── ClaudeCode/
│       ├── ClaudeCode.node.ts          # Original node (maintained)
│       └── ClaudeCodeEnhanced.node.ts  # Enhanced node
├── credentials/
│   ├── ClaudeCodeApi.credentials.ts    # API credential type
│   └── MCPServer.credentials.ts        # MCP server credential (future)
├── examples/                           # Usage examples
├── workflow-templates/                 # Pre-built workflows
└── docs/                              # Additional documentation

🤝 Contributing

Contributions welcome! Please:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📋 Roadmap

v1.0.0 ✅ (Current)

  • Native authentication support
  • Direct API access capability
  • Latest Claude model support
  • Enhanced error handling and debugging

v1.1.0 🔄 (In Progress)

  • Native MCP protocol support
  • Advanced MCP server management
  • Streaming response support
  • Workflow templates

v1.2.0 📅 (Planned)

  • OAuth2 authentication
  • Team/organization management
  • Usage analytics and monitoring
  • Custom tool development SDK

🐛 Troubleshooting

Common Issues

"Invalid API key" Error

  • Verify your Anthropic API key is correct
  • Ensure sufficient API credits
  • Check base URL if using custom endpoint

"Claude Code CLI not found"

  • Install Claude Code CLI: npm install -g @anthropic-ai/claude-code
  • Authenticate: claude auth login
  • Verify: claude --version

Timeout Errors

  • Increase timeout in Additional Options
  • Break complex tasks into smaller steps
  • Use Continue operation for multi-step workflows

Node Not Appearing

  • Restart n8n after installation
  • Check community packages are enabled
  • Verify package name: @shaike1/n8n-nodes-claudecode-enhanced

Debug Mode

Enable detailed logging:

{
  "additionalOptions": {
    "debug": true
  }
}

📄 License

MIT License - see LICENSE.md for details.

🙏 Acknowledgments

📞 Support


If this project helps you, please give it a star!