MCPInstall
n8n-docker-mcp-zero-cost logo

n8n-docker-mcp-zero-cost

by encryptedtouhid 3 stars encryptedtouhid/n8n-docker-mcp-zero-cost

Run n8n automation tool with zero-cost cloud hosting, using Docker, n8n Community Proxy, and optional services like Cloudflare Tunnel for public access — no paid plans required.

READMEmain

🌀 Zero-Cost n8n Setup with Docker & Community Proxy (MCP)

This guide walks through setting up a free, self-hosted instance of n8n with the n8n Community Proxy (MCP), entirely using Docker.


✅ Prerequisites

  • 🐳 Docker & Docker Compose installed
  • ✅ Free domain (optional, for HTTPS)
  • ✅ Git + text editor (VSCode, etc.)
  • ⛅ Optional: Cloudflare Tunnel for remote access

📁 Step 1: Create a Project Folder

mkdir n8n-zerocost && cd n8n-zerocost

🧾 Step 2: Create .env File

# .env

N8N_BASIC_AUTH_USER=admin
N8N_BASIC_AUTH_PASSWORD=strongpassword

N8N_HOST=localhost
N8N_PORT=5678

N8N_EDITOR_BASE_URL=https://n8n.community
N8N_PROTOCOL=http
WEBHOOK_TUNNEL_URL=https://n8n.community

N8N_PERSONALIZATION_ENABLED=false
N8N_DIAGNOSTICS_ENABLED=false

⚙️ Step 3: Create docker-compose.yml

# docker-compose.yml

version: "3.7"
services:
  n8n:
    image: n8nio/n8n:latest
    restart: always
    ports:
      - "5678:5678"
    env_file:
      - .env
    volumes:
      - ./n8n_data:/home/node/.n8n
    environment:
      - N8N_COMMUNITY_PACKAGES_ALLOWED=true
      - N8N_TUNNEL_SUBDOMAIN=your-subdomain  # Optional

🌍 Step 4: Launch n8n

docker compose up -d

Check logs:

docker logs -f n8n

🔐 Step 5: Access Your n8n Editor

  • Locally: http://localhost:5678
  • Remotely (if using a tunnel): via n8n.community (MCP handles public tunnel)

☁️ Optional: Use Cloudflare Tunnel (Zero Trust)

cloudflared tunnel --url http://localhost:5678

🧪 Step 6: First Workflow

  1. Go to your n8n instance.
  2. Create a simple trigger like HTTP Request ➝ Respond with Message.
  3. Test it with the tunnel or MCP URL.

📦 Step 7: (Optional) Install Community Nodes

You can now install any free community package under Settings ➝ Community Nodes.


📁 Volumes

Your workflows and data will be stored in:

./n8n_data/

✅ Tips for Zero Cost Hosting

PlatformUse
RailwayFree Docker hosting
RenderFree web services
ReplitFor testing
CloudflareTunneling + free domain
n8n MCPFree tunnel proxy to public

🚨 Security

  • Always use strong username/password in .env
  • For production, use HTTPS (Cloudflare tunnel or NGINX)

✅ Done!

Your zero-cost n8n is now live and running with Docker and MCP!

More Deployment & DevOps MCP servers

Similar servers from the same category.

OpsLevel

opslevel

Provides direct access to OpsLevel's developer portal data, enabling intelligent interactions with service catalogs, component metrics, and operational workflows for DevOps teams managing service infrastructure.

TextModel

KubeSphere

kubesphere

Integrates with KubeSphere APIs to enable management of Kubernetes clusters, workspaces, users, and extensions through natural language commands without navigating the web console.

Deployment & DevOps

Integrates tools for managing resources in the Cloudflare Workers Platform.

Deployment & DevOps

EdgeOne Pages

tencentedgeone

Enables rapid deployment of HTML content to Tencent's EdgeOne Pages service with integrated Functions and KV store support for edge hosting

content