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 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-validator-mcp

v1.0.2

Published

MCP server for validating n8n nodes against official specifications

Readme

n8n Validator MCP

A comprehensive Model Context Protocol (MCP) server for validating n8n workflow nodes against their official specifications.

Overview

The n8n Validator MCP provides AI development tools with the capability to validate n8n node implementations, fetch official specifications, and compare node differences. This eliminates the frustration of generic "validation failed" errors by providing specific, actionable feedback.

Features

🔍 Node Validation

  • Validates local n8n nodes against official specifications
  • Detailed error reporting with specific paths and expected values
  • Compliance scoring from 0-100
  • Supports all n8n node types and versions

📋 Specification Fetching

  • Fetches official n8n node specifications from GitHub
  • Parses TypeScript definitions into structured data
  • Supports version-specific specifications
  • Intelligent caching for performance

🔄 Node Comparison

  • Compare two node implementations side-by-side
  • Categorizes differences (missing, extra, different values)
  • Deep object comparison with nested property support
  • Clear formatting for easy understanding

Installation

Method 1: Claude Desktop Extensions (Recommended - 2025)

The easiest way to install this MCP server is through Claude Desktop Extensions:

  1. Update Claude Desktop to the latest version
  2. Open SettingsExtensions in Claude Desktop
  3. Search for "n8n Validator MCP" in the extensions directory
  4. Click Install - no configuration required!

Desktop Extensions provide one-click installation with automatic updates and no dependency management.

Method 2: NPX Installation (Recommended for 2025)

The modern approach using npx without global installation:

Prerequisites

  • Node.js 18+ installed on your system
  • Claude Desktop app (macOS/Windows)

Configure Claude Desktop

  1. Open Claude DesktopSettingsDeveloper
  2. Click "Edit Config" to open claude_desktop_config.json
  3. Add the server configuration:
{
  "mcpServers": {
    "n8n-validator": {
      "command": "npx",
      "args": ["-y", "n8n-validator-mcp"]
    }
  }
}
  1. Restart Claude Desktop to load the server
  2. Verify installation by looking for the 🔨 hammer icon in Claude Desktop

Method 3: Global NPM Installation (Legacy)

For users who prefer global installation:

Install the Package

npm install -g n8n-validator-mcp

Configure Claude Desktop

{
  "mcpServers": {
    "n8n-validator": {
      "command": "n8n-validator-mcp",
      "args": []
    }
  }
}

Troubleshooting Installation

Common Issues:

  • Node.js version: Ensure you have Node.js 18+ installed (node --version)
  • NPX not found: Verify npx is available (npx --version)
  • PATH issues: On Windows, you may need "command": "cmd" with "/c" in args
  • Restart required: Always restart Claude Desktop after configuration changes

Advanced Configuration for Windows:

{
  "mcpServers": {
    "n8n-validator": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "n8n-validator-mcp"]
    }
  }
}

WSL Configuration:

{
  "mcpServers": {
    "n8n-validator": {
      "command": "wsl.exe",
      "args": ["bash", "-c", "npx -y n8n-validator-mcp"]
    }
  }
}

Verify Installation:

# Check Node.js and npx
node --version
npx --version

# Test the package directly
npx -y n8n-validator-mcp --help

Usage

With Claude Desktop

Once installed via either method, the n8n Validator MCP integrates seamlessly with Claude Desktop. Use natural language commands:

"Validate this GitHub node implementation"
"Show me what's wrong with my Slack node"
"Compare my local node with the official specification"
"Fetch the specification for the HTTP Request node"

Example Validation Output

# n8n Node Validation Result

## Validation Status: ❌ INVALID
## Compliance Score: 60/100

### Errors (4)
- **missing_property** at `displayName`: Required property 'displayName' is missing
- **missing_property** at `description`: Required property 'description' is missing
- **invalid_value** at `name`: Node name 'Template Selection Trigger' does not match specification 'webhook'
  Expected: "webhook"
  Actual: "Template Selection Trigger"
- **invalid_value** at `name`: Node name must start with a letter and contain only alphanumeric characters
  Expected: "alphanumeric name starting with letter"
  Actual: "Template Selection Trigger"

### Summary
Your n8n node implementation has 4 errors that need to be fixed.

### Recommendations
Please fix the errors listed above to ensure your node works correctly with n8n.

Alternative Configuration Methods

Using Claude Code CLI

# Register with user scope (persistent)
claude mcp add-json n8n-validator --scope user '{
  "command": "npx",
  "args": ["-y", "n8n-validator-mcp"]
}'

# Register with local scope (temporary)
claude mcp add-json n8n-validator --scope local '{
  "command": "npx",
  "args": ["-y", "n8n-validator-mcp"]
}'

VS Code Configuration

For VS Code users, create .vscode/mcp.json:

{
  "servers": {
    "n8n-validator": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "n8n-validator-mcp"]
    }
  }
}

Direct Usage

# Start the MCP server directly
npx -y n8n-validator-mcp

# The server provides three tools:
# - validate_n8n_node: Validate a node against official specs
# - fetch_node_spec: Get official node specifications
# - compare_nodes: Compare two node implementations

MCP Tools

validate_n8n_node

Validates a local n8n node implementation against its official specification.

Parameters:

  • nodeJson (string): The JSON string of the n8n node to validate
  • nodeType (string): The type of node (e.g., "Github", "Slack", "HTTP Request")
  • nodeVersion (string, optional): Version of the node to validate against

Returns:

  • Detailed validation report with errors, warnings, and compliance score
  • Specific error paths and expected vs actual values
  • Actionable recommendations for fixes

fetch_node_spec

Fetches the official specification for an n8n node from the repository.

Parameters:

  • nodeType (string): The type of node to fetch specification for
  • nodeVersion (string, optional): Version of the node spec to fetch

Returns:

  • Formatted specification with parsed TypeScript definitions
  • Property details and structure information
  • File paths and version information

compare_nodes

Compares two n8n node implementations and highlights differences.

Parameters:

  • localNode (string): Local n8n node JSON string
  • specNode (string): Official specification node JSON string

Returns:

  • Detailed comparison report with categorized differences
  • Side-by-side value comparison
  • Summary of changes needed

Development

Prerequisites

  • Node.js 18+
  • TypeScript 5.0+
  • GitHub access for fetching specifications

Setup

git clone <repository-url>
cd n8n-validator-mcp
npm install
npm run build

Testing

npm test                # Run all tests
npm run test:unit      # Run unit tests
npm run test:integration # Run integration tests
npm run test:coverage   # Run with coverage

Building

npm run build     # Compile TypeScript
npm run dev       # Watch mode for development

Architecture

The n8n Validator MCP follows a modular monolith architecture:

src/
├── tools/              # MCP tool implementations
├── services/           # Core business logic
├── infrastructure/     # Cross-cutting concerns
├── server/            # MCP server setup
└── types/             # TypeScript definitions

Key Components

  • Validation Engine: Core validation logic with comprehensive error reporting
  • GitHub Client: Robust API integration with caching and rate limiting
  • TypeScript Parser: Parses n8n node definitions from TypeScript source
  • Comparison Service: Deep object comparison for node differences
  • Error Handler: Centralized error handling with user-friendly messages
  • Cache Manager: Intelligent caching with TTL and LRU eviction

Configuration

Environment Variables

  • GITHUB_TOKEN: GitHub API token for higher rate limits (optional)

Performance

  • Validation: < 3 seconds for typical nodes
  • Specification Fetching: < 2 seconds with caching
  • Node Comparison: < 1 second for most comparisons
  • Cache Hit Rate: > 90% for repeated requests

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes with tests
  4. Run the test suite
  5. Submit a pull request

License

MIT License - see LICENSE file for details

Support

For issues and questions:

  • GitHub Issues: Report bugs and request features
  • Documentation: See /docs directory for detailed guides
  • Examples: Check /tests/fixtures for sample usage

Roadmap

  • AST-based Parsing: Upgrade from regex to proper TypeScript AST parsing
  • Advanced Validation: Deep property validation and credential checking
  • Performance Optimization: Enhanced caching and request batching
  • IDE Integration: VS Code extension for real-time validation
  • Custom Rules: User-defined validation rules and constraints

Built with the BMAD Method for comprehensive, production-ready software development.