Supports containerized deployment of the MCP server
Manages environment variables for configuration of the MCP server
Supported as an MCP client that can connect to the server
Offers an alternative LLM provider option for semantic processing of memories
Provides LLM and embedding capabilities for semantic processing and search of memories
Used for vector storage of memories, allowing semantic indexing and retrieval of stored information
Recommended as a PostgreSQL database provider for vector storage of memories
y# 🐕 PomPom-AI: Intelligent Memory System for Qodo AI
PomPom-AI (PomPom Artificial Intelligence) - A smart MCP (Model Context Protocol) server that provides persistent memory capabilities for Qodo AI. Just like Pompompurin's friendly and reliable nature, PomPom-AI remembers everything important and helps your AI assistant provide personalized, intelligent responses across all conversations.
🎯 Personal Setup for Qodo AI Integration
This repository is configured for personal use with Qodo AI, providing long-term memory storage and retrieval capabilities.
Qodo AI MCP Configuration
🚀 Quick Start Guide
Prerequisites
- Python 3.12+
- OpenRouter API key (for Claude 3.7 Sonnet)
- Supabase PostgreSQL database (configured)
Installation
- Clone and setup:
- Configure environment:
Copy
.env.example
to.env
and update with your credentials: - Start the server:
- Test connectivity:
🧠 How It Works - Detailed Explanation
Architecture Overview
Component Breakdown
1. MCP Server (src/main.py
)
- FastMCP Framework: Handles MCP protocol communication
- SSE Transport: Server-Sent Events for real-time communication on port 8051
- Lifespan Management: Initializes and manages Mem0 client connection
- Three Core Tools: Exposes memory operations to Qodo AI
2. Memory Tools Available to Qodo AI
save_memory(text: str)
- Purpose: Store any information in long-term memory
- Usage: When you tell Qodo AI something important to remember
- Process:
- Receives text from Qodo AI
- Processes through Claude 3.7 Sonnet for fact extraction
- Generates embeddings using ChromaDB's built-in model
- Stores in both ChromaDB (vectors) and PostgreSQL (metadata)
get_all_memories()
- Purpose: Retrieve all stored memories for context
- Usage: When Qodo AI needs complete memory context
- Process:
- Queries Mem0 for all memories associated with default user
- Returns paginated results (50 items default)
- Provides full context for conversation continuity
search_memories(query: str, limit: int = 3)
- Purpose: Find relevant memories using semantic search
- Usage: When Qodo AI needs specific information
- Process:
- Converts query to embeddings
- Performs vector similarity search in ChromaDB
- Returns most relevant memories ranked by relevance
3. Memory Configuration (src/utils.py
)
LLM Configuration (OpenRouter + Claude)
Embedding Configuration (ChromaDB Built-in)
- No external API calls: Uses ChromaDB's default embedding function
- Local processing: Embeddings generated locally for privacy
- No additional costs: No embedding API fees
Vector Store Configuration (ChromaDB)
4. Data Flow When You Use Qodo AI
Saving a Memory:
Retrieving Memories:
5. Storage Architecture
ChromaDB (Local - ./chroma_db/
)
- Vector embeddings: Semantic representations of memories
- Fast similarity search: Sub-second query responses
- Local SQLite: No external dependencies
- Collection:
mem0_memories
PostgreSQL (Supabase)
- Metadata storage: User associations, timestamps
- Structured data: Relationships and memory organization
- Cloud backup: Persistent storage across devices
- Scalability: Handles large memory datasets
🔧 Memory Management Tools
View Current Memories
Visual Dashboard
Server Testing
📊 Memory Analytics
The system tracks:
- Total memories stored
- Memory categories/collections
- Average memory length
- Search frequency patterns
- Memory creation timestamps
🔒 Privacy & Security
- Local embeddings: No data sent to external embedding APIs
- Encrypted storage: PostgreSQL with SSL
- Local processing: ChromaDB runs entirely on your machine
- API key security: Environment variables only
🎛️ Configuration Options
Memory Processing
- Temperature: 0.2 (consistent fact extraction)
- Max tokens: 1500 (detailed memory processing)
- Model: Claude 3.7 Sonnet (high-quality reasoning)
Search Parameters
- Default limit: 3 memories per search
- Similarity threshold: Automatic (ChromaDB optimized)
- Collection scope: Single user (isolated memories)
🚀 Usage Patterns with Qodo AI
Personal Information
Project Context
Preferences & Settings
🔄 Maintenance
Regular Tasks
- Monitor ChromaDB size (
./chroma_db/
) - Check PostgreSQL connection health
- Review memory quality and relevance
- Update API keys as needed
Troubleshooting
- Server won't start: Check
.env
configuration - Memory not saving: Verify PostgreSQL connection
- Search not working: Restart server to refresh ChromaDB
- Qodo AI can't connect: Confirm port 8051 is open
📈 Performance Optimization
- ChromaDB: Optimized for <1000 memories per collection
- PostgreSQL: Indexed for fast metadata queries
- Memory size: Optimal range 50-500 characters per memory
- Search speed: Sub-100ms for typical queries
🎯 Best Practices
- Memory Quality: Store specific, actionable information
- Regular Cleanup: Remove outdated or irrelevant memories
- Categorization: Use consistent language for similar topics
- Testing: Regularly test memory retrieval accuracy
- Backup: PostgreSQL provides automatic cloud backup
This system transforms Qodo AI into a truly personalized assistant that remembers your preferences, project context, and important information across all conversations.
🐕 Why "PomPom-AI"?
Just like Pompompurin is known for being:
- 🤗 Friendly & Reliable - PomPom-AI is always there to help remember what's important
- 🧠 Smart & Attentive - Intelligently processes and organizes your memories
- 💛 Loyal Companion - Grows smarter about your preferences over time
- 🎯 Focused & Efficient - Quickly finds exactly what you need when you need it
PomPom-AI = PomPom (friendly like Pompompurin) + AI (Artificial Intelligence)
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
A template implementation of the Model Context Protocol server that integrates with Mem0 to provide AI agents with persistent memory capabilities for storing, retrieving, and searching memories using semantic search.
Related MCP Servers
- -securityFlicense-qualityModel Context Protocol (MCP) server implementation for semantic search and memory management using TxtAI. This server provides a robust API for storing, retrieving, and managing text-based memories with semantic search capabilities. You can use Claude and Cline AI AlsoLast updated -6Python
- -securityFlicense-qualityA TypeScript implementation of the Model Context Protocol server that enables creation, management, and semantic search of memory streams with Mem0 integration.Last updated -TypeScript
- -securityAlicense-qualityA Model Context Protocol server that provides AI agents with persistent memory capabilities through Mem0, allowing them to store, retrieve, and semantically search memories.Last updated -488PythonMIT License
- -securityAlicense-qualityA Model Context Protocol server that integrates AI assistants with Mem0.ai's persistent memory system, allowing models to store, retrieve, search, and manage different types of memories.Last updated -9PythonMIT License