AutomationMart
Home/Browse/Intelligent web & local search with Brave Search API and Google Gemini MCP Server
n8n

Intelligent web & local search with Brave Search API and Google Gemini MCP Server

n8nn8n8 modulesv1.0
GitHubGemini

Summary This n8n workflow implements an AI-powered agent that intelligently uses the Brave Search API (via an external MCP service like Smithery) to perform both web and local searches. It understands natural language queries, selects the appropriate search tool, and exposes this enhanced capability as a single, callable MCP tool. Key Features 🤖 Intelligent Tool Selection: AI agent decides between Brave's web search and local search tools based on user query context. 🌐 MCP Microservice: Expose

At a glance

Intelligent web & local search with Brave Search API and Google Gemini MCP Server is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects GitHub, Gemini. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
GitHub, Gemini
Modules
8
Price
Free
Version
v1.0
Intelligent web & local search with Brave Search API and Google Gemini MCP Server workflow diagram

About this workflow

Summary This n8n workflow implements an AI-powered agent that intelligently uses the Brave Search API (via an external MCP service like Smithery) to perform both web and local searches. It understands natural language queries, selects the appropriate search tool, and exposes this enhanced capability as a single, callable MCP tool. Key Features 🤖 Intelligent Tool Selection: AI agent decides between Brave's web search and local search tools based on user query context. 🌐 MCP Microservice: Exposes complex search logic as a single, easy-to-integrate MCP tool (callbravesearchagent). 🧠 Powered by Google Gemini: Utilizes the gemini-2.5-flash-preview-05-20 LLM for advanced reasoning. 🗣️ Conversational Memory: Remembers context within a single execution flow. 📝 Customizable System Prompt: Tailor the AI's behavior and responses. 🧩 Modular Design: Connects to external Brave Search MCP tools (e.g., from Smithery). Benefits 🔌 Simplified Integration: Easily add advanced, AI-driven search capabilities to other applications or agent systems. 💸 Reduced Client-Side LLM Costs: Offloads complex prompting and tool orchestration to n8n, minimizing token usage for client-side LLMs. 🔧 Centralized Logic: Manage and update search strategies and AI behavior in one place. 🚀 Extensible: Can be adapted to use other search tools or incorporate more complex decision-making. Nodes Used @n8n/n8n-nodes-langchain.mcpTrigger (MCP Server Trigger) @n8n/n8n-nodes-langchain.toolWorkflow @n8n/n8n-nodes-langchain.agent (AI Agent) @n8n/n8n-nodes-langchain.lmChatGoogleGemini (Google Gemini Chat Model) n8n-nodes-mcp.mcpClientTool (MCP Client Tool - for Brave Search) @n8n/n8n-nodes-langchain.memoryBufferWindow (Simple Memory) n8n-nodes-base.executeWorkflowTrigger (Workflow Start - for direct execution/testing) Prerequisites An active n8n instance (v1.22.5+ recommended). A Google AI API key for using the Gemini LLM. Access to an external MCP service that provides Brave Search tools (e.g., a Smithery account configured with their Brave Search MCP). This includes the MCP endpoint URL and any necessary authentication (like an API key for Smithery). Setup Instructions 1. Import Workflow: Download the BraveSearchSmitheryAIAgentMCPServer.json file and import it into your n8n instance. 2. Configure LLM Credential: Locate the 'Google Gemini Chat Model' node. Select or create an n8n credential for "Google Palm API" (used for Gemini), providing your Google AI API key. 3. Configure Brave Search MCP Credential: Locate the 'bravewebsearch' and 'bravelocalsearch' (MCP Client) nodes. Create a new n8n credential of type "MCP Client HTTP API". Name: e.g., Smithery Brave Search Access Base URL: Enter the URL of your Brave Search MCP endpoint from your provider (e.g., Authentication: If your MCP provider requires an API key, select "Header Auth". Add a header with the name (e.g., X-API-Key) and value provided by your MCP service. Assign this newly created credential to both the 'bravewebsearch' and 'bravelocalsearch' nodes. 4. Note MCP Trigger Path: Open the 'Brave Search MCP Server Trigger' node. Copy its unique 'Path' (e.g., /cc8cc827-3e72-4029-8a9d-76519d1c136d). You will combine this with your n8n instance's base URL to get the full endpoint URL for clients. How to Use This workflow exposes an MCP tool named callbravesearchagent. External clients can call this tool via the URL derived from the 'Brave Search MCP Server Trigger'. Example Client MCP Configuration (e.g., for Roo Code): Replace YOURN8NINSTANCE with your n8n's public URL and ensure the path matches your trigger node. Example Request: Send a POST request to the trigger URL with a JSON body: The agent will stream its response, including the summarized search results. Customization AI Behavior: Modify the System Prompt within the 'Brave Search AI Agent' node to fine-tune its decision-making, response style, or how it uses the search tools. LLM Choice: Replace the 'Google Gemini Chat Model' node with any other compatible LLM node supported by n8n. Search Tools: Adapt the workflow to use different or additional search tools by modifying the MCP Client nodes and updating the AI Agent's system prompt and tool definitions. Further Information GitHub Repository: The workflow includes extensive sticky notes for in-canvas documentation. Author Jeremy Dawes (Jezweb)

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Match resumes to jobs automatically with Gemini AI and Decodo Scraping

Match Resumes to Jobs Automatically with Gemini AI and Decodo Scraping Sign up for Decodo HERE for Discount This automation intelligently connects candidate profiles to job opportunities. It takes an intake form with a short summary, resume link, and optional LinkedIn profile, then enriches the data using Decodo and Gemini. The workflow analyzes skills, experience, and role relevance, ranks top matches, and emails a polished HTML report directly to your inbox—saving hours of manual review and ma

Free

Build a Telegram chatbot with Gemini

Overview - This workflow connects a Telegram bot to OpenAi/Google Gemini (PaLM API) so the bot can reply to users with AI-generated answers. - Useful for FAQs, assistants, classroom helpers, or bots that fetch document content to answer questions. Who is this for - Educators, creators, developers, and support teams who want a low-code Telegram chatbot powered by Gemini. What it does (quick) - Listens for messages sent to your Telegram bot. - Sends incoming text to Google Gemini and receives a ge

Free

OpenClaw Clone 🦞: Expandable Personal Telegram AI Agent Template

This workflow implements an advanced AI automation agent (OpenClaw Agent) that interacts with users through Telegram and integrates multiple AI models, external tools, and cloud services to automate complex tasks. I've described my basic idea in this video. VERY IMPORTANT: By adapting the system prompt, inserting subworkflows or mcp servers and adjusting with webhooks many of the [workflows I have developed on this page](

Free

Generate & schedule social posts with Gemini/OpenAI for X and LinkedIn

LinkedIn Content Machine – AI-Powered Post Generator & Scheduler for X and LinkedIn How it works: This end-to-end workflow automates your personal or brand content strategy by: - 🧠 Using Google Gemini or OpenAI to generate engaging LinkedIn/X content from a title or trending posts. - 🗓️ Posting directly to LinkedIn and X (formerly Twitter). - 📊 Pulling high-performing LinkedIn posts to inspire new ideas. - ✍️ Saving AI-generated drafts to Google Sheets for review. - 🔔 Notifying your

Free

AI YouTube playlist & video analyst chatbot

AI YouTube Playlist & Video Analyst Chatbot This n8n workflow transforms entire YouTube playlists or single videos into interactive knowledge bases you can chat with. Ask questions and get summaries without needing to watch hours of content. 🌟 How it Works 1. 🔗 Provide a Link: Start by giving the workflow a URL for a YouTube playlist or a single video. 2. 📄 Content Retrieval: The workflow automatically fetches the video details and transcripts for the provided link. For playlists, it can process

Free

Generate audio documentaries from web articles with ElevenLabs and BrowserAct

Generate audio documentaries from web articles to Telegram with ElevenLabs & BrowserAct This workflow transforms any web article or blog post into a high-production-value audio documentary. It automates the entire production chain—from scraping content and writing an engaging narrative script to generating realistic voiceovers—delivering a listenable MP3 file directly to your Telegram chat. Target Audience Commuters, podcast enthusiasts, content creators, and researchers who prefer listen

Free

Automatic Typebot flows two-way sync with GitHub using Typebot API

Remixed Backup your workflows to GitHub from Solomon's work. Check out his templates. How it works This workflow will backup your typebots to GitHub. It uses the Typebot API to export all typebots. It then loops over the data, checks in GitHub to see if a file exists that uses the credential's ID. Once checked it will: - update the file on GitHub if it exists; - create a new file if it doesn't exist; - ignore if it's the same. In addition, it also checks if any flow have been deleted from typebo

Free

Automate real estate lead matching with Jotform, & Gemini AI to Zoho CRM

What Problem Does It Solve? In real estate, inquiries come from many sources and often require immediate, personalized attention. Brokers waste significant time manually: Qualifying leads: Determining if a prospect's budget, neighborhood, and needs match available inventory. Searching listings: Cross-referencing customer criteria against a large, static database. Data entry: Moving contact details and search summaries into a CRM like Zoho. Initial follow-up: Sending an email to confirm the s

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free