Block 1 - When chat message received
- Type / Role
- @n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
- Config choices
- Version 1.1
This workflow is provided as-is. Please review and test before using in production.
Build an AI Agent which accesses two MCP Servers: a RAG MCP Server and a Search Engine API MCP Server. This workflow contains community nodes that are only compatible with the self hosted version o...
@n8n/n8n-nodes-langchain.chattrigger, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.memorybufferwindow, n8n-nodes-mcp.mcpclienttool, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.mcpclienttool
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Thomas Janssen.
Original n8n.io sourceThis workflow contains community nodes that are only compatible with the self-hosted version of n8n.
Click here to watch the full tutorial on YouTube!
We build an AI Agent which has access to two MCP servers:
In order to use the MCP Client, you also have to use MCP Server Template.
Open the MCP Client "MCP Client: RAG" node and update the SSE Endpoint to the MCP Server workflow
Install the "n8n-nodes-mcp" community node via settings > community nodes
ONLY FOR SELF-HOSTING: In Docker, click on your n8n container. Navigate to "Exec" and execute the below command to allow community nodes:
N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true
Navigate to Bright Data and create a new "Web Unlocker API" with the name "mcp_unlocker".
Open the "MCP Client" and add the following credentials:
Missed a step? Find more detailed instructions here: Personal Newsfeed With Bright Data and n8n
Large Language Models (LLM's) are trained on data until a specific cutoff date. Imagine a model is trained in December 2023 based data until September 2023. This means the model doesn't have any knowledge about events which happened in 2024. So if you ask the LLM who was the Formula 1 World Champion of 2024, it doesn't know the answer.
The solution? Retrieval Augmented Generation. When using Retrieval Augmented Generation, a user's question is being sent to a semantic database. The LLM will use the information retrieved from the semantic database to answer the user's question.
MCP is a communication protocol which is used by AI agents to call tools hosted on external servers.
When an MCP client communicates with an MCP server, the server will provide an overview of all its tools, prompts and resources. The MCP server can then choose which tools to execute (based on the user's request) and execute the tools.
An MCP client can communicate with multiple MCP servers, which can all host multiple tools.
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | AI Assistant which answers questions with a RAG MCP and a Search Engine MCP |
|---|---|
| Complexity | intermediate |
| Nodes | 10 |
| Categories | Support Chatbot, AI RAG |
| Author | Thomas Janssen |
| Published | 27 Jun 2025 |
Use the JSON export at /data/workflows/5398/5398.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
Build an AI Agent which accesses two MCP Servers: a RAG MCP Server and a Search Engine API MCP Server. This workflow contains community nodes that are only compatible with the self hosted version o...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI RAG use case.