loading…
Search for a command to run...
loading…
A local document intelligence and knowledge management server for Claude Desktop that provides RAG-powered Q\&A, media transcription, and URL crawling. It featu
A local document intelligence and knowledge management server for Claude Desktop that provides RAG-powered Q\&A, media transcription, and URL crawling. It features 11 tools for processing various file types and managing a persistent local vector store with zero infrastructure costs.
MCP server providing document intelligence and knowledge management for Claude Desktop and other MCP-compatible clients. Process documents, answer questions with RAG, and maintain a persistent knowledge base - all running locally.
MyAIGist MCP provides 10 powerful tools for document intelligence and knowledge management:
✅ MCP-compatible - Works with Claude Desktop, Cursor, and other MCP clients ✅ Claude-powered - Uses Claude Sonnet 4.5 for summarization and Q&A ✅ Local execution - Runs on your machine with no external infrastructure ✅ Persistent storage - Single vector store survives across sessions ✅ Multi-document RAG - Unlimited documents in knowledge base ✅ Simple setup - Install dependencies, configure API keys, and go
Install dependencies:
cd /path/to/myaigist_mcp
pip install -r requirements.txt
Configure environment:
cp .env.example .env
# Edit .env and add both API keys:
# - ANTHROPIC_API_KEY (for Claude)
# - OPENAI_API_KEY (for embeddings)
Configure your MCP client:
Claude Desktop - Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"myaigist": {
"command": "python3",
"args": ["/path/to/myaigist_mcp/server.py"]
}
}
}
Cursor - Add to your Cursor MCP settings:
{
"mcpServers": {
"myaigist": {
"command": "python3",
"args": ["/path/to/myaigist_mcp/server.py"]
}
}
}
Other MCP clients - Refer to your client's documentation for MCP server configuration.
Restart your MCP client
The MCP server will start automatically when you open your client.
myaigist_mcp/ # MCP server (this project)
├── server.py # Main MCP server with 10 tools
├── mcp_agents/ # All agent code (local, self-contained)
│ ├── document_processor.py # PDF/DOCX/TXT extraction
│ ├── summarizer.py # 3-level summarization (Claude)
│ ├── embeddings.py # OpenAI embeddings
│ ├── url_crawler.py # Web content extraction
│ ├── claude_client.py # Anthropic client factory
│ ├── openai_client.py # OpenAI client factory
│ ├── qa_agent.py # Q&A with RAG (Claude)
│ └── vector_store.py # Vector storage
└── data/ # Persistent vector storage
└── vector_store.pkl # Created at runtime
Architecture Notes:
mcp_agents/process_documentProcess a document from LOCAL FILE PATH (PDF, DOCX, TXT) and add to knowledge base.
Parameters:
file_path (string, required): LOCAL filesystem path (e.g., /Users/mike/file.pdf)title (string, optional): Document title (defaults to filename)summary_level (string, optional): quick, standard, or detailedExample:
"Process /Users/mike/contract.pdf as a detailed summary"
Compatibility: Works with all MCP clients.
process_uploaded_documentProcess a document attached to Claude Desktop (optimized for Claude Desktop file uploads).
Parameters:
content (string, required): Text content extracted by Claudefilename (string, required): Original filenamesummary_level (string, optional): quick, standard, or detailedExample:
[Attach PDF file in Claude Desktop]
"Process this document with MyAIGist"
Compatibility: Designed for Claude Desktop. Other clients should use process_document with file paths.
process_textProcess raw text and add to knowledge base.
Example:
"Process this text: [paste long article]"
Compatibility: Works with all MCP clients.
process_urlCrawl web URL, extract content, and add to knowledge base.
Example:
"Process https://example.com/article"
Compatibility: Works with all MCP clients.
process_batchProcess multiple files and generate unified summary.
Example:
"Process all files in /Users/mike/research/ and give me a unified summary"
Compatibility: Works with all MCP clients.
ask_questionAsk questions about stored documents using RAG.
Example:
"What are the main findings in the research papers?"
Compatibility: Works with all MCP clients.
list_documentsList all documents in knowledge base with metadata.
Example:
"Show me all my documents"
Compatibility: Works with all MCP clients.
delete_documentDelete specific document by ID.
Example:
"Delete document abc123xyz"
Compatibility: Works with all MCP clients.
clear_all_documentsClear entire knowledge base.
Example:
"Clear all my documents"
Compatibility: Works with all MCP clients.
get_statusGet system status and knowledge base statistics.
Example:
"What's my system status?"
Compatibility: Works with all MCP clients.
User: [Attaches PDF to Claude Desktop]
User: "Process this document with MyAIGist"
Claude: ✅ Processed with summary
User: "What are the key points?"
Claude: "The key points are..."
User: "Process /Users/mike/contract.pdf"
AI: ✅ Processed with summary
User: "What are the payment terms?"
AI: "The payment terms are net 30..."
User: "Process these 3 research papers: paper1.pdf, paper2.pdf, paper3.pdf"
AI: ✅ Processed all 3 with unified summary
User: "What are the common findings across all papers?"
AI: "The common findings are..."
# Anthropic API Key (required - for Claude text generation)
ANTHROPIC_API_KEY=sk-ant-your-key-here
ANTHROPIC_MODEL=claude-sonnet-4-5-20250929
# OpenAI API Key (required - for embeddings)
OPENAI_API_KEY=sk-your-key-here
OPENAI_EMBED_MODEL=text-embedding-3-large
Current Configuration:
claude-sonnet-4-5-20250929) - Summarization and Q&AWhy Two API Keys?
Vector Store:
data/vector_store.pklUsage-based pricing:
Typical monthly usage:
# Check if Python can find dependencies
python3 -c "import mcp; print('✅ MCP installed')"
# Check syntax
python3 -m py_compile server.py
# Check logs (Claude Desktop example)
tail -f ~/Library/Logs/Claude/mcp-server-myaigist.log
# Test agent imports
cd /path/to/myaigist_mcp
python3 -c "from mcp_agents.summarizer import Summarizer; print('✅ Imports work')"
python3 -c "from mcp_agents.qa_agent import QAAgent; print('✅ QAAgent works')"
# Check environment variables are set
python3 -c "import os; print('Anthropic:', bool(os.getenv('ANTHROPIC_API_KEY'))); print('OpenAI:', bool(os.getenv('OPENAI_API_KEY')))"
data/vector_store.pkl existsprocess_uploaded_document for file attachmentsprocess_document with local filesystem paths# Test agent imports
python3 -c "from mcp_agents.qa_agent import QAAgent; qa = QAAgent(); print('✅ QAAgent works')"
# Test document processing
cd /path/to/myaigist_mcp
python3 -c "from mcp_agents.document_processor import DocumentProcessor; dp = DocumentProcessor(); print('✅ DocumentProcessor works')"
# Run server manually to see output
python3 /path/to/myaigist_mcp/server.py
myaigist_mcp/
├── server.py # Main MCP server (10 tools)
├── requirements.txt # Python dependencies
├── .env # Environment variables (not in git)
├── .env.example # Template
├── README.md # This file
├── mcp_agents/ # MCP-adapted agents
│ ├── __init__.py
│ ├── claude_client.py # Anthropic client factory
│ ├── summarizer.py # Modified: uses Claude
│ ├── qa_agent.py # Modified: uses Claude, single-user
│ ├── vector_store.py # Modified: no user filtering
│ ├── document_processor.py
│ ├── embeddings.py
│ ├── url_crawler.py
│ └── openai_client.py
└── data/ # Persistent storage
└── vector_store.pkl # Vector embeddings and metadata
process_uploaded_document is optimized for Claude Desktop's file attachment behaviorprocess_document with local file pathsMIT License
For issues or questions:
.envLast Updated: 2026-01-19 Project Status: ✅ Production ready - 10 core tools implemented and tested Models: Claude Sonnet 4.5 (text) + OpenAI (embeddings) Focus: Document intelligence (text-based content only) Compatibility: Claude Desktop, Cursor, and other MCP-compatible clients
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"myaigist-mcp": {
"command": "npx",
"args": []
}
}
}