Skip to main content
Glama

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
NameRequiredDescriptionDefault
limitNoMaximum number of templates to return. Default 10.
nodeTypesYesArray 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 }; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/czlonkowski/n8n-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server