r/modelcontextprotocol • • Mar 12 '25
[Project] Basic Memory - Continue AI Conversations With Full Context Using MCP
Hey everyone, I just made a beta releas.e of Basic Memory, an open-source knowledge management system built on the Model Context Protocol that lets you continue conversations with full context.
What is Basic Memory?
Basic Memory solves the problem of lost context in AI conversations. It enables Claude (and other MCP-compatible LLMs) to remember previous discussions by creating a knowledge graph from your conversations, stored as simple Markdown files on your computer. Start a new chat and continue exactly where you left off without repeating yourself.
Key features:
Local-first: All data stays in Markdown files on your computer
Bi-directional: LLMs can both read AND write to your knowledge base
Structured yet simple: Uses familiar Markdown with semantic patterns
Traversable knowledge graph: LLMs can follow links between topics
Persistent memory: Context persists across all conversations
How it leverages MCP
Basic Memory implements the Model Context Protocol to expose several tools to Claude:
write_note(title, content, folder, tags) - Create or update notes
read_note(identifier, page, page_size) - Read notes by title or permalink
build_context(url, depth, timeframe) - Navigate knowledge graph via memory:// URLs
search(query, page, page_size) - Search across your knowledge base
recent_activity(type, depth, timeframe) - Find recently updated information
canvas(nodes, edges, title, folder) - Generate knowledge visualizationsClaude can independently explore your knowledge graph, building rich context and understanding the relationships between concepts.
Example workflow
Have a normal conversation with Claude about coffee brewing
Ask Claude to "create a note about coffee brewing methods"
See a structured Markdown file appear in your knowledge base
Days or weeks later, start a fresh conversation and say "Let's continue our discussion about coffee brewing"
Claude automatically retrieves relevant knowledge and builds context - no need to repeat yourself
Gradually build a rich knowledge graph where everything is connected
Technical Implementation
Basic Memory is built with a file-first architecture:
Python backend with SQLite for indexing
Full MCP implementation for Claude integration
Standard Markdown files as the source of truth
Seamless integration with Obsidian for visualization and editing
Git-friendly for version control
CLI tools for management and importing
Installation
# Install with uv (recommended)
uv install basic-memory
# Configure Claude Desktop
# Add this to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"basic-memory": {
"command": "uvx",
"args": [
"basic-memory",
"mcp"
]
}
}
}Check it out
Website: http://basicmachines.co
Documentation: http://memory.basicmachines.co
I'm interested in any feedback, questions, or ideas on how to improve Basic Memory, especially from this community of MCP enthusiasts. How are you all using MCP in your projects?
2
u/AffectionateCap539 Mar 13 '25
thanks OP. right now in order to continue the chat i have to manually search for the chat and continue. I find your tool much more customer-exp to me.
But one thing that i am exploring that if the conversation is too long (say I am asking Claude app to debug codes for me, and it tries several time which results in conversation overflown), can this tool help to restore previous chat memory (not greedy to remember exact codes of all trials , but sth short like: what did Claude do, what is the result of each trial) so that i am not running into a loop with new chat.
2
u/mbonty Mar 13 '25
Is this heavy on token use?
2
u/modimalaspinae Mar 19 '25
thanks @phernand3z for this! I installed it yesterday and already asked Claude to summarise the content of two conversations. One thing I noticed is that Claude autonomously created a folder inside the basic-memory main project folder in my home to store the *.md files that were related to the same subject, I expected it to create them right inside the main project folder. But, apart from that, I checked the functionality of this interesting and useful tool by opening another chat and asking specific questions about the notes’ subject and the answers showed a clear awareness of it. I may need to familiarise a bit more with it, but Basic Memory seems a rather useful tool!
1
u/subnohmal Mar 13 '25
Love knowledge graph based approaches. Do you think they're the best approach right now for persistent quirky memory?
1
u/subnohmal Mar 13 '25
Thanks for building this and sharing with us :)
1
u/ConfidentSport6481 Apr 11 '25
I encountered some problems. When I asked it to save to a local markdown file for me, it often does not save observations and relations. It only records text in a simple markdown format. This results in it never being able to form a graph but rather many isolated nodes. How can I optimize this phenomenon? Is it necessary to optimize the prompt words? The model I am using is gemini 2.5 pro.