Get the FREE Ultimate OpenClaw Setup Guide →

N8N2MCP

Convert N8N agent / workflow into MCP servers, you can use it in Claude / Cursor / Super Chain

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio super-chain-n8n2mcp python main.py \
  --env MCP_HOST="0.0.0.0" \
  --env MCP_PORT="6545" \
  --env N8N_AUTH="" \
  --env FLASK_HOST="0.0.0.0" \
  --env FLASK_PORT="5000" \
  --env N8N_BASE_URL="https://your-n8n-instance.com" \
  --env N8N_PASSWORD="your_n8n_password" \
  --env N8N_USERNAME="your_n8n_username" \
  --env SUPABASE_KEY="your_supabase_anon_key" \
  --env SUPABASE_URL="https://your-project-id.supabase.co" \
  --env X_N8N_API_KEY="your_n8n_api_key" \
  --env N8N_BROWSER_ID="" \
  --env N8N_BUILDER_URL="http://localhost:6545" \
  --env SUPABASE_SERVICE_KEY="your_supabase_service_role_key"

How to use

N8N2MCP turns N8N workflows into MCP servers that can be invoked by AI assistants and MCP-compatible platforms. Once deployed, each MCP server exposes endpoints that allow you to list and call the converted MCP servers derived from your N8N workflows. Use the provided MCP URL in tools like Claude, Cursor, Super Chain, or any assistant that supports MCP routing. The integration workflow includes parsing N8N templates or uploading custom workflows, configuring credentials, and deploying the resulting MCP server so that AI agents can invoke your automations as function-like tools.

How to install

Prerequisites:

  • Python 3.11+ (recommended)
  • N8N instance (cloud or self-hosted)
  • Supabase account for data storage
  • Playwright (required for N8N authentication)
  • Docker optional for containerized deployment

Quick Start (Docker Compose):

  1. Clone the repository and install dependencies git clone https://github.com/Super-Chain/N8N2MCP.git cd N8N2MCP

  2. Configure environment cp env.example .env

    Edit .env with your actual values

  3. Start with Docker Compose docker-compose up -d

    Access: Flask App (Agent Marketplace) at http://localhost:5000

    MCP Router at http://localhost:6545

  4. View logs docker-compose logs -f

Manual Installation (Python):

  1. Clone the repository git clone https://github.com/Super-Chain/N8N2MCP.git cd N8N2MCP

  2. Install Python dependencies pip install -r requirements.txt

  3. Install Playwright browsers (required for N8N authentication) playwright install

  4. Configure environment cp .env.example .env

    Edit .env as needed

  5. Run the servers python main.py

    Access: UI at http://localhost:5000 and MCP Router at http://localhost:6545

Additional notes

Notes:

  • The system relies on a .env configuration. Ensure you populate SUPABASE_* and N8N_* values correctly for seamless operation.
  • Playwright is required for N8N workflow execution; without proper installation, credentials may be dummy and functionality will be limited.
  • If using Docker, ensure you have Docker and Docker Compose installed and that ports 5000 and 6545 are free.
  • The MCP endpoints follow the pattern http://<host>:6545/mcp/<workflow_id>/<api_key> for access; use list endpoint to enumerate registered MCP servers.
  • This setup exposes two parallel services: a Flask-based Agent Marketplace and the MCP Router. Both start with the same command (python main.py) under the provided environment configuration.

Related MCP Servers

Sponsor this space

Reach thousands of developers