n8n-free-mcp
Allows management of n8n workflows, executions, and tags through the n8n API, including listing, creating, updating, activating/deactivating, and deleting workflows; listing and debugging executions; and checking connection status.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@n8n-free-mcp Show me the failed executions of the last runs and diagnose the error"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
n8n-free-mcp
Free & open-source MCP server for n8n. Manage your workflows, debug executions and control your self-hosted n8n instance directly from Claude Code, Claude Desktop, Cursor, or any Model Context Protocol client.
🆓 100% free, MIT licensed — no paywalls, no telemetry
🏠 Built for self-hosted / homelab n8n instances (works with n8n Cloud too)
🔑 Uses n8n's official public API (
/api/v1) with your own API key🪶 Tiny: one file, two dependencies (
@modelcontextprotocol/sdk+zod)🧠 Context-friendly: list tools return compact summaries instead of dumping full workflow JSON
Tools
Tool | Description |
| List workflows (id, name, active, tags, node count) with filters + pagination |
| Full workflow JSON: nodes, connections, settings |
| Create a new workflow from n8n-format JSON |
| Replace a workflow (read-only fields stripped automatically) |
| Toggle a workflow's triggers |
| Delete a workflow (irreversible ⚠️) |
| List executions, filter by status ( |
| Execution detail — with |
| Delete an execution record |
| List instance tags |
| Verify the instance is reachable and the API key works |
Related MCP server: n8n Workflow Builder MCP Server
Setup
1. Get an n8n API key
In your n8n instance: Settings → n8n API → Create an API key.
2. Install
git clone https://github.com/jserna0001/n8n-free-mcp.git
cd n8n-free-mcp
npm install
npm run build3. Configure your MCP client
Claude Code:
claude mcp add --scope user n8n \
--env N8N_API_URL=https://your-n8n-instance.com \
--env N8N_API_KEY=your-api-key \
-- node /path/to/n8n-free-mcp/dist/index.jsClaude Desktop / Cursor / other clients (claude_desktop_config.json, mcp.json, etc.):
{
"mcpServers": {
"n8n": {
"command": "node",
"args": ["/path/to/n8n-free-mcp/dist/index.js"],
"env": {
"N8N_API_URL": "https://your-n8n-instance.com",
"N8N_API_KEY": "your-api-key"
}
}
}
}Alternative: .env file. Instead of passing env vars from the client, copy .env.example to .env in the project root and fill it in. Environment variables from the client take precedence.
4. Try it
Ask your assistant things like:
"List my n8n workflows"
"Show me the failed executions of the last runs and diagnose the error"
"Deactivate the workflow called X"
"Duplicate this workflow but change the webhook path"
Notes
The n8n public API does not expose credential values (by design). Credential management tools are intentionally out of scope.
update_workflowperforms a full replace (PUT), as required by the n8n API — fetch withget_workflow, modify, then update.n8n API keys are JWTs with an expiration date. If you start getting 401s, generate a new key.
Contributing
Issues and PRs welcome. Ideas on the roadmap:
Trigger workflows via webhook test URLs
Variables & projects endpoints
npm package (
npx n8n-free-mcp)Docker image
License
MIT © Justine Serna
Available Tools
12 toolsactivate_workflowActivate workflowA
Activate a workflow (starts running on its triggers).
Inputs: id (required).
check_connectionCheck connectionA
Verify that the n8n instance responds and the API key is valid.
Inputs: no named parameters.
create_workflowCreate workflowA
Create a new workflow (created inactive; use activate_workflow to enable it). 'nodes' and 'connections' are JSON in n8n's standard export format.
Inputs: name (required), nodes (required), connections (required), settings.
deactivate_workflowDeactivate workflowA
Deactivate a workflow (stops responding to its triggers).
Inputs: id (required).
delete_executionDelete executionA
Delete an execution record. ⚠️ Irreversible.
Inputs: id (required).
delete_workflowDelete workflowA
Permanently delete a workflow. ⚠️ Irreversible — confirm with the user before using.
Inputs: id (required).
get_executionGet executionA
Get the details of an execution. With includeData=true it returns per-node data (can be very large) — ideal for diagnosing errors.
Inputs: id (required), includeData.
get_workflowGet workflowA
Get a full workflow by ID, including nodes, connections and settings.
Inputs: id (required), excludePinnedData.
list_executionsList executionsA
List workflow executions. Useful for debugging: filter by status ('error', 'success', 'waiting') or by workflowId.
Inputs: limit, cursor, status, workflowId.
list_tagsList tagsB
List the tags available on the n8n instance.
Inputs: limit, cursor.
list_workflowsList workflowsA
List workflows on the n8n instance. Returns id, name, active state, tags and dates. Supports cursor pagination.
Inputs: name, tags, limit, active, +2 more.
update_workflowUpdate workflowA
Replace an existing workflow (PUT). Pass the full workflow JSON (typically the result of get_workflow with modifications); read-only fields (id, active, tags, dates) are stripped automatically.
Inputs: id (required), workflow (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Each tool has a clearly distinct purpose: workflow CRUD, execution management, connection check, and tag listing. There is no overlap or ambiguity between tools like activate/deactivate or create/delete.
All tools follow a consistent verb_noun pattern with underscores (e.g., activate_workflow, list_executions, check_connection). No mixed conventions or irregular naming.
12 tools is well-scoped for managing n8n workflows and executions. Each tool serves a distinct function without redundancy, covering the primary operations needed.
The tool set fully covers workflow lifecycle (create, get, update, delete, activate, deactivate) and execution operations (list, get, delete), plus connection check and tag listing. No obvious gaps for the domain.
Maintenance
Related MCP Connectors
Open-source Zapier/n8n alternative as an MCP server: agents build, run and debug your workflows.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Build and run AI workflows, agents, data tables and 1000+ API integrations from any MCP client.
Related MCP Servers
- AlicenseBqualityDmaintenanceAn MCP server enabling secure interaction with n8n workflows, executions, and settings via the Model Context Protocol, designed for integration with Large Language Models (LLMs).3365 npm119MIT
- AlicenseCqualityDmaintenanceA Model Context Protocol (MCP) server for programmatically creating and managing n8n workflows.118MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for n8n workflow automation, enabling management of workflows, executions, credentials, tags, users, and webhooks via an MCP-compatible client.MIT
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that generates production-ready n8n workflows from natural language prompts. Transform simple descriptions into fully validated, deployable automation workflows using AI-powered code generation.1-