Personal Research Assistant MCP MCP Server

$git clone https://github.com/chakri01/research-assistant-mcp.git && cd research-assistant-mcp && python -m venv venv && source venv/bin/activate && pip install -r requirements.txt
README.md

Semantic search and conversational querying across a personal research library.

šŸ“š Personal Research Assistant MCP

A production-ready MCP (Model Context Protocol) server that enables semantic search across your personal research library. Built for AI Engineers who need fast, accurate document retrieval integrated with Claude Desktop and other AI tools.

šŸŽÆ Problem Statement

Researchers and professionals accumulate dozens of papers and documents but struggle to:

  • Find relevant information across multiple documents
  • Remember which paper contained specific insights
  • Connect related concepts across different sources
  • Spend 2+ hours daily searching for information

Traditional keyword search misses semantic connections, and reading everything is impractical.

šŸ’” Solution

An MCP server that:

  • Indexes documents into a vector database using semantic embeddings
  • Enables Claude (or any MCP client) to query your research library conversationally
  • Provides sub-500ms response times with 85%+ retrieval accuracy
  • Includes a Streamlit dashboard for management and metrics

šŸ—ļø Architecture

Documents (PDF/DOCX/HTML/MD)
    ↓
Document Processor → Text Chunker → Embeddings
    ↓
ChromaDB Vector Store
    ↓
ā”œā”€ā†’ MCP Server (FastMCP) → Claude Desktop
└─→ Streamlit UI → Monitoring/Testing

✨ Features

  • Semantic Search: Natural language queries across your entire library
  • Multi-Format Support: PDF, DOCX, HTML, Markdown, TXT
  • Fast Retrieval: <500ms query latency on 1000+ chunks
  • MCP Integration: Works with Claude Desktop, VS Code, and any MCP client
  • Metadata Extraction: Automatically extracts titles, authors, keywords
  • Query Logging: Track usage and performance metrics
  • Streamlit Dashboard: Upload, search, and visualize metrics

šŸ“Š Performance Metrics

Metric Target Actual
Retrieval Accuracy 85% See METRICS.md
Query Latency <500ms See METRICS.md
Scale 10k+ chunks 1782+ chunks

šŸš€ Installation

Prerequisites

  • Python 3.11+
  • 2GB RAM minimum
  • Git

Setup

# Clone repository
git clone https://github.com/yourusername/research-assistant-mcp.git
cd research-assistant-mcp

# Create virtual environment
python -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

# Install local embeddings
pip install sentence-transformers

# Configure environment
cp .env.example .env
# Edit .env - add OPENAI_API_KEY if using OpenAI embeddings

Download Sample Data

# Download 25 AI/ML papers from arXiv
python scripts/download_sample_papers.py --count 25

Index Documents

# Index sample papers
python scripts/index_docs.py --folder ./sample_papers

# Or index your own documents
python scripts/index_docs.py --folder /path/to/your/papers --recursive

šŸ“– Usage

Start MCP Server

python mcp_server/server.py

Configure Claude Desktop

Add to claude_desktop_config.json:

Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "research-assistant": {
      "command": "python",
      "args": ["/full/path/to/research-assistant-mcp/mcp_server/server.py"],
      "env": {}
    }
  }
}

Restart Claude Desktop.

Launch Streamlit UI

streamlit run ui/app.py

Opens at http://localhost:8501

šŸ› ļø MCP Tools

`search_documents`

Semantic search across your library.

Query: "What are the challenges in RAG systems?"
Returns: Top-k results with sources, scores, and metadata

`get_document_summary`

Get quick overview of a document.

Input: Document path or title
Returns: Title, author, keywords, preview

`find_related_papers`

Find documents similar to a topic.

Query: "prompt engineering techniques"
Returns: Related papers with relevance scores

šŸ“ Project Structure

research-assistant-mcp/
ā”œā”€ā”€ mcp_server/          # MCP server implementation
│   └── server.py
ā”œā”€ā”€ rag_pipeline/        # RAG components
│   ā”œā”€ā”€ config.py
│   ā”œā”€ā”€ document_processor.py
│   ā”œā”€ā”€ chunker.py
│   ā”œā”€ā”€ vector_store.py
│   ā”œā”€ā”€ retriever.py
│   └── metadata_extractor.py
ā”œā”€ā”€ ui/                  # Streamlit dashboard
│   ā”œā”€ā”€ app.py
│   └── pages/
ā”œā”€ā”€ scripts/             # CLI utilities
│   ā”œā”€ā”€ index_docs.py
│   └── download_sample_papers.py
ā”œā”€ā”€ tests/              # Testing & benchmarks
│   ā”œā”€ā”€ sample_queries.json
│   └── benchmark_performance.py
ā”œā”€ā”€ data/               # Data storage
│   ā”œā”€ā”€ chroma_db/
│   └── query_logs/
└── docs/               # Documentation
    └── METRICS.md

Tools (3)

search_documentsSemantic search across your library to find relevant information with sources and scores.
get_document_summaryGet quick overview of a document including title, author, keywords, and preview.
find_related_papersFind documents similar to a specific topic with relevance scores.

Environment Variables

OPENAI_API_KEYRequired if using OpenAI embeddings instead of local sentence-transformers.

Configuration

claude_desktop_config.json
{"mcpServers": {"research-assistant": {"command": "python", "args": ["/full/path/to/research-assistant-mcp/mcp_server/server.py"], "env": {}}}}

Try it

→What are the challenges in RAG systems based on my saved papers?
→Give me a summary of the document about prompt engineering techniques.
→Find related papers in my library regarding transformer architectures.
→Search my research library for insights on multi-agent systems.

Frequently Asked Questions

What are the key features of Personal Research Assistant MCP?

Semantic Search: Natural language queries across entire document libraries using vector embeddings.. Multi-Format Support: Processes PDF, DOCX, HTML, Markdown, and TXT files.. Fast Retrieval: Sub-500ms query latency on 1000+ document chunks.. Metadata Extraction: Automatically extracts titles, authors, and keywords from documents.. Streamlit Dashboard: Built-in UI for uploading documents, searching, and visualizing metrics..

What can I use Personal Research Assistant MCP for?

Researchers needing to find specific insights across dozens of academic papers.. AI Engineers integrating private document retrieval into Claude Desktop workflows.. Professionals looking to connect related concepts across different internal sources.. Users wanting to eliminate manual keyword searching in favor of semantic, conversational queries..

How do I install Personal Research Assistant MCP?

Install Personal Research Assistant MCP by running: git clone https://github.com/chakri01/research-assistant-mcp.git && cd research-assistant-mcp && python -m venv venv && source venv/bin/activate && pip install -r requirements.txt

What MCP clients work with Personal Research Assistant MCP?

Personal Research Assistant MCP works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Use Personal Research Assistant MCP with Conare

Manage MCP servers visually, upload persistent context, and never start from zero with Claude Code & Codex.

Try Free