MCP Server with FAISS for RAG

by ProbonoBonobo

7 335 downloads Not rated yet
GitHub

About

# MCP Server with FAISS for RAG This project provides a proof-of-concept implementation of a Machine Conversation Protocol (MCP) server that allows an AI agent to query a vector database and retrieve relevant documents for Retrieval-Augmented Generation (RAG). ## Features - FastAPI server with MCP endpoints - FAISS…

Explore

- FastAPI server with MCP endpoints
- FAISS vector database integration
- Document chunking and embedding
- GitHub Move file extraction and processing
- LLM integration for complete RAG workflow
- Simple client example
- Sample documents

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name MCP Server with FAISS for RAG
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

pipx install -e .


3. (Optional) Configure environment variables:
- Copy .env.example to .env
- Add your GitHub token for higher rate limits: GITHUB_TOKEN=your_token_here
- Add your OpenAI or other LLM API key for RAG integration: OPENAI_API_KEY=your_key_here

If you prefer not to use pipx:

1. Clone the repository
2. Install dependencies:

bash
cd mcp_server
pip install -r requirements.txt

After installing with pipx, you'll have access to the following commands:

bash

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "mcp server with faiss for rag": {
            "sui-mcp-server": {
                "command": "pipx",
                "args": [
                    "ensurepath"
                ]
            }
        }
    }
}

McpServers

{
    "sui-mcp-server": {
        "command": "pipx",
        "args": [
            "ensurepath"
        ]
    }
}

This project provides a proof-of-concept implementation of a Machine Conversation Protocol (MCP) server that allows an AI agent to query a vector database and retrieve relevant documents for Retrieval-Augmented Generation (RAG).

Features

- FastAPI server with MCP endpoints
- FAISS vector database integration
- Document chunking and embedding
- GitHub Move file extraction and processing
- LLM integration for complete RAG workflow
- Simple client example
- Sample documents

Installation

Using pipx (Recommended)

pipx is a tool to help you install and run Python applications in isolated environments.

1. First, install pipx if you don't have it:

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.