Groq Document Assistant
БесплатноНе проверенA persistent document management and research assistant powered by Groq, enabling AI-driven document analysis, professional formatting, and long-term memory acr
Описание
A persistent document management and research assistant powered by Groq, enabling AI-driven document analysis, professional formatting, and long-term memory across sessions.
README
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.jsonfile. 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
/formatprompt that preserves original data while elevating readability. - 🔍 Resource Integration: Mention documents in chat using the
@filenamesyntax to automatically inject their content into the AI's context.
🚀 Getting Started
1. Requirements
- Python 3.11+
- Groq API Key (Get one at console.groq.com)
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] Use Tab 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. UsesLocalStoragefordb.jsonpersistence.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.
Установка Groq Document Assistant
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/Adarsh152004/MCP-PdfFAQ
Groq Document Assistant MCP бесплатный?
Да, Groq Document Assistant MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Groq Document Assistant?
Нет, Groq Document Assistant работает без API-ключей и переменных окружения.
Groq Document Assistant — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Groq Document Assistant в Claude Desktop, Claude Code или Cursor?
Открой Groq Document Assistant на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare Groq Document Assistant with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
