n8n Workflow Automation
БесплатноНе проверенEnables AI to create, manage, and execute n8n workflows using natural language commands for automating complex business processes without requiring technical kn
Описание
Enables AI to create, manage, and execute n8n workflows using natural language commands for automating complex business processes without requiring technical knowledge of n8n's internal APIs.
README
A Model Context Protocol (MCP) server that allows AI agents to interact with n8n workflows through natural language.
Deployment
One-Click Deploy to Railway
Note: After clicking the button, Railway will prompt you to configure the necessary environment variables (see below).
Docker Deployment (Manual / Local Testing)
The Dockerfile in this repository is configured to build the n8n-mcp-server and run it with Supergateway.
Build the Docker Image:
docker build -t n8n-mcp-server-supergateway .Run the Docker Container:
docker run --rm -it -p 8080:8080 \ -e PORT=8080 \ -e N8N_API_URL="YOUR_N8N_API_URL" \ -e N8N_API_KEY="YOUR_N8N_API_KEY" \ -e N8N_WEBHOOK_USERNAME="your_webhook_user" \ -e N8N_WEBHOOK_PASSWORD="your_webhook_password" \ -e DEBUG=true \ n8n-mcp-server-supergatewayReplace placeholder values with your actual n8n credentials. The server will be accessible via SSE on
http://localhost:8080. Supergateway provides default paths/ssefor the event stream and/messagefor posting messages.
Configuration
The server requires the following environment variables. When deploying to Railway using the button, you will be prompted for these. For local Docker runs, pass them using the -e flag as shown above.
N8N_API_URL: Your n8n instance API URL (e.g.,https://n8n.example.com/api/v1). Required.N8N_API_KEY: Your n8n API Key. Required and treated as a secret.N8N_WEBHOOK_USERNAME: A username for basic authentication on n8n webhook nodes (if your workflows use webhook triggers secured with basic auth). Default:anyname.N8N_WEBHOOK_PASSWORD: A password for basic authentication on n8n webhook nodes. Default:somepassword.DEBUG: Set totruefor verbose logging from the n8n-mcp-server and Supergateway, orfalsefor production. Default:false.PORT: The port the application will listen on. Railway sets this automatically. Supergateway uses this variable. TheDockerfiledefault is8080.
Generating an n8n API Key
- Open your n8n instance in a browser.
- Go to Settings > API (or a similar path depending on your n8n version).
- Create a new API key with appropriate permissions.
- Copy the key.
Connecting to the Server (Client Integration)
Once the n8n-mcp-server is running (e.g., deployed on Railway or locally in Docker), it exposes an MCP interface over Server-Sent Events (SSE).
The Supergateway instance within the Docker container (as defined in Dockerfile) typically makes the MCP server available at:
- SSE Stream:
http://<server_address>:<port>/sse - Message Endpoint:
http://<server_address>:<port>/message
(If deployed on Railway, <server_address>:<port> will be your public Railway URL, e.g., https://my-n8n-mcp.up.railway.app)
There are a couple of ways AI agents or MCP clients can connect:
Direct SSE Connection: If your MCP client (e.g., your AI agent's framework) natively supports connecting to an MCP server via an SSE URL and a message endpoint, configure it with the URLs mentioned above.
Example
mcp.jsonconfiguration for direct SSE:{ "n8n_local_docker_sse": { "url": "https://my-n8n-mcp.up.railway.app/sse", "disabled": false, "alwaysAllow": [ "mcp_n8n_docker_direct_list_workflows", "mcp_n8n_docker_direct_get_workflow", "mcp_n8n_docker_direct_create_workflow", "mcp_n8n_docker_direct_update_workflow", "mcp_n8n_docker_direct_delete_workflow", "mcp_n8n_docker_direct_activate_workflow", "mcp_n8n_docker_direct_deactivate_workflow", "mcp_n8n_docker_direct_list_executions" ], "timeout": 300 } }When you deploy add your variables and make sure to expose the 8080 port in railway.
Using Supergateway on the Client-Side (SSE-to-stdio bridge): If your MCP client expects to launch a local command that communicates via stdio (standard input/output), you can use another Supergateway instance locally on the client's machine to bridge the remote SSE connection back to stdio.
Example
mcp.jsonor similar client configuration:{ "mcpServers": { "n8n-remote-sse": { "command": "npx", "args": [ "-y", "supergateway", "--sse", "http://<server_address>:<port>", // Replace with your actual server URL "--outputTransport", "stdio", "--logLevel", "info" // Optional: for debugging Supergateway on the client ], "env": { // Any environment variables Supergateway client might need, usually none for this mode }, "disabled": false } } }In this client-side Supergateway setup:
- Your AI agent's MCP client runs
npx -y supergateway --sse ...as its command. - This local Supergateway connects to your remote
n8n-mcp-server's SSE endpoint. - It then presents an MCP interface over stdio to your AI agent.
- Your AI agent's MCP client runs
Available Tools
The server provides the following tools (accessed via the MCP connection established above):
Using Webhooks
This MCP server supports executing workflows through n8n webhooks. To use this functionality:
- Create a webhook-triggered workflow in n8n.
- Set up Basic Authentication on your webhook node (optional, but recommended).
- Use the
run_webhooktool to trigger the workflow, passing just the workflow name.
Example (conceptual client-side code):
// Assuming 'mcp.tools.run_webhook' is available on your connected MCP client instance
const result = await mcp.tools.run_webhook({
workflowName: "hello-world", // Will call <n8n-url>/webhook/hello-world
data: {
prompt: "Hello from AI assistant!"
}
});
Webhook authentication (if used) is handled using the N8N_WEBHOOK_USERNAME and N8N_WEBHOOK_PASSWORD environment variables configured for the server.
Workflow Management
workflow_list: List all workflowsworkflow_get: Get details of a specific workflowworkflow_create: Create a new workflowworkflow_update: Update an existing workflowworkflow_delete: Delete a workflowworkflow_activate: Activate a workflowworkflow_deactivate: Deactivate a workflow
Execution Management
execution_run: Execute a workflow via the API // Note: run_webhook is already listed above, often preferred for triggering.execution_get: Get details of a specific executionexecution_list: List executions for a workflow //execution_stopmight not be implemented in all n8n versions or the base server.
Self-Hosting (Advanced)
For users who prefer to run the server outside of Docker or a platform like Railway, you can run the Node.js application directly. This gives you more control but requires manual setup of the execution environment and potentially Supergateway if SSE is desired.
Clone the Repository:
git clone https://github.com/YOUR_USERNAME/YOUR_REPONAME.git # Replace with your repository URL cd YOUR_REPONAMEInstall Dependencies:
npm installBuild the Server:
npm run buildThis compiles the TypeScript to JavaScript in the
builddirectory.Configure Environment Variables: Create a
.envfile in the project root (you can copy.env.example) and fill in your n8n API details (N8N_API_URL,N8N_API_KEY, etc.) and any other required variables likePORT(if not 8080) orDEBUG.Run the stdio MCP Server:
node build/index.jsThis will start the
n8n-mcp-servercommunicating over standard input/output (stdio).**Exposing via SSE (Optional, Manual Supergateway Setup): If you need to access this self-hosted server via SSE, you will need to run your own instance of Supergateway to wrap the stdio command above. For example:
npx -y supergateway --stdio "node build/index.js" --port 8080 # Add other Supergateway flags as neededEnsure that the environment variables configured in step 4 are accessible to the
node build/index.jsprocess when launched by Supergateway.
This method is more involved than the Docker or Railway deployments, which handle the Supergateway integration automatically within the container.
Credits
Based on this repo: https://github.com/leonardsellem/n8n-mcp-server/
License
MIT
Установка n8n Workflow Automation
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/jacob-dietle/n8n-mcp-sseFAQ
n8n Workflow Automation MCP бесплатный?
Да, n8n Workflow Automation MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для n8n Workflow Automation?
Нет, n8n Workflow Automation работает без API-ключей и переменных окружения.
n8n Workflow Automation — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить n8n Workflow Automation в Claude Desktop, Claude Code или Cursor?
Открой n8n Workflow Automation на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Opencode Omniroute Plugin
OpenCode plugin for the OmniRoute AI Gateway. Drives dynamic model discovery, /connect auth flow, and multi-instance OmniRoute providers via the official @openc
автор: GitHub ActionsRoblox Studio
Enables AI coding tools to control Roblox Studio for workspace exploration, instance manipulation, and script management. It provides tools for playtesting, sce
автор: paralovAntigravity Drawio
MCP server that enables AI assistants to create, parse, render, and validate Draw.io diagrams programmatically.
автор: S-SUJAN-SFetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzMCP-Agent
A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)
автор: lastmile-aiSpring AI MCP Client
Provides auto-configuration for MCP client functionality in Spring Boot applications.
mcp.natoma.ai
A Hosted MCP Platform to discover, install, manage and deploy MCP servers by [Natoma Labs](https://www.natoma.ai)
Compare n8n Workflow Automation with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
