Skip to main content
Glama
Kaviyasree27

MCP File Assistant

by Kaviyasree27

AI File Assistant

A document intelligence system that enables AI agents and users to read, search, summarize, and answer questions over local PDF, DOCX, XLSX, and TXT documents.

The project exposes the same core engine through:

  • MCP Server for Claude Desktop and other MCP-compatible clients

  • Flask Web Application for browser-based interaction


Features

  • Read PDF, DOCX, XLSX and TXT documents

  • Search keywords across multiple documents

  • AI-powered document summarization

  • Retrieval-Augmented Document Q&A

  • Upload and manage files

  • Delete individual or all documents

  • Secure file access with path validation

  • Claude Desktop MCP integration


Tech Stack

Category

Technologies

Backend

Python, Flask

MCP

Model Context Protocol (MCP)

AI

Groq Llama / Ollama

Document Parsing

PyMuPDF, python-docx, pandas, openpyxl

Frontend

HTML, CSS, JavaScript

Testing

Pytest


Architecture

                 Claude Desktop
                       │
                       ▼
                 MCP Server
                       │
        ┌──────────────┴──────────────┐
        │                             │
   Shared Core Engine            Flask Web App
        │
 ├── File Readers
 ├── Search Engine
 ├── Document Processor
 └── LLM Client

📸 Screenshots

🖥️ User Interface

Modern web interface for uploading, browsing, and managing supported documents.


🔗 MCP Server Connected

Claude Desktop successfully connected to the local MCP File Assistant server.


📄 Read Document

Read PDF, DOCX, XLSX, and TXT documents directly through Claude Desktop using MCP.


📝 AI Document Summarization

Generate concise AI-powered summaries of lengthy documents using Groq Llama.


Search keywords across every indexed document with ranked search results.


❓ Document Question Answering

Ask natural language questions grounded in document contents using Retrieval-Augmented Generation (RAG).


🗑️ File Management

Delete individual files or remove all uploaded documents directly from the application.


Claude Desktop MCP Integration

Claude Desktop successfully invokes custom MCP tools including Read, Search, Summarize, and Ask Document.


📁 Project Structure

mcp-file-assistant/
│
├── app.py
├── server.py
├── config.py
├── file_readers.py
├── search_engine.py
├── document_processor.py
├── llm_client.py
├── templates/
├── static/
├── tests/
├── sample_documents/
├── requirements.txt
└── README.md

🚀 Installation

git clone <repository-url>

cd mcp-file-assistant

pip install -r requirements.txt

python app.py

Open:

http://127.0.0.1:5000

To start the MCP server:

python server.py

Configure Claude Desktop with the provided MCP configuration and restart the application.


🔧 MCP Tools

  • Read Document

  • Search Documents

  • Summarize Document

  • Ask Document

  • List Files

  • Delete File

  • Delete All Files


Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Kaviyasree27/MCP-File-Assistant-with-Claude-Desktop-integration'

If you have feedback or need assistance with the MCP directory API, please join our Discord server