productivity
n8n MCP Integration for OpenAI Agents SDK
Connect n8n to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect n8n to OpenAI Agents SDK
Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway.
Start the KosmoKrator MCP gateway locally and point the OpenAI Agents SDK MCP tool at that process or wrapper. The gateway is local, scoped to this integration, and starts with
--write=deny so OpenAI Agents can inspect read-capable tools without receiving write access by default.
n8n MCP Config for OpenAI Agents SDK
Use headless JSON commands for CI-style execution and MCP for agent tool discovery.
{
"mcpServers": {
"kosmokrator-n8n": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=n8n",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=n8n --write=deny Why Use KosmoKrator Here
Expose only n8n instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
n8n Tools Visible to OpenAI Agents
OpenAI Agents sees stable MCP tool names generated from the n8n integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__n8n__n8n_list_workflows | n8n.n8n_list_workflows | Read | List n8n workflows. Supports pagination with cursor and limit parameters. |
integration__n8n__n8n_get_workflow | n8n.n8n_get_workflow | Read | Get detailed information about a specific n8n workflow, including its nodes, connections, and settings. |
integration__n8n__n8n_create_workflow | n8n.n8n_create_workflow | Write | Create a new n8n workflow. Requires a name. Optionally define nodes, connections, and settings. |
integration__n8n__n8n_list_executions | n8n.n8n_list_executions | Read | List n8n workflow executions. Supports filtering by status and workflow ID, with pagination. |
integration__n8n__n8n_get_execution | n8n.n8n_get_execution | Read | Get detailed information about a specific n8n workflow execution, including status, data, and node results. |
integration__n8n__n8n_list_credentials | n8n.n8n_list_credentials | Read | List n8n credentials. Supports pagination with cursor and limit parameters. |
integration__n8n__n8n_get_current_user | n8n.n8n_get_current_user | Read | Get the authenticated n8n user's profile information, including name, email, and role. |