vectordb-mcp

vectordb-mcp

Local RAG system that ingests documents into a vector database using FAISS and SQLite, then enables Claude to search over them via MCP tools, all running locally with no API key required.

Category
Visit Server

README

vectordb-mcp

Local RAG over your own files, exposed to Claude Desktop and Claude Code as an MCP server. Chunking via LangChain's RecursiveCharacterTextSplitter, embeddings via jinaai/jina-embeddings-v5-text-nano (local, no API key), vectors in FAISS, text/metadata in SQLite.

Setup

cd vectordb-mcp
python -m venv .venv
.venv\Scripts\Activate.ps1
pip install -r requirements.txt

First run downloads the embedding model (~1GB) from Hugging Face and caches it locally (%USERPROFILE%\.cache\huggingface).

Data files (data/vectordb.sqlite3, data/<collection>.index) are created under the project's data/ folder on first use — nothing global, easy to wipe by deleting the folder.

Register with Claude Desktop

Edit %APPDATA%\Claude\claude_desktop_config.json:

{
  "mcpServers": {
    "vectordb-mcp": {
      "command": "C:\\Users\\Kiran\\OneDrive\\Desktop\\Projects\\vectordb-mcp\\.venv\\Scripts\\python.exe",
      "args": ["C:\\Users\\Kiran\\OneDrive\\Desktop\\Projects\\vectordb-mcp\\run.py"]
    }
  }
}

Restart Claude Desktop; the three tools (ingest_local_document, vector_search, manage_collections) should appear under the hammer icon.

Register with Claude Code

From the project directory (or any directory, using absolute paths):

claude mcp add vectordb-mcp -- "C:\Users\Kiran\OneDrive\Desktop\Projects\vectordb-mcp\.venv\Scripts\python.exe" "C:\Users\Kiran\OneDrive\Desktop\Projects\vectordb-mcp\run.py"

Verify with claude mcp list / /mcp inside a session.

Tools

  • ingest_local_document(filepath, collection_name="main", chunk_size=512, chunk_overlap=50)
  • vector_search(query, collection_name="main", top_k=5)
  • manage_collections(action: "list" | "delete" | "reset", collection_name=None)

Deduplication

Two layers, see vectordb_mcp/dedup.py:

  • Ingestion-time (exact): each chunk is hashed (normalized, sha256) and checked against a UNIQUE(collection, content_hash) index in SQLite. Duplicate content (repeated boilerplate/footers across files) is embedded and stored once; re-ingesting the same or overlapping content just links the new source file to the existing chunk row.
  • Retrieval-time (exact + near-duplicate): vector_search over-fetches candidates from FAISS, drops exact hash repeats as a safety net, and also drops near-duplicates via word-shingle Jaccard similarity (default threshold 0.7) so overlap-adjacent chunks that differ by only a few words don't both make it into the top_k results returned to Claude.

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
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
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
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