Skip to main content
Glama
Adarsh152004

Groq MCP Document Assistant

by Adarsh152004

📚 Groq MCP Document Assistant

A high-performance, persistent document management and research assistant powered by Groq and the Model Context Protocol (MCP). This system enables AI-driven document analysis, professional formatting, and long-term memory across sessions.


✨ Key Features

  • 💾 Persistent Memory: All documents, edits, and additions are saved to a local db.json file. Your workspace state survives application restarts.

  • ⚡ Groq-Powered Intelligence: Utilizes high-speed Llama 3 models for near-instant document summarization and complex formatting.

  • 🛡️ Safety Circuit Breaker: Built-in protection against infinite tool-calling loops. The assistant automatically stops and asks for help after 10 autonomous steps.

  • 🪄 Smart Formatting: Professional Markdown reformatting with a dedicated /format prompt that preserves original data while elevating readability.

  • 🔍 Resource Integration: Mention documents in chat using the @filename syntax to automatically inject their content into the AI's context.


Related MCP server: Aleph

🚀 Getting Started

1. Requirements

2. Installation

# Clone or enter the directory
cd MCP

# Setup virtual environment
python -m venv .venv
.venv\Scripts\activate

# Install dependencies
pip install groq mcp python-dotenv prompt-toolkit pydantic anyio

3. Configuration

Create a .env file in the root directory:

GROQ_API_KEY=your_key_here
GROQ_MODEL=llama-3.1-8b-instant

🎮 Usage

Launching the Assistant

python main.py

Common Commands

Command

Action

/list_docs

Show all documents currently in the persistent database.

/format <doc_id>

Automatically restructure a document into professional Markdown.

/summarize_doc <doc_id>

Generate a concise summary of the specified document.

/add_doc <id> "<content>"

Create a new document in the database.

@doc_id

Mention any document in a normal sentence to use its content as context.

TIP

UseTab for auto-completion of commands and document IDs!


🛠️ Developer Tools

MCP Inspector

To test the server logic visually and inspect the JSON-RPC traffic:

npx @modelcontextprotocol/inspector .venv\Scripts\python.exe mcp_server.py

🏗️ Architecture

  • main.py: The entry point that orchestrates the MCP clients and the Groq service.

  • mcp_server.py: The core document server providing tools and prompts. Uses LocalStorage for db.json persistence.

  • core/chat.py: Handles the autonomous loop and the 10-step circuit breaker.

  • core/groq.py: Manages communication with Groq, including "Tool-Aware Trimming" to prevent history corruption.


🔒 Safety & Stability

This project is optimized for Windows and includes custom handlers for KeyboardInterrupt and asynchronous transport errors, ensuring a clean and silent exit on Ctrl+C.

F
license - not found
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    D
    maintenance
    Enables AI assistants to store and retrieve persistent memories with a web management interface. Supports creating, searching, and managing memories through natural language commands or a visual web dashboard.
    Last updated
    33
    1
    MIT
  • A
    license
    -
    quality
    D
    maintenance
    Enables AI assistants to analyze documents larger than their context window by loading files into RAM and querying them via search, navigation, and Python execution tools. Supports recursive reasoning to process massive datasets in chunks using sub-agents.
    Last updated
    210
    MIT
  • F
    license
    -
    quality
    D
    maintenance
    Enables semantic search and conversational querying across a personal research library of PDFs, DOCX, and other documents using a vector database. It provides tools for document summarization, finding related papers, and high-accuracy retrieval for AI clients like Claude Desktop.
    Last updated

View all related MCP servers

Related MCP Connectors

  • Persistent docs and memory for AI agents — read, write, organize & search a shared workspace.

  • Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.

  • A personal RAG database you build from chat, so AI creates work that sounds like you.

View all MCP Connectors

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/Adarsh152004/MCP-Pdf'

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