list_node_templates
Search and retrieve workflow templates in n8n using specific node types. Ideal for automating tasks by identifying relevant templates for integration.
Instructions
Find templates using specific nodes. 399 community workflows. Use FULL types: "n8n-nodes-base.httpRequest".
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of templates to return. Default 10. | |
| nodeTypes | Yes | Array of node types to search for (e.g., ["n8n-nodes-base.httpRequest", "n8n-nodes-base.openAi"]) |
Implementation Reference
- Input validation schema specifically for the 'list_node_templates' MCP tool. Validates nodeTypes (required array) and limit (optional number 1-50)./** * Validate parameters for list_node_templates tool */ static validateListNodeTemplates(args: any): ValidationResult { const nodeTypesResult = Validator.validateArray(args.nodeTypes, 'nodeTypes'); const limitResult = Validator.validateNumber(args.limit, 'limit', false, 1, 50); return Validator.combineResults(nodeTypesResult, limitResult); }
- Core business logic for listing n8n workflow templates that use specific node types. This is the primary implementation called by the MCP tool handler. Returns paginated TemplateInfo objects.async listNodeTemplates(nodeTypes: string[], limit: number = 10, offset: number = 0): Promise<PaginatedResponse<TemplateInfo>> { const templates = this.repository.getTemplatesByNodes(nodeTypes, limit, offset); const total = this.repository.getNodeTemplatesCount(nodeTypes); return { items: templates.map(this.formatTemplateInfo), total, limit, offset, hasMore: offset + limit < total }; }