Enables web and local search capabilities via the Brave Search API, allowing for general internet information retrieval and discovery of local businesses and places.
Provides advanced academic research paper analysis using Google's Gemini AI model, supporting comprehensive summaries, methodology critiques, and key finding extractions.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Brave-Gemini Research MCP ServerFind recent papers on LLM optimization and summarize their key findings"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Brave-Gemini Research MCP Server
A modern MCP (Model Context Protocol) server implementation that provides AI assistants with web search capabilities via the Brave Search API and advanced research paper analysis with Google's Gemini model.
Overview
This project enables AI assistants like Claude to perform web searches and analyze research papers directly through a standardized API interface. The MCP server exposes three main tools:
Web Search - For general internet searches and information retrieval
Local Search - For finding businesses, locations, and places of interest
Research Paper Analysis - For in-depth analysis of academic papers using Google's Gemini model
Features
π Web Search API - Find information across the web
π’ Local Search API - Discover businesses and places
π Research Paper Analysis - Analyze academic papers with Gemini AI
π€ Claude Integration - Seamless connection with Claude Desktop
π οΈ Extensible Design - Easy to add new tools and capabilities
Setup and Installation
Prerequisites
Node.js v18+ recommended
Brave Search API key (Get one here)
Google API key for Gemini integration (required for research paper analysis)
Claude Desktop for AI assistant integration (optional)
Installation
Clone the repository:
git clone https://github.com/falahgs/brave-gemini-research-mcp.git cd brave-gemini-research-mcpInstall dependencies:
npm installCreate a
.envfile with your API keys:BRAVE_API_KEY=your_brave_api_key GOOGLE_API_KEY=your_google_api_key
Building
Compile the TypeScript code to JavaScript:
Running the Server
Set environment variables and start the server:
PowerShell:
Command Prompt:
Bash/Linux/macOS:
Claude Desktop Integration
Follow these steps to integrate the MCP server with Claude Desktop:
Ensure you have Claude Desktop installed (Download here)
Locate your Claude Desktop configuration file:
Windows:
C:\Users\<username>\AppData\Roaming\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Add the Brave-Gemini Research MCP configuration:
Important notes:
Use absolute paths with double backslashes (Windows) in the
argsandcwdfieldsReplace
G:\\path\\to\\your\\brave-gemini-research-mcpwith the actual path to your projectReplace
your_brave_api_keyandyour_google_api_keywith your actual API keysThe
timeoutMssetting helps prevent timeout issues during initialization
Save the file and restart Claude Desktop
Using with Claude
After configuration, you can ask Claude to search the web or analyze research papers with prompts like:
"Search the web for the latest AI research papers"
"Find coffee shops in San Francisco"
"Analyze this research paper on quantum computing: [paper content]"
Claude will use the MCP server to perform these searches and analyses, returning the results directly in your conversation.
Tool Capabilities
Web Search Tool
The web search tool enables general internet searches:
Function:
brave_web_searchParameters:
query(required): Search query (max 400 chars)count(optional): Number of results (1-20, default 10)offset(optional): Pagination offset (max 9, default 0)
Local Search Tool
The local search tool finds businesses and locations:
Function:
brave_local_searchParameters:
query(required): Local search query (e.g., "pizza near Central Park")count(optional): Number of results (1-20, default 5)
Research Paper Analysis Tool
The research paper analysis tool provides in-depth analysis of academic papers using Google's Gemini model:
Function:
gemini_research_paper_analysisParameters:
paperContent(required): The full text of the research paper to analyzeanalysisType(optional): Type of analysis to performOptions: "summary", "critique", "literature review", "key findings", "comprehensive" (default)
additionalContext(optional): Specific questions or context to guide the analysis
Analysis Types:
Summary: Comprehensive overview including research question, methodology, key findings, and conclusions
Critique: Critical evaluation of methodology, validity, limitations, and suggestions for improvement
Literature Review: Analysis of how the paper fits within the broader research landscape
Key Findings: Extraction and explanation of the most significant findings and implications
Comprehensive: Complete analysis covering all aspects (default)
Example Analysis Result
When using the Research Paper Analysis tool with Gemini, you'll receive a structured, comprehensive analysis depending on the analysis type selected. For example, with a "comprehensive" analysis, you might get:
The Gemini model provides expert-level analysis that helps researchers, students, and professionals quickly understand and evaluate complex academic content.
Troubleshooting
Common Issues
Module Not Found Errors:
Ensure all imports include
.jsextensions in TypeScript filesRun
npx tscto recompile after fixing importsCheck the generated
distdirectory structure
Timeout Errors:
Increase the
timeoutMsin Claude Desktop configuration (120000 ms recommended)Check that environment variables are properly set
API Key Issues:
Verify your API keys are correctly set in the environment
Check for rate limiting or usage restrictions
Gemini Model Issues:
Ensure your Google API key has access to Gemini models
Check if the paper content exceeds token limits (try shorter excerpts)
Verify the analysis type is one of the supported options
Windows-Specific Issues:
Use PowerShell for more reliable environment variable handling
For Windows paths in JSON config, use double backslashes (e.g.,
G:\\path\\to\\file)Consider using absolute paths if relative paths aren't working
Debugging
For detailed debugging output:
Testing Your Setup
To verify your MCP server is working correctly:
Manual Test:
Run the server using the command line instructions above
Check the console output for "Brave-Gemini Research MCP Server running on stdio"
No error messages should appear
Claude Desktop Test:
After configuring Claude Desktop, open a new conversation
Ask Claude to "Search for latest developments in AI"
Claude should respond with search results from Brave Search
Ask Claude to analyze a research paper
Claude should respond with a detailed analysis from Gemini
Technical Details
MCP Protocol
The Model Context Protocol allows AI models to access external tools through a standardized interface. Key components include:
Tools: Functions with defined schemas
Transports: Communication channels between clients and servers
Handlers: Logic to process requests and return responses
Project Structure
Citation
If you use this tool in your research or project, please cite it as:
License
MIT
Copyright
Β© 2025 Falah G. Salieh, Baghdad, Iraq. All rights reserved.
Made with β€οΈ for enhancing AI capabilities