{"record":{"id":"3f50f74f6d2aafb2","repo":"n8n-io/n8n","slug":"mcp-server-search-is-not-available-on-this-instanc","errorCode":null,"errorMessage":"MCP server search is not available on this instance.","messagePattern":"MCP server search is not available on this instance\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/@n8n/instance-ai/src/tools/mcp-servers.tool.ts","lineNumber":123,"sourceCode":"\tslug: string,\n): z.infer<typeof detailsOutputSchema> {\n\tconst service = (context.connectedMcpServices ?? []).find((entry) => entry.slug === slug);\n\tif (!service) return { slug, tools: [], hint: NOT_CONNECTED_HINT };\n\n\treturn {\n\t\tslug,\n\t\ttools: service.toolNames,\n\t\thint: service.toolNames.length === 0 ? BROKEN_CONNECTION_HINT : undefined,\n\t};\n}\n\nasync function handleSearch(\n\tcontext: InstanceAiContext,\n\tqueries: string[],\n): Promise<z.infer<typeof searchOutputSchema>> {\n\tconst { mcpService } = context;\n\tif (!mcpService) {\n\t\tthrow new Error('MCP server search is not available on this instance.');\n\t}\n\n\tconst matches = await mcpService.search(queries);\n\tconst results = matches.slice(0, MAX_RESULTS);\n\n\treturn {\n\t\tresults,\n\t\thint: joinHints(\n\t\t\tresults.length > 0 && CONNECT_HINT,\n\t\t\tmatches.length > results.length && TRUNCATED_HINT,\n\t\t),\n\t};\n}\n\nexport function createMcpServersTool(context: InstanceAiContext) {\n\treturn new Tool(DOMAIN_TOOL_IDS.MCP_SERVERS)\n\t\t.description(DESCRIPTION)\n\t\t.input(mcpServersToolInputSchema)","sourceCodeStart":105,"sourceCodeEnd":141,"githubUrl":"https://github.com/n8n-io/n8n/blob/5ac6606e81f67bb9534255570cd4e86fd8101eee/packages/@n8n/instance-ai/src/tools/mcp-servers.tool.ts#L105-L141","documentation":"Error \"MCP server search is not available on this instance.\" thrown in n8n-io/n8n.","triggerScenarios":"Thrown at packages/@n8n/instance-ai/src/tools/mcp-servers.tool.ts:123 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5ac6606e81f67bb9534255570cd4e86fd8101eee","analyzedAt":"2026-08-12T05:26:35.080Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}