Skip to main content
Glama

n8n MCP Server

by CodeHalwell

MCP-Based n8n Workflow Builder

This repo provides an MCP server exposing tools to build, validate, deploy, manage, and execute n8n workflows via the official n8n REST API. An optional Gradio UI enables human-friendly creation and deployment.

Quickstart

  1. Copy .env.template to .env and fill values.
  2. Create a virtual environment and install dependencies:
python -m venv .venv && source .venv/bin/activate pip install -r requirements.txt
  1. Connectivity check and run tests:
pytest -q
  1. Run MCP server over stdio:
python -m mcp_server
  1. (Optional) Run UI:
ENABLE_UI=true python -m ui.app

Structure

  • core/: builder, validator, config, logging
  • client/: n8n REST API client
  • mcp/: MCP server exposing tools
  • ui/: optional Gradio app
  • templates/: canonical JSON templates
  • tests/: unit + integration
  • docker/: containerization
  • scripts/: helpers

Security

  • Secrets come from environment variables. No secrets in code or logs.
  • Requests are rate-limited.
  • Audit logs for create/update/activate/deactivate/execute.

See docs/ and inline docstrings for more details.

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Enables creation, management, and execution of n8n workflows through a secure HTTP API. Provides tools to build workflows with schema validation, activate/deactivate them, and execute automation tasks programmatically.

  1. Quickstart
    1. Structure
      1. Security

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          A server for programmatically creating and managing n8n workflows with a REST API interface, supporting workflow creation, validation, and export.
          Last updated -
          98
          355
          MIT License
        • -
          security
          F
          license
          -
          quality
          A Master Control Program server that provides workflow validation tools and best practices for n8n automation projects, including workflow management, NextJS integration, and API access.
          Last updated -
          7
        • A
          security
          A
          license
          A
          quality
          🪄 MCP server for programmatic creation and management of n8n workflows. Enables AI assistants to build, modify, and manage workflows without direct user intervention through a comprehensive set of tools and resources for interacting with n8n's REST API.
          Last updated -
          10
          26
          68
          MIT License
          • Linux

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/CodeHalwell/n8n-mcp'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server