Labsco
falahgs logo

Brave-Gemini Research MCP Server

โ˜… 7

from falahgs

Perform web searches with the Brave Search API and analyze research papers using Google's Gemini model.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedAccount requiredAdvanced setup

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:

  1. Web Search - For general internet searches and information retrieval
  2. Local Search - For finding businesses, locations, and places of interest
  3. 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

Claude Desktop Integration

Follow these steps to integrate the MCP server with Claude Desktop:

  1. Ensure you have Claude Desktop installed (Download here)

  2. Locate your Claude Desktop configuration file:

    • Windows: C:\Users\<username>\AppData\Roaming\Claude\claude_desktop_config.json
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  3. Add the Brave-Gemini Research MCP configuration:

{
  "mcpServers": {
    "Brave-Gemini Research": {
      "command": "node",
      "args": ["G:\\path\\to\\your\\brave-gemini-research-mcp\\dist\\index.js"],
      "cwd": "G:\\path\\to\\your\\brave-gemini-research-mcp",
      "timeoutMs": 120000,
      "env": {
        "BRAVE_API_KEY": "your_brave_api_key",
        "GOOGLE_API_KEY": "your_google_api_key",
        "NODE_ENV": "production",
        "DEBUG": "mcp:*"
      }
    }
  }
}
  1. Important notes:

    • Use absolute paths with double backslashes (Windows) in the args and cwd fields
    • Replace G:\\path\\to\\your\\brave-gemini-research-mcp with the actual path to your project
    • Replace your_brave_api_key and your_google_api_key with your actual API keys
    • The timeoutMs setting helps prevent timeout issues during initialization
  2. 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_search
  • Parameters:
    • 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_search
  • Parameters:
    • 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_analysis
  • Parameters:
    • paperContent (required): The full text of the research paper to analyze
    • analysisType (optional): Type of analysis to perform
      • Options: "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:


## Research Paper Analysis: Comprehensive

### Overview
[Summary of paper's main topic and research objectives]

### Methodology Assessment
[Evaluation of the research methods and design]

### Key Findings
[Breakdown of the most significant discoveries and results]

### Limitations
[Analysis of constraints and weaknesses in the research]

### Significance & Implications
[Discussion of the paper's importance to the field]

### Recommendations
[Suggestions for future research or applications]

The Gemini model provides expert-level analysis that helps researchers, students, and professionals quickly understand and evaluate complex academic content.

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

โ”œโ”€โ”€ dist/               # Compiled JavaScript files
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ config.ts       # Server configuration
โ”‚   โ”œโ”€โ”€ server.ts       # MCP server implementation
โ”‚   โ”œโ”€โ”€ tools/          # Tool definitions and handlers
โ”‚   โ””โ”€โ”€ utils/          # Utility functions and API clients
โ”œโ”€โ”€ index.ts            # Server entry point
โ”œโ”€โ”€ tsconfig.json       # TypeScript configuration
โ””โ”€โ”€ package.json        # Project dependencies

Citation

If you use this tool in your research or project, please cite it as:

Salieh, F. G. (2025). Brave-Gemini Research MCP Server: A tool for AI assistants to search the web and analyze research papers. 
https://github.com/yourusername/brave-gemini-research-mcp

ยฉ 2025 Falah G. Salieh, Baghdad, Iraq. All rights reserved.


Made with โค๏ธ for enhancing AI capabilities