MCPInstall
n8n-ai-unified-infrastructure-suite logo

n8n-ai-unified-infrastructure-suite

by pjawz 7 stars pjawz/n8n-ai-unified-infrastructure-suite

Self‑hosted AI & workflow automation platform — n8n orchestration, multi‑agent MCPs, Crawl4AI browser cluster, and Traefik reverse proxy in a single Docker Compose stack.

READMEmain

Banner image

Unified N8N AI Automation Infrastructure Suite

Self‑hosted AI & workflow automation platform — n8n orchestration, multi‑agent MCPs, Crawl4AI browser cluster, and Traefik reverse proxy in a single Docker Compose stack.

Features

  • End‑to‑end automation — orchestrate data flows, AI reasoning, browser actions, and scheduled tasks without juggling multiple servers.
  • AI‑ready out of the box — integrate OpenAI or local LLMs with n8n workflows; MCP agents handle scraping, parsing, and complex reasoning.
  • Self‑hosted & Privacy‑first — keep data and API keys on infrastructure you control.
  • One‑command deployment — docker compose up -d brings the entire stack online with SSL via Traefik and Let’s Encrypt.
  • Batteries included — sensible defaults, health checks, volume persistence, automated container updates (Watchtower), and pre‑configured Traefik labels.

Included Services

LayerComponentImagePurpose
Orchestrationn8n + Postgresn8nio/n8nLow‑code workflow engine and database
Agent LayerMCP servers (Sequential‑Thinking, Supabase, Apify, GitHub)community imagesSpecialized micro‑agents for scraping, API calls, and reasoning
Browser AutomationCrawl4AI (Chromium cluster)crawl4ai/crawl4aiDynamic web scraping & headless interaction
NetworkingTraefiktraefikReverse proxy with auto HTTPS & middleware
Messaging/OpsRedis, Watchtowerredis, containrrr/watchtowerQueues/caching and zero‑downtime auto‑updates

Tip : Each service definition lives in its own subfolder with environment examples and scaling notes.

Quick Start

# 1. Clone the repo
$ git clone https://github.com/pjawz/ai‑automation‑infrastructure‑suite.git
$ cd ai‑automation‑infrastructure‑suite

$ docker compose up -d

# 4. Access the UIs
- n8n : https://n8n.<your-domain>
- Traefik Dashboard : https://traefik.<your-domain>
- MCP APIs : https://mcp.<your-domain>/docs
- Crawl4AI : https://crawl.<your-domain>

Current Architecture Overview

                           ┌──────────────┐
                           │   Clients    │
                           └──────┬───────┘
                                  │ HTTPS (Traefik)
┌─────────────────────────────────┴──────────────────────────────────┐
│                           Traefik Proxy                           │
└────────────┬───────────────┬───────────────┬───────────────┬───────┘
             │               │               │               │
       n8n.<domain>     mcp.<domain>   crawl.<domain>   traefik.<dom>
             │               │               │
       ┌─────▼─────┐   ┌─────▼─────┐   ┌─────▼─────┐
       │   n8n     │   │   MCP     │   │ Crawl4AI  │
       │ +Postgres │   │ cluster   │   │ Chromium  │
       └───────────┘   └───────────┘   └───────────┘
             │               │               │
             └───────►  Redis  ◄──────────────┘

Full‑size diagram available in /docs/architecture.png

Scaling & Production Notes

  1. n8n workers — add n8n-worker replicas with queue mode enabled.
  2. Postgres — externalize to managed RDS or a separate container with persistent storage.
  3. Traefik — enable sticky sessions when scaling n8n horizontally.
  4. Crawl4AI — GPU acceleration optional; replicate containers behind internal load balancer.
  5. Logging/Monitoring — integrate Loki/Grafana or ELK via the /ops overlay compose file.

Customization Guide

  • Adding a new agent : copy /services/mcp-supabase as template, adjust image and labels, then append to docker-compose.yml.
  • New sub‑domain : add router rule in /services/traefik/traefik.yml and matching labels.
  • Secrets management : switch .env to .envrc + direnv, or use Docker Secrets.
  • CI/CD : reference /.github/workflows/ci.yml for automated build, lint, and push.

Roadmap

  • More MCP Servers
  • Automated MCP server additions
  • Auto‑scaling rules for MCU/MCP cluster
  • One‑click n8n workflow templates

Contributing

Pull requests welcome! Please open an issue first to discuss your proposed change. Follow the Contributor Guidelines and our Code of Conduct.

License

MIT © 2025. See LICENSE for details.

More OS Automation MCP servers

Similar servers from the same category.

Enables browser automation through structured accessibility snapshots for web navigation, form-filling, and tab management without requiring vision-tuned models.

browser

Browser automation for Cloudflare Workers and quick browser actions.

browser

Provides a bridge to virtual Ubuntu desktops for browsing the web, running code, and automating tasks through a sandboxed environment with bash command execution and natural language control.

TextModel

Enables LLMs to run Computer-Use Agent (CUA) workflows on Apple Silicon macOS.

environmentother+2