Skip to main content
Glama

mcp-n8n

License: MIT

n8n workflow automation API as a Python library, LangChain tools, and MCP server. Manage workflows, executions, credentials, tags, users, and webhooks from code or an MCP-compatible client.

Features

25 tools across 5 categories:

  • Workflows (10) -- list, get, create, update, delete, activate, deactivate, execute, list active, get activation errors

  • Executions (5) -- list, get, delete, retry, stop

  • Credentials (4) -- list, get schema, create, delete

  • Tags (3) -- list, create, delete

  • Misc (3) -- list users, trigger webhook, check status

Installation

# Core library only
pip install .

# With MCP server
pip install ".[mcp]"

# With LangChain tools
pip install ".[langchain]"

# Everything
pip install ".[all]"

Configuration

Variable

Description

Default

N8N_API_KEY

n8n API key

(required)

N8N_HOST

n8n host and port

localhost:5678

N8N_PROTOCOL

Protocol (http or https)

http

N8N_BASE_URL

Full base URL (overrides protocol + host)

(computed)

Create a .env file:

N8N_API_KEY=your-n8n-api-key
N8N_HOST=localhost:5678
N8N_PROTOCOL=http

Quick Start

MCP Server

mcp-n8n

LangChain Tools

from mcp_n8n.langchain_tools import TOOLS, n8n_list_workflows

# Use individual tools
result = n8n_list_workflows.invoke({})

# Or pass all tools to an agent
from langchain.agents import AgentExecutor
agent = AgentExecutor(tools=TOOLS, ...)

Python Library

from mcp_n8n.client import N8nClient

client = N8nClient()
workflows = client.get_sync("/workflows")

License

MIT

A
license - permissive license
-
quality - not tested
C
maintenance

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

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/lyzetam/mcp-n8n'

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