A new solution called "claude-memory-mcp" has been introduced to enhance the capabilities of Claude Code sessions beyond traditional CLAUDE.md files. This system leverages PostgreSQL with pgvector for semantic memory storage, enabling more efficient and relevant recall of past project decisions, bug fixes, and patterns.
Key features include:
- Semantic Search: Utilizes vector similarity search rather than full context loading.
- Cross-project Memory Sharing: Memories can be shared across different projects by omitting the project ID filter.
- Cost-effective Setup: Requires Docker, Supabase (free tier), and an OpenAI API key. Estimated monthly cost is around $0.50 at moderate usage levels.
Setup involves:
- Cloning the GitHub repository:
git clone https://github.com/glivera/claude-memory-mcp - Configuring environment variables in
.envfile. - Running Docker Compose to start the server.
- Adding the server details to
~/.claude/mcp.json.
The system supports multiple Claude Code sessions sharing the same memory server, ensuring real-time availability of stored memories.
Compared to CLAUDE.md, which holds static rules and conventions, vector memory is designed for dynamic project
Read the full article at DEV Community
Want to create content about this topic? Use Nemati AI tools to generate articles, social posts, and more.





![[AINews] Every Lab serious enough about Developers has bought their own Devtools](https://media.nemati.ai/media/blog/images/articles/b2c1ed1a81094c5a.webp)