N8n MCP Server — hosted Automation integration for AI agents
MCP Server language Hosted language PublicList, trigger, and manage n8n workflows — execute automations, check execution status, and manage credentials from any agent.
Use with AI AssistantsMCP
Connect Claude, Cursor, or any MCP-compatible client — then call tools directly
① Add This MCP Server
Paste into your AI client config — then all its tools are available instantly.
{
"mcpServers": {
"n8n": {
"url": "https://mcp.aerostack.dev/s/aerostack/mcp-n8n",
"headers": {
"Authorization": "Bearer YOUR_AEROSTACK_TOKEN"
}
}
}
}Replace YOUR_AEROSTACK_TOKEN with your API token from the dashboard.
② Call a Tool
Ask your AI assistant to call a specific tool, or send raw JSON-RPC:
Natural Language Prompt
“Use the _ping tool to verify n8n api connectivity by fetching instance owner info. used internally by aerostack to validate credentials”
Using a Workspace?
Add this MCP to your Workspace — your team shares one token, secrets are stored securely, and every AI agent in the workspace can call it without per-user setup.
description Overview
mcp-n8n — n8n Workflow Automation MCP Server
List, trigger, and manage n8n workflows — execute automations, check execution status, and manage credentials from any agent.
n8n is the open-source workflow automation platform that connects hundreds of services. This MCP server gives your AI agents the ability to list workflows, trigger executions with input data, monitor execution status, and inspect credentials and tags — making n8n a powerful automation backend for any AI-driven workflow.
Live endpoint: https://mcp.aerostack.dev/s/aerostack/mcp-n8n
What You Can Do
- Trigger n8n workflows on demand from any agent conversation — pass input data and get execution results back
- List and inspect workflows to understand what automations are available before triggering them
- Monitor execution history to check if workflows succeeded, failed, or are still running
- Activate or deactivate workflows to control which automations are live without opening the n8n UI
- List credentials and tags to understand what integrations and organization are configured
Setup (Important — read before using)
Step 1: Enable the n8n API
The n8n REST API must be enabled on your instance.
Self-hosted n8n:
Set the environment variable N8N_PUBLIC_API_ENABLED=true (enabled by default on most installations).
n8n Cloud:
The API is enabled by default. Go to Settings → API to verify.
Step 2: Create an API Key
- Open your n8n instance → Settings → API
- Click Create API Key
- Copy the generated key (starts with
n8n_api_...on newer versions)
Step 3: Add to Aerostack Workspace
- Go to your Aerostack workspace → Add Server → search "n8n"
- Enter your secrets when prompted:
N8N_API_URL— Your n8n instance URL (e.g.,https://n8n.example.comorhttps://your-instance.app.n8n.cloud)N8N_API_KEY— The API key from Step 2
- Click Test to verify the connection
Available Tools
| Tool | Description |
|---|---|
list_workflows |
List all workflows with optional active/inactive filter |
get_workflow |
Get full workflow details including nodes and connections |
activate_workflow |
Activate a workflow so its triggers start firing |
deactivate_workflow |
Deactivate a workflow to stop its triggers |
execute_workflow |
Trigger a workflow execution with optional input data |
list_executions |
List recent executions with optional workflow and status filters |
get_execution |
Get full execution details including per-node results |
list_credentials |
List configured credentials (names and types only — secrets never exposed) |
get_tags |
List all tags used to organize workflows |
Configuration
| Variable | Required | Description |
|---|---|---|
N8N_API_URL |
Yes | Your n8n instance base URL (e.g., https://n8n.example.com) |
N8N_API_KEY |
Yes | n8n API key from Settings → API |
Troubleshooting
| Error | Cause | Fix |
|---|---|---|
n8n API 401 |
Invalid or expired API key | Generate a new API key in n8n Settings → API |
n8n API 403 |
API key lacks permissions | Ensure the API key owner has admin access |
n8n API 404 |
Wrong base URL or workflow ID doesn't exist | Verify N8N_API_URL points to your n8n instance (not a subpath) |
fetch failed |
n8n instance is unreachable | Verify your n8n instance is running and accessible from the internet |
Missing N8N_API_URL secret |
Secret not configured in Aerostack | Add N8N_API_URL to your workspace secrets |
Example Prompts
"List all active n8n workflows"
"Trigger the 'Daily Report' workflow with today's date as input"
"Show me the last 10 executions for workflow 42 — did any fail?"
"Deactivate the onboarding workflow while we fix the email template"
"What credentials are configured in n8n?"
Direct API Call
curl -X POST https://mcp.aerostack.dev/s/aerostack/mcp-n8n \
-H 'Content-Type: application/json' \
-H 'X-Mcp-Secret-N8N-API-URL: https://n8n.example.com' \
-H 'X-Mcp-Secret-N8N-API-KEY: n8n_api_your-key-here' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_workflows","arguments":{"active":true}}}'
License
MIT
terminal Tools (10)
Available tools on this MCP server. Each tool can be called directly from any AI agent.
_ping #1 Verify n8n API connectivity by fetching instance owner info. Used internally by Aerostack to validate credentials.
list_workflows #2 List all n8n workflows with optional active/inactive filter
get_workflow #3 Get full details of a specific n8n workflow including all nodes and connections
activate_workflow #4 Activate an n8n workflow so its triggers start firing
deactivate_workflow #5 Deactivate an n8n workflow to stop its triggers from firing
execute_workflow #6 Trigger an n8n workflow execution with optional input data
list_executions #7 List recent executions for a workflow with optional status filter
get_execution #8 Get full details of a specific workflow execution including node results
list_credentials #9 List all credentials configured in n8n (names and types only — secrets are never exposed)
get_tags #10 List all tags used to organize workflows in n8n
Details
language Live Endpoint
https://mcp.aerostack.dev/s/aerostack/mcp-n8n
Sub-50ms globally · Zero cold start
Publisher
Pre-built functions for the most common MCP tool patterns. Clone, extend, and deploy.
More in Automation
Browse Automation MCPs →Zapier Automation
by @aerostack
8,000+ app integrations, trigger Zaps, run actions across Gmail, Slack, Sheets, HubSpot via Zapier's official MCP
Trigger Dev
by @aerostack
Trigger.dev background job platform — manage task runs, cancel or replay runs, and create cron schedules.
Frequently asked questions
What is the N8n MCP server and what can it do? +
The N8n MCP server is hosted on Aerostack and exposes these tools to your AI agent: `_ping`, `list_workflows`, `get_workflow`, `activate_workflow`, `deactivate_workflow`. You get one hosted URL — no self-hosting — that works from Claude, Cursor, ChatGPT, Gemini, VS Code, or any MCP-compatible client, and you can share it with your team or combine it with other MCP servers in a workspace.
Is the N8n MCP server hosted, or do I have to run it myself? +
It's hosted on Aerostack's edge infrastructure — you don't deploy or maintain anything. Add it to a workspace and you get one authenticated URL, with secrets encrypted, that any AI agent or editor can connect to. Use it solo or share the same URL across your whole team.
Which AI agents and editors can use the N8n MCP server? +
Any MCP client: Claude and Claude Code, Cursor, ChatGPT, Gemini, Windsurf, Cline, VS Code, and custom agents. Because it's one hosted URL, the same N8n MCP server works everywhere — and you can compose it with other MCP servers, skills, and functions behind a single workspace URL.
How do I install the N8n MCP server in Claude Desktop? +
Add the following to your Claude Desktop config (`claude_desktop_config.json`): ```json { "mcpServers": { "@aerostack/mcp-n8n": { "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-n8n"] } } } ``` Then restart Claude Desktop and the tools will appear automatically.
How do I use the N8n MCP server in Cursor? +
In Cursor, open **Settings → MCP** and add: ```json { "name": "@aerostack/mcp-n8n", "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-n8n"] } ``` Save and reload Cursor. The MCP tools will be available in Agent mode.
Does N8n MCP require authentication? +
Yes. N8n requires authentication. Check the MCP's documentation for the required credentials.