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.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.
Agent Surfaces
Machine-Readable Metadata
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
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. |