MCP server template for long-term agent memory using Mem0
Top 63.7% on sourcepulse
This project provides a template implementation of a Model Context Protocol (MCP) server, integrating with Mem0 to offer AI agents persistent, semantically indexed long-term memory. It's designed for developers building custom MCP servers or as a reference for AI coding assistants, enabling agents to store, retrieve, and search memories efficiently.
How It Works
The server implements three core memory management functions: save_memory
for storing and indexing, get_all_memories
for retrieving all data, and search_memories
for semantic retrieval. It leverages Mem0 for vector storage and semantic indexing, adhering to Anthropic's best practices for MCP server development, ensuring compatibility with MCP-compatible clients.
Quick Start & Requirements
uv pip install -e .
..env
file from .env.example
and configure environment variables.uv run src/main.py
for SSE transport or configure clients for stdio transport. Docker images can be built and run similarly.Highlighted Details
Maintenance & Community
The repository is maintained by coleam00. No specific community channels or roadmap links are provided in the README.
Licensing & Compatibility
The repository does not explicitly state a license in the README. Compatibility for commercial use or closed-source linking is not specified.
Limitations & Caveats
The project is presented as a template and reference implementation. Specific performance benchmarks, detailed error handling, or production-readiness assessments are not included. The absence of an explicit license may pose a barrier to commercial adoption.
3 months ago
Inactive