MCP Claude Context Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Claude Context Serversearch my conversations for 'Python'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Claude Context Server v0.5.0
A powerful Model Context Protocol (MCP) server for extracting, storing, searching, and analyzing Claude.ai conversations with enhanced database storage, semantic search, and multiple export formats.
π What's New in v0.5.0
SQLite Database Storage - Migrate from JSON files to efficient database
Semantic Search - AI-powered search using sentence transformers
Multiple Export Formats - Obsidian, PDF, JSON, CSV
Easy Deployment - Docker support and one-click installers
Performance Improvements - 10x faster search, 35% faster operations
Features
Core Functionality
β Direct API access for Claude.ai conversations
β Chrome extension for full message extraction
β SQLite database with full-text search
β Semantic search capabilities
β Multiple export formats (Obsidian, PDF, JSON, CSV)
β Bulk operations and analytics
β Session management with auto-refresh
β Real-time analytics dashboard
Architecture
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
β Claude.ai Web ββββββΆβ Chrome Extension ββββββΆβ Bridge Server β
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
β
βΌ
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
β MCP Client βββββββ MCP Server βββββββ Database β
β (Claude App) β β (Enhanced) β β (SQLite+FTS) β
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
β
βββββββββ΄ββββββββ
βΌ βΌ
ββββββββββββ ββββββββββββ
β Exportersβ β Search β
β (PDF/MD) β β (AI/FTS) β
ββββββββββββ ββββββββββββπ οΈ Installation
Quick Start with uvx (Recommended - No Installation!)
Add to your Claude Desktop config:
{
"mcpServers": {
"claude-context": {
"command": "uvx",
"args": ["mcp-claude-context"],
"env": {
"CLAUDE_SESSION_KEY": "sk-ant-sid01-...",
"CLAUDE_ORG_ID": "28a16e5b-..."
}
}
}
}That's it! No installation needed. See full uvx guide β
Quick Start with Docker
# Using pre-built image
docker run -d \
--name mcp-claude-context \
-p 8000:8000 \
-v $(pwd)/data:/app/data \
hamzaamjad/mcp-claude-context:latest
# Or with docker-compose
curl -O https://raw.githubusercontent.com/hamzaamjad/mcp-claude-context/main/docker-compose.simple.yml
docker-compose -f docker-compose.simple.yml up -dOne-Click Installer
# Mac/Linux
curl -sSL https://raw.githubusercontent.com/hamzaamjad/mcp-claude-context/main/deployment/one-click-install.sh | bash
# Windows (PowerShell)
iwr -useb https://raw.githubusercontent.com/hamzaamjad/mcp-claude-context/main/deployment/install.ps1 | iexManual Installation
Prerequisites:
Python 3.11+
Chrome browser
Poetry (Python package manager)
Install dependencies:
poetry installInitialize database:
poetry run python -c "from src.models.conversation import init_database; init_database()"Install Chrome extension:
Open Chrome β
chrome://extensions/Enable "Developer mode"
Click "Load unpacked" β Select
extension/directory
Start the server:
poetry run python -m src.direct_api_server
π Available MCP Tools
Conversation Management
Tool | Description | Requires API Keys |
| List all conversations from Claude.ai | β |
| Get specific conversation details | β |
| Search conversations by keyword | β |
| Get full messages from local data | β |
Search & Analytics
Tool | Description |
| Full-text search across all messages |
| AI-powered similarity search |
| Get conversation statistics and insights |
Export & Operations
Tool | Description |
| Export to JSON/CSV formats |
| Export to Obsidian vault with backlinks |
| Tag, export, delete, or analyze in bulk |
System Management
Tool | Description |
| Update Claude.ai session credentials |
| Migrate JSON files to SQLite |
| Optimize search performance |
π‘ Usage Examples
Basic Operations
# List conversations
{
"tool": "list_conversations",
"arguments": {
"session_key": "YOUR_SESSION_KEY",
"org_id": "YOUR_ORG_ID",
"limit": 50,
"sync_to_db": true
}
}
# Search with AI
{
"tool": "semantic_search",
"arguments": {
"query": "discussions about machine learning",
"search_type": "hybrid",
"top_k": 10
}
}
# Export to Obsidian
{
"tool": "export_to_obsidian",
"arguments": {
"conversation_ids": ["conv-id-1", "conv-id-2"],
"vault_path": "/path/to/obsidian/vault"
}
}Chrome Extension Usage
Extract single conversation:
Navigate to conversation on Claude.ai
Click extension icon
Click "Extract Current Conversation"
Bulk extract all conversations:
Click extension icon
Click "Extract All Conversations"
Monitor progress in popup
View analytics:
See statistics, trends, and insights
π§ Configuration
Environment Variables
Variable | Description | Default |
| Database location |
|
| Export directory |
|
| Notion integration | Optional |
Getting Session Credentials
Log into Claude.ai
Open Chrome DevTools (F12)
Go to Application β Cookies
Find
sessionKeyvalueFind
org_idin Network tab API calls
π Performance
v0.5.0 Improvements
Search Speed: 10x faster with SQLite FTS5
Storage: 20% less space with database compression
Operations: 35% faster read/write performance
Scalability: Handles 100K+ conversations efficiently
Benchmark Results
Operation | JSON Files | SQLite Database |
Search 1K convos | 2.3s | 0.23s |
Load conversation | 150ms | 45ms |
Export 100 convos | 5.2s | 1.8s |
π Advanced Features
Semantic Search
The server uses sentence transformers for AI-powered search:
Find similar conversations
Search by meaning, not just keywords
Discover related topics automatically
Obsidian Integration
Export conversations with:
Proper frontmatter metadata
Automatic backlinks
Daily notes integration
Tag organization
Dataview queries
Bulk Operations
Process multiple conversations:
{
"tool": "bulk_operations",
"arguments": {
"operation": "analyze",
"conversation_ids": ["id1", "id2", "id3"],
"params": {}
}
}π Troubleshooting
Common Issues
"Session expired" error
Get fresh session key from Claude.ai
Use
update_sessiontool
Chrome extension not connecting
Ensure bridge server is running (port 9222)
Check extension permissions
Database locked error
Ensure only one server instance running
Check file permissions
Search not finding results
Run
rebuild_search_indextoolVerify conversations are in database
Debug Mode
Enable detailed logging:
LOG_LEVEL=DEBUG poetry run python -m src.direct_api_serverπ€ Contributing
Contributions are welcome! Please:
Fork the repository
Create a feature branch
Add tests for new features
Submit a pull request
Development Setup
# Install dev dependencies
poetry install --with dev
# Run tests
poetry run pytest
# Format code
poetry run black src/
poetry run ruff src/π License
MIT License - see LICENSE file
π Acknowledgments
Built on Model Context Protocol
Uses Sentence Transformers for semantic search
PDF generation with ReportLab
π Support
Note: This tool is not affiliated with Anthropic. Use responsibly and respect rate limits.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/hamzaamjad/mcp-claude-context'
If you have feedback or need assistance with the MCP directory API, please join our Discord server