n8n_list_workflows
Retrieve and view all workflows from your n8n instance to manage automation processes and monitor workflow inventory.
Instructions
List all workflows in n8n
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "n8n_list_workflows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of workflows to return (default: 50) | |
| cursor | No | Cursor for pagination |
Implementation Reference
- src/n8n-client.ts:48-54 (handler)The actual implementation of listing n8n workflows using the Axios client.
async listWorkflows(params?: { limit?: number; cursor?: string }): Promise<any> { const queryParams = new URLSearchParams(); if (params?.limit) queryParams.append('limit', params.limit.toString()); if (params?.cursor) queryParams.append('cursor', params.cursor); const response = await this.client.get(`/workflows?${queryParams}`); return response.data; } - src/index.ts:445-455 (registration)Tool registration for n8n_list_workflows in the MCP server.
{ name: 'n8n_list_workflows', description: 'List all workflows in n8n', inputSchema: { type: 'object', properties: { limit: { type: 'number', description: 'Number of workflows to return (default: 50)' }, cursor: { type: 'string', description: 'Cursor for pagination' }, }, }, }, - src/index.ts:54-60 (handler)The MCP request handler that delegates the n8n_list_workflows call to the n8nClient.
case 'n8n_list_workflows': { const result = await n8nClient.listWorkflows({ limit: (args?.limit as number) || 50, cursor: (args?.cursor as string) as string | undefined, }); return { content: [{ type: 'text', text: formatResponse(result) }],