Skip to content

Commit 1ca40ce

Browse files
authored
feat: local LLM template metadata + refresh template store (v2.50.0) (czlonkowski#766)
1 parent b98876d commit 1ca40ce

22 files changed

Lines changed: 554 additions & 134 deletions

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [2.50.0] - 2026-05-02
11+
12+
### Added
13+
14+
- **Local LLM support for template metadata generation.** `fetch:templates --metadata-only` now routes to any OpenAI-compatible server (vLLM, Ollama, llama.cpp's `/v1`) when `N8N_MCP_LLM_BASE_URL` is set, falling back to OpenAI's Batch API otherwise. New `SequentialMetadataProcessor` issues direct `chat.completions.create` calls with configurable concurrency, since vLLM and friends do not implement OpenAI's `/v1/batches` endpoint. New env vars: `N8N_MCP_LLM_BASE_URL`, `N8N_MCP_LLM_MODEL` (default `Qwen/Qwen3.5-9B`), `N8N_MCP_LLM_API_KEY` (defaults to `EMPTY` for keyless local servers), `N8N_MCP_LLM_CONCURRENCY` (default 40). The cloud Batch path is unchanged.
15+
- **Stronger, leak-resistant prompt** for template metadata. The system message now spells out what each schema field means (categories, use_cases, required_services, key_features, target_audience) and explicitly forbids echoing prompt headers, which fixes a class of failures where smaller open-source models occasionally emitted `Template: ...` strings into the `categories` array. `createBatchRequest()` now delegates to `buildChatRequest()`, so the cloud Batch path picks up the new prompt too — both paths share the same body verbatim.
16+
17+
### Changed
18+
19+
- **Template store refreshed from n8n.io.** The templates table was rebuilt against the current API: 2,352 templates, 156 ranked node configurations across the most-popular nodes. Previous rebuild dated 2025-12-24.
20+
- **Template metadata regenerated end-to-end** against a local Qwen3.5-9B vLLM instance: 2,351/2,352 templates carry fresh `metadata_json` (99.96% coverage). One template (4334) skipped due to a tokenizer encoding edge case in its source content.
21+
- **Community node store refreshed** from the n8n Strapi verified list and the top-100 npm packages: **830 community nodes** (was 768, +62 new). Existing READMEs and AI summaries preserved through the upsert. Total nodes in DB: 1,650 (820 base + 830 community).
22+
- **Community AI documentation summaries regenerated** against the same local Qwen3.5-9B instance: **825/830 nodes** with both `npm_readme` and `ai_documentation_summary` (99.4% coverage). The 5 misses are npm packages that publish no README on npmjs, so there is no source text to summarise.
23+
24+
### Notes
25+
26+
- Template fetch only drops the `templates` and `templates_fts` tables — never `nodes`. Community nodes were verified intact at 768 mid-run before the separate community refresh added the 62 new ones.
27+
- A backup of the pre-fetch database lives at `/tmp/nodes-pre-template-update-20260502-093230.db` on the maintainer's machine.
28+
29+
Conceived by Romuald Członkowski - https://www.aiadvisors.pl/en
30+
1031
## [2.49.0] - 2026-04-28
1132

1233
### Changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@
99
[![Docker](https://img.shields.io/badge/docker-ghcr.io%2Fczlonkowski%2Fn8n--mcp-green.svg)](https://github.com/czlonkowski/n8n-mcp/pkgs/container/n8n-mcp)
1010
[![Deploy on Railway](https://railway.com/button.svg)](https://railway.com/deploy/n8n-mcp?referralCode=n8n-mcp)
1111

12-
A Model Context Protocol (MCP) server that provides AI assistants with comprehensive access to n8n node documentation, properties, and operations. Deploy in minutes to give Claude and other AI assistants deep knowledge about n8n's 1,588 workflow automation nodes (820 core + 768 community).
12+
A Model Context Protocol (MCP) server that provides AI assistants with comprehensive access to n8n node documentation, properties, and operations. Deploy in minutes to give Claude and other AI assistants deep knowledge about n8n's 1,650 workflow automation nodes (820 core + 830 community).
1313

1414
## Overview
1515

1616
n8n-MCP serves as a bridge between n8n's workflow automation platform and AI models, enabling them to understand and work with n8n nodes effectively. It provides structured access to:
1717

18-
- **1,505 n8n nodes** - 812 core nodes + 693 community nodes (605 verified)
18+
- **1,650 n8n nodes** - 820 core nodes + 830 community nodes (741 verified)
1919
- **Node properties** - 99% coverage with detailed schemas
2020
- **Node operations** - 63.6% coverage of available actions
2121
- **Documentation** - 87% coverage from official n8n docs (including AI nodes)
2222
- **AI tools** - 265 AI-capable tool variants detected with full documentation
23-
- **Real-world examples** - 2,646 pre-extracted configurations from popular templates
24-
- **Template library** - 2,709 workflow templates with 100% metadata coverage
23+
- **Real-world examples** - 156 ranked configurations extracted from popular templates
24+
- **Template library** - 2,352 workflow templates with 99.96% AI metadata coverage
2525
- **Community nodes** - Search verified community integrations with `source` filter
2626

2727
## Support This Project
@@ -102,7 +102,7 @@ CRITICAL: Execute tools without commentary. Only respond AFTER all tools complet
102102
When operations are independent, execute them in parallel for maximum performance.
103103

104104
### 3. Templates First
105-
ALWAYS check templates before building from scratch (2,709 available).
105+
ALWAYS check templates before building from scratch (2,352 available).
106106

107107
### 4. Multi-Level Validation
108108
Use validate_node(mode='minimal') → validate_node(mode='full') → validate_workflow pattern.
@@ -298,7 +298,7 @@ Use the same four-parameter format:
298298
### Core Behavior
299299
1. **Silent execution** - No commentary between tools
300300
2. **Parallel by default** - Execute independent operations simultaneously
301-
3. **Templates first** - Always check before building (2,709 available)
301+
3. **Templates first** - Always check before building (2,352 available)
302302
4. **Multi-level validation** - Quick check → Full validation → Workflow validation
303303
5. **Never trust defaults** - Explicitly configure ALL parameters
304304

data/nodes.db

3.41 MB
Binary file not shown.

dist/scripts/fetch-templates.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/scripts/fetch-templates.js

Lines changed: 52 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)