personal-brain-mcp
v1.0.0
Published
MCP Server for Personal Brain API - provides semantic search and archival capabilities for documents and chat sessions
Maintainers
Readme
Personal Brain MCP (npm package)
A Node.js wrapper for the Personal Brain MCP Python package. This provides semantic search and archival capabilities for documents and chat sessions with Claude Desktop integration.
Installation
npm install -g personal-brain-mcpThis will automatically:
- Install the npm wrapper
- Install the Python dependencies
- Set up the
personal-brain-mcpcommand
Requirements
- Node.js 16.0.0 or higher
- Python 3.8 or higher
- pip (Python package manager)
Quick Start
1. Set up environment variables
Create a .env file in your working directory:
GOOGLE_API_KEY=your_google_api_key
PINECONE_API_KEY=your_pinecone_api_key
PINECONE_INDEX_NAME=your_pinecone_index_name
ANTHROPIC_API_KEY=your_anthropic_api_key # Optional2. Run the MCP server
personal-brain-mcp3. Configure Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"personal-brain": {
"command": "personal-brain-mcp",
"args": []
}
}
}Features
- Document Processing: PDF, images (OCR), audio transcription
- Vector Search: Pinecone-powered semantic search
- Chat Management: Archive and search conversations
- Multi-LLM Support: Google Gemini and Anthropic Claude
- MCP Integration: Direct Claude Desktop integration
Available Tools (via MCP)
Document Management
search_documents: Semantic search through documentsget_document_details: Retrieve specific document infolist_all_documents: Browse all documentsask_with_citations: Q&A with source citations
Chat Management
search_chat_history: Search archived chatssave_chat: Save conversationsretrieve_saved_chats: Find saved chatsimport_chat_export: Import Claude/ChatGPT exports
Troubleshooting
Installation Issues
# Check installation
npm test
# Reinstall Python dependencies
npm run postinstall
# Manual Python installation
pip install personal-brain-mcpCommon Problems
- Python not found: Install Python 3.8+ from python.org
- pip not found: Install pip or use
python -m pip - API key errors: Check your .env file configuration
- Permission errors: Try
sudo npm install -g(macOS/Linux)
Development
# Clone and install
git clone <repository>
cd npm-package
npm install
# Test the package
npm test
# Publish to npm
npm publishAPI Keys Setup
You'll need API keys from:
- Google AI Studio: https://makersuite.google.com/app/apikey
- Pinecone: https://app.pinecone.io/
- Anthropic (optional): https://console.anthropic.com/
Support
- GitHub Issues: https://github.com/your-username/personal-brain-mcp/issues
- Documentation: See README.md in the Python package
License
MIT
