KosmoKrator

productivity

n8n MCP, CLI, and Lua Integration for AI Agents

n8n integration docs for AI agents: MCP gateway setup, n8n CLI commands, Lua API reference, credentials, and function schemas.

7 functions 6 read 1 write API key auth

n8n for agents

Credentials can be configured manually in web or CLI hosts.

Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.

Machine-Readable Metadata
integration_slug
n8n
route_slug
n8n
package
n8n
auth_strategy
api_key API key
cli_setup_supported
true
cli_runtime_supported
true
mcp_gateway_supported
true
lua_supported
true
supports_multi_account
true

Quick Links

n8n MCP Client Matrix

Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for n8n.

n8n CLI Matrix

Use these pages for direct n8n CLI workflows in scripts, CI, cron, and agent wrappers.

Function Catalog

FunctionTypeParametersDescription
n8n.n8n_list_workflows Read read 2 List n8n workflows. Supports pagination with cursor and limit parameters.
n8n.n8n_get_workflow Read read 1 Get detailed information about a specific n8n workflow, including its nodes, connections, and settings.
n8n.n8n_create_workflow Write write 5 Create a new n8n workflow. Requires a name. Optionally define nodes, connections, and settings.
n8n.n8n_list_executions Read read 4 List n8n workflow executions. Supports filtering by status and workflow ID, with pagination.
n8n.n8n_get_execution Read read 1 Get detailed information about a specific n8n workflow execution, including status, data, and node results.
n8n.n8n_list_credentials Read read 2 List n8n credentials. Supports pagination with cursor and limit parameters.
n8n.n8n_get_current_user Read read 0 Get the authenticated n8n user's profile information, including name, email, and role.