Personal Knowledge-Base MCP Server

Personal Knowledge-Base MCP Server

A FastMCP server and web app for multi-tenant semantic search over personal document corpora, backed by Qdrant vector search and supporting MCP clients and a React dashboard.

Category
Visit Server

README

Personal Knowledge-Base MCP Server & Web App

F6-Zeppelin Fellowship — Project 3
A multi-tenant Model Context Protocol (MCP) server and web application enabling semantic search over personal document corpora backed by Qdrant vector search and FastMCP.


šŸš€ Overview

Static keyword search fails when notes, research papers, and technical documents use different wording for the same concepts. This project implements a protocol-level FastMCP server paired with a Qdrant Vector Database to enable context-aware semantic search over real-world documents.

The system supports dual modes of interaction:

  1. MCP Client Integration: Native tools callable from MCP-compliant clients like Claude Desktop or Claude Code.
  2. Multi-Tenant Web UI: A web dashboard providing isolated document management, uploading, and search capabilities per user.

✨ Key Features

  • Protocol-Level Integration (FastMCP): Exposes structured MCP tools (search_notes, get_document, list_sources) for native AI agent invocation.
  • Multi-Tenant Isolation: Payload-level tenant isolation in Qdrant ensures document chunks and search results are strictly scoped per user.
  • Strict Relevance Cutoff: Rejects low-confidence vector matches below similarity thresholds to prevent low-relevance hallucination propagation.
  • Automated Ingestion Pipeline: Handles PDF, Markdown, and TXT parsing, dynamic chunking, and embedding generation.
  • Quantitative Retrieval Benchmarking: Hand-labeled evaluation suite tracking Mean Reciprocal Rank (MRR) and Precision@K across test queries.

šŸ› ļø Architecture & Tech Stack

Layer Technology Purpose
Protocol FastMCP (Python) Tool registry and JSON-RPC over STDIO / HTTP transport
Backend API FastAPI User authentication (JWT), file upload, REST search endpoints
Vector DB Qdrant HNSW similarity search with payload-based user isolation
Embeddings sentence-transformers / OpenAI Dense vectorization of document chunks
Frontend React / Tailwind CSS Web dashboard for uploading documents and testing queries

šŸ“Š Evaluation & Metrics

Metric Target Result
Precision@3 ≄ 80% TBD
MRR (Mean Reciprocal Rank) ≄ 0.85 TBD
Relevance Threshold Cosine ≄ 0.72 Enforced

⚔ Quick Start

1. Environment Setup

cd backend
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install -r requirements.txt
cp .env.example .env

2. Configure Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "personal-kb": {
      "command": "python",
      "args": ["-m", "app.mcp_server.server"],
      "env": {
        "QDRANT_URL": "http://localhost:6333",
        "QDRANT_API_KEY": "your-api-key"
      }
    }
  }
}

šŸ“‚ Repository Structure

KNOWLEDGE_BASE-MCP_SERVER/
ā”œā”€ā”€ backend/
│   ā”œā”€ā”€ app/
│   │   ā”œā”€ā”€ api/             # FastAPI REST endpoints (Auth, Documents, Search)
│   │   ā”œā”€ā”€ core/            # App configuration & JWT security settings
│   │   ā”œā”€ā”€ db/              # Qdrant vector database initialization & schemas
│   │   ā”œā”€ā”€ eval/            # Precision@K and MRR benchmark scripts
│   │   ā”œā”€ā”€ mcp_server/      # FastMCP server definition & tool implementations
│   │   └── services/        # Ingestion, embedding, & similarity search services
│   ā”œā”€ā”€ tests/               # Backend API and retrieval test suite
│   ā”œā”€ā”€ main.py              # Application entry point
│   ā”œā”€ā”€ requirements.txt     # Python backend dependencies
│   └── .env.example         # Template for environment variables
ā”œā”€ā”€ data/
│   └── sample_docs/         # Document corpus for local testing
ā”œā”€ā”€ docs/                    # Architecture diagrams & project documentation
ā”œā”€ā”€ frontend/                # React / Tailwind web application for multi-user management
│   └── src/
│       ā”œā”€ā”€ components/      # UI components (Uploaders, Search bar, Score badges)
│       ā”œā”€ā”€ context/         # Auth & Session state providers
│       ā”œā”€ā”€ pages/           # Document dashboard & Search playground
│       └── services/        # API client bindings
ā”œā”€ā”€ .gitignore               # Ignored files (venvs, keys, vector storage)
ā”œā”€ā”€ docker-compose.yml       # Local Qdrant & FastAPI orchestration
└── README.md                # Project documentation 

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured