MCP Rag Search Server
M

MCP Rag Search Server

A custom MCP server based on FastMCP that provides RAG functionality and multiple web search capabilities (Gemini 2.0 and Linkup), supporting local document retrieval and AI-enhanced search.
2 points
8.6K

What is the MCP server?

The MCP server is an intelligent Q&A system that can search your local document library and simultaneously use Google's most advanced Gemini AI and traditional search engines to obtain web information. It is particularly suitable for scenarios that require combining internal knowledge with internet information.

How to use the MCP server?

Simply place your documents in the specified folder, and the server will automatically build a knowledge base. You can query local documents or obtain web search results through simple API calls, and the system will automatically select the optimal search method.

Applicable scenarios

Scenarios that require combining internal and external information, such as enterprise knowledge management, academic research assistance, intelligent customer service systems, and market intelligence collection.

Main Features

Intelligent Document Q&A
Build an intelligent index for uploaded local documents and support natural language questions to obtain accurate answers
Dual-Engine Web Search
Automatically select Google Gemini AI search (preferred) or Linkup traditional search
Intelligent Degradation Mechanism
Automatically switch to the backup plan when the preferred search service is unavailable
Advantages
One-stop solution: Handle local documents and web information simultaneously
Intelligent routing: Automatically select the optimal search method
Easy to deploy: Support local operation to protect data privacy
Limitations
Require an API key to access third-party services
Local documents need to be manually updated
It takes time to build the index for the first time

How to Use

Prepare the Environment
Install Python 3.8+ and Ollama, and obtain the Gemini API key
Configure the Service
Create a.env file in the project root directory to set the API key
Add Documents
Place the documents to be retrieved in the automatically created data folder
Start the Service
Run the server script to start the service

Usage Examples

Technical Document Query
When engineers need to find product specifications
Market Research
Analyze the latest developments of competitors

Frequently Asked Questions

How much do API calls cost?
What document formats are supported?
How to ensure data security?

Related Resources

Apply for Gemini API
Obtain the Google Gemini API key
Ollama Installation Guide
Configure the local LLM runtime environment
Example Project Repository
Complete source code and example configuration

Installation

Copy the following command to your Client for configuration
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

H
Haiku.rag
Haiku RAG is an intelligent retrieval - augmented generation system built on LanceDB, Pydantic AI, and Docling. It supports hybrid search, re - ranking, Q&A agents, multi - agent research processes, and provides local - first document processing and MCP server integration.
Python
6.0K
5 points
C
Claude Context
Claude Context is an MCP plugin that provides in - depth context of the entire codebase for AI programming assistants through semantic code search. It supports multiple embedding models and vector databases to achieve efficient code retrieval.
TypeScript
13.9K
5 points
A
Acemcp
Acemcp is an MCP server for codebase indexing and semantic search, supporting automatic incremental indexing, multi-encoding file processing, .gitignore integration, and a Web management interface, helping developers quickly search for and understand code context.
Python
14.5K
5 points
M
MCP
The Microsoft official MCP server provides search and access functions for the latest Microsoft technical documentation for AI assistants
13.2K
5 points
C
Cipher
Cipher is an open-source memory layer framework designed for programming AI agents. It integrates with various IDEs and AI coding assistants through the MCP protocol, providing core functions such as automatic memory generation, team memory sharing, and dual-system memory management.
TypeScript
0
5 points
A
Annas MCP
The MCP server and CLI tool of Anna's Archive are used to search for and download documents on the platform and support access through an API key.
Go
10.9K
4.5 points
S
Search1api
The Search1API MCP Server is a server based on the Model Context Protocol (MCP), providing search and crawling functions, and supporting multiple search services and tools.
TypeScript
16.7K
4 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
63.0K
4.3 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
18.9K
4.5 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
32.2K
5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
63.0K
4.3 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
21.7K
4.3 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
27.0K
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
58.6K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
42.2K
4.8 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
19.9K
4.5 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase