MCP Kbdb
rag - mcp is an over - designed retrieval - augmented generation system that provides multiple text search modes (semantic search, question - answer search, style search) through a Python server. It uses PostgreSQL and pgvector to store text embedding vectors, supports interaction with AI agents, and has a complex but scalable architecture.
2.5 points
7.1K

What is RAG - MCP?

RAG - MCP is an intelligent knowledge retrieval system that uses advanced AI technology to convert text into mathematical vectors, enabling the computer to understand the deep meaning of the text. The system provides three unique search methods to meet the information retrieval needs in different scenarios.

How to use RAG - MCP?

Simply start the server and send search requests through the standard interface. The system supports multiple client access methods, including programming calls and visual interface operations.

Applicable Scenarios

Suitable for scenarios such as knowledge management, content recommendation, intelligent customer service, and academic research that require efficient retrieval and understanding of a large amount of text. Particularly suitable for handling professional and semantically complex document content.

Main Features

Semantic Search
Search for relevant documents based on the deep meaning of the query content rather than simple keyword matching, and can understand synonyms and conceptual associations.
Question - Answer Search
Directly answer the questions raised by users and extract the most relevant information fragments from the knowledge base as answers.
Style Search
Match based on the writing style, tone, and expression of the text to find document content with similar styles.
Advantages
Multi - modal search meets different demand scenarios
Deep semantic understanding is achieved based on vector technology
The scalable architecture supports custom search modes
High - performance indexing ensures fast response
Limitations
Requires pre - construction of the knowledge base and vector index
Has high requirements for computing resources
Initial configuration is relatively complex
Depends on external AI models to generate vectors

How to Use

Environment Preparation
Ensure that Python 3.x and the PostgreSQL database are installed, and enable the pgvector extension.
Install Dependencies
Use pip to install the required Python dependency packages.
Configure Environment Variables
Set the relevant configurations for database connection and AI model API.
Start the Server
Run the main program to start the RAG - MCP service.

Usage Examples

Academic Research Assistance
Researchers can quickly find research papers and materials related to specific theories
Content Creation Inspiration
Writers can search for text of a specific style or theme as a reference for creation

Frequently Asked Questions

What kind of hardware configuration is required?
Which languages are supported?
How to expand new search modes?

Related Resources

Official Documentation
Complete system configuration and usage guide
GitHub Repository
Project source code and issue tracking
Quick Start Video
10 - minute quick start tutorial

Installation

Copy the following command to your Client for configuration
{
  "mcpServers": {
    "RAG-MCP Knoledge Base Server": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "fastmcp",
        "fastmcp",
        "run",
        "/location/of/the/script/rag_mcp_server.py:mcp"
      ],
      "env": {
        "RM_DB_HOST": "localhost",
        "RM_DB_PORT": "5432",
        "RM_DB_NAME": "your_db_name",
        "RM_DB_USER": "your_db_user",
        "RM_DB_PASSWORD": "your_super_secret_password",
        "RM_OPENAI_API_KEY": "your_api_key",
        "RM_OPENAI_ENDPOINT": "your_model_endpoint_url"
      },
      "transport": "stdio",
      "type": null,
      "cwd": null,
      "timeout": null,
      "description": null,
      "icon": null,
      "authentication": null
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

M
MCP
The Microsoft official MCP server provides search and access functions for the latest Microsoft technical documentation for AI assistants
9.7K
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
6.7K
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
15.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
46.5K
4.3 points
B
Bing Search MCP
An MCP server for integrating Microsoft Bing Search API, supporting web page, news, and image search functions, providing network search capabilities for AI assistants.
Python
16.6K
4 points
A
Apple Notes MCP
A server that provides local Apple Notes database access for the Claude desktop client, supporting reading and searching of note content.
Python
12.7K
4.3 points
M
Modelcontextprotocol
Certified
This project is an implementation of an MCP server integrated with the Sonar API, providing real-time web search capabilities for Claude. It includes guides on system architecture, tool configuration, Docker deployment, and multi-platform integration.
TypeScript
14.8K
5 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
15.0K
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
24.0K
5 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
17.0K
4.3 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
46.5K
4.3 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
45.7K
4.5 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#
20.6K
5 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
15.1K
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
31.1K
4.8 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2025AIBase