n8n-free-mcp
Free and open-source MCP server for managing n8n workflows, executions, and tags via n8n's API. Enables workflow creation, activation, debugging, and deletion from any MCP client.
README
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 |
List workflows (id, name, active, tags, node count) with filters + pagination |
get_workflow |
Full workflow JSON: nodes, connections, settings |
create_workflow |
Create a new workflow from n8n-format JSON |
update_workflow |
Replace a workflow (read-only fields stripped automatically) |
activate_workflow / deactivate_workflow |
Toggle a workflow's triggers |
delete_workflow |
Delete a workflow (irreversible â ïļ) |
list_executions |
List executions, filter by status (error/success/waiting) or workflow |
get_execution |
Execution detail â with includeData=true returns per-node I/O for debugging |
delete_execution |
Delete an execution record |
list_tags |
List instance tags |
check_connection |
Verify the instance is reachable and the API key works |
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 build
3. 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.js
Claude 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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.