Indexer MCP server
Search the knowledge base through the platform's own MCP server: several indexes at once, hybrid search, label filters, pinned indexes, and the index chosen from a variable.
The knowledge base indexer of the platform is also an MCP server. Connected to an AI node, it gives the model the tool search_knowledge_base. Compared with the built-in Knowledge base tool, it can do more:
Indexes per search
One
One or several (results are merged and ranked together)
Index chosen
In the editor
From a flow variable — can change during the conversation
Search mode
Semantic
Semantic or hybrid (semantic + full-text)
Filter by document labels
No
Yes
Index from another project of the organization
No
Yes
Index always included in full ("pinned")
No
Yes
Fills kb_document_* variables
Yes
No — the call is recorded in mcp_call

The model sends only a search query. Which indexes are searched, and how, is decided by the flow variables described below — the model can neither see nor change them.
Connect the indexer
In the AI node (2.0), open Essential → MCP servers → + Add and click the new chip.
API call: Local. (Cloud does not work: the indexer is not reachable from the internet, and the search settings are passed only to Local servers.)
URL:
http://indexer:8000/mcp/— with the trailing slash. Without it, Connect fails with Request failed with status code 307.Authentication: off.
Click Connect. The server reports the name
indexer.In MCP tools, keep only search_knowledge_base checked (see Tools of the indexer).
Set at least one index variable (next section) before the flow reaches the AI node.
Tell the model in the Instructions when to search, for example "Before answering any question about our products, call search_knowledge_base. Answer only from the returned text."

Variables
Set the variables as ordinary flow variables, for example in the Variables section of a MESSAGE node placed before the AI node: click + Add, type the variable name in the top field and the value in the editor below, then Save. Text values are written in quotes, for example 'faq'. The variable name must match exactly.


Which index to search
Set exactly one of these:
index_name
Name of one index of the project
'faq'
index_names
Names of several indexes, as a comma-separated text or a list
'faq, pricing'
index_id
ID of one index
2234
index_ids
IDs of several indexes, comma-separated text or a list
'2234, 2235'
Optional:
index_project_id
ID of another project of the same organization that owns the index. Use it when several projects share one index.
The project of the conversation
How to search
top_k
Number of snippets returned, 1–100
3
amount_adjacent_snippets
Neighbouring snippets added to each hit, 0–5
0
retrieval_mode
'vector' (semantic search) or 'hybrid_bm25' (semantic + full-text)
'vector'
bm25_weight
Weight of the full-text part in hybrid search, 0.0–1.0
0.4
labels
Search only documents with these labels, comma-separated
all documents
Hybrid search helps when users ask with exact terms — product names, codes, tariff names — that semantic search alone can miss. It applies to indexes stored by the platform; indexes stored at a cloud provider keep their own search.
Labels are the document labels from the Knowledge base tab. They are case-sensitive.
Pinned indexes
pinned_index_names
Names of indexes whose whole content is added to every search result, comma-separated
pinned_index_ids
The same by index ID
A pinned index is not searched; its full content (all documents, all snippets in order) is appended after the search results on every search. Use it for small reference content the model must always have at hand, regardless of the question — a table of links, opening hours, a price list.
The model still has to call
search_knowledge_base; pinned content comes with the search result. A pinned index alone, without an index to search, does nothing.Keep pinned indexes small. Their content is cut at 100,000 characters by default and a note about the cut is added.
The content is the concatenation of the index snippets. If the index was created with snippet overlap, the overlapping text appears twice — create pinned indexes with overlap 0.
An unknown pinned index, or one from another project, is skipped; the search result is returned unchanged.
How values are read
Variables are read each time the flow enters the AI node, so set them in a node before it.
A value that is not valid — for example
bm25_weightof2, or an unknownretrieval_mode— is ignored and the default is used.If no index variable is set, the search tells the model that it is not configured.
Examples
One index
index_name
'faq'
Several indexes, hybrid search, more snippets
index_names
'faq, pricing, terms'
retrieval_mode
'hybrid_bm25'
bm25_weight
0.3
top_k
6
Index chosen by topic — the flow recognises the topic (for example with an ANSWER node), each branch sets index_name to 'billing' or 'technical', and both branches lead to the same AI node.
Search plus a pinned link table
index_name
'faq'
pinned_index_names
'deeplinks'
The question "When is the office open and where do I see my invoices?" returns the matching FAQ snippets followed by:
What the model receives
search_knowledge_base returns the found documents, each as the document name followed by its snippets, separated by ---:
If nothing matches, the model receives "No relevant information found in the knowledge base." The full call — query, settings and result — is recorded in mcp_call of the response variable.
Tools of the indexer
search_knowledge_base
Searches the indexes set in the variables.
Keep checked.
get_index_content
Returns an outline of one index: its documents, their descriptions, labels and snippet titles, without the snippet text.
Only for agents that should browse an index.
get_document_content
Returns the full text of selected documents of one index.
Only together with get_index_content.
get_index_content and get_document_content work with one index only (index_name or index_id).
Troubleshooting
"Knowledge base search is not configured correctly…"
No index variable is set, or two of them are set at once (for example index_name and index_names).
The model does not search
search_knowledge_base is unchecked, or the Instructions do not tell the model to search.
Results come from a different project's index of the same name
index_project_id points to another project.
Variables seem to be ignored
The server URL does not contain indexer, API call is set to Cloud, the variable name has a typo, or the variable is set only after the AI node.
Request failed with status code 307 on Connect
The URL is missing the trailing slash: use http://indexer:8000/mcp/.
Pinned content is cut
The pinned index is larger than 100,000 characters. Make it smaller or split the content.
Last updated
Was this helpful?