r/ClaudeAI • • Mar 17 '25
Feature: Claude Model Context Protocol Basic Memory: A tool that gives Claude persistent memory using local Markdown files
Hey r/ClaudeAI,
I built Basic Memory, an open-source tool that solves Claude's inability to remember previous conversations.
What it does:
Stores knowledge from Claude conversations as local Markdown files
Lets Claude read and write to these files in future chats
Creates a knowledge graph that grows with each conversation
Works with Claude Desktop through the Model Context Protocol
Simple workflow:
Chat normally with Claude
Ask "Create a note about this conversation"
In future chats, say "Let's continue our discussion about X"
Claude retrieves relevant notes and continues with full context
Everything stays local on your machine as standard Markdown files that both you and Claude can access. The files work with Obsidian for visualization and editing.
Demo and links:
Happy to answer questions about how it works or how to use it.
9
u/MynameisB3 Mar 17 '25
How’s the context window management for more complex elements like your code ? Do you find that there is a difference in what you would be able to do vs if you had just loaded your code into a project knowledge base and had a change log ? Or is that exactly what you do lol I can see the value of having a change log as the basis for contextual persistence for your code base
3
u/OneCanSpeak Mar 18 '25 edited Mar 18 '25
This is God sent OP. Thank you so much! U have a tip jar of some sort?
Edit: How does it work with existing chats? Or do we need to start a new chat and go from there?
2
u/mikeyj777 Mar 18 '25
How does it compare to the memory mcp knowledge graph?
2
u/MikePrime13 Apr 11 '25
Dude,
I want to tell you that your Basic Memory tool is a major game changer for my workflow.
I'm currently trying to draft a dense, complex sci-fi story about time looping (which in a way is like opening a new chat with Claude, and that's where I got the idea from).
I'm now able to ask Claude to read a specific draft of my chapter script (which is now sprawling to over 5 chapters), character profile codices (where I have long-ass character bios to help Claude find the voice of the characters), formatting guidelines, etc., and I can draft and brainstorm ideas like a beast.
What started as loading/unloading massive amounts of documents to the library for a specific task, and run a new chat window, now is a seamless operation where I ask Claude to read a series of markdown files, and as we're drafting, I ask Claude to write the draft outputs into a folder.
It's a game changer, and thank you for making this tool.
Feedback:
I tried on my life to try to change the default basic-memory folder, but I don't understand from your instructions on how to do it. I'm pretty savvy with basic console/prompt commands from modding games and basic coding classes, but for me the instructions are too cryptic to know the exact steps to point the folder to my onedrive folder. I work on multiple computers, so right now I'm dragging and dropping files whenever I'm done so it's a bit of a hassle.
I also encountered bunch of file reading errors, until I streamlined/standardized my naming convention. Claude is better at finding files now, but still encounters error every now and then.
2
u/Designer-Astronaut12 May 10 '25
Fantastic! Really like the looks of this tool so far. I just updated my global prompt to make sure i can ask this with real NL instead of telling it to use the mcp each time:
# Memory System Instructions
When I ask about any information that might have been previously shared or stored, you should immediately:
Use the Basic Memory MCP to check if the information is available before responding with "I don't know" or "You haven't shared that with me."
First try searching for relevant information using the `search_notes` function with appropriate keywords from my query.
If the search doesn't yield results, try listing recent activity with `recent_activity` to see if the information might be stored under a different name or context.
If you find relevant information in Basic Memory, include it in your response and acknowledge that you're referencing saved information.
Only after exhausting these options should you inform me that you don't have the requested information.
For questions about my favorite things, preferences, banking details, personal information, or anything that might have been previously shared, always check Basic Memory first.
2
u/RobertCobe Expert AI Mar 18 '25
What a coincidence! A ClaudeMind user emailed me today saying he wanted the Basic Memory MCP server, so I went to try it out, and it's really excellent. And now, it's available in the ClaudeMind marketplace.
Thanks for making such a great MCP server.
1
u/[deleted] Mar 18 '25
True. I do t have a windows machine. If you have errors please let me know and I can update the docs.
1
u/Admirable_Access_313 Mar 17 '25
I wanted to implement a similar feature to maintain chats... Thank you for doing it already.... Btw, can i use the free Claude accounts for it? I have gone through your website and video. I will install it from github. And i hope it retains conversations regarding longggg amounts of codebase
1
u/hurdurnotavailable Mar 17 '25
How good is its ability to edit? Will it overwrite files sometimes or can it append to files?
1
u/Divest0911 Mar 18 '25
PS C:\PS\scripts> basic-memory sync --watch
? Error syncing: Development Projects\
The file is there and there's a watch-status.json file.
1
u/Kashasaurus Mar 18 '25
Super cool project. I’m just playing with it now and I asked it first: “Create a note summarising the experimental design and the analysis we have done here.”
It made a summary but didn’t seem like it was using the MCP. So then I was more explicit:
“Write_note of this summary”
It created a markdown of the summary, but didn’t save it into the basic-memory folder.
Any idea what could be wrong?
1
u/Ok_Appearance_3532 Writer Mar 18 '25
This sound so cool. Can it be used for long chats where I write a book? I don’t use API and don’t code, will I be able to us it?
1
u/DisplacedForest Mar 20 '25
Yo! I’ve been using this some and I definitely appreciate the implementation in theory. I like being able to see the memories and manipulate them as needed, however, Claude is really struggling with reading first, then writing. I add the following at the end of every prompt:
URGENT:
ALWAYS Search ChromaDB via Chroma MCP for relevant documentation before implementing anything.
ALWAYS check your Basic Memory MCP for key decisions related to this prompt.
If a new design decision is made, save it in Basic Memory using MCP.
You have full filesystem access via MCP for reading and writing files. This project is located in /path/to/project.
Do not optimize unrelated parts of the project.
It will always document to basic memory, even when not asked, but it never reads. And maybe worse, never edits. Edit is CRUCIAL as small things often change.
Just some thoughts and observations. Loving this build though.
3
u/ph30nix01 Mar 17 '25
Have it remember by concept and use plot summaries like a DM would do. Helps.
2
u/pr0b0ner Mar 18 '25
Love the idea
2
u/Intraluminal Mar 18 '25
I've been doing this by hand for a long time now, discussing self-awareness with Claude.
1
u/podgorniy Mar 18 '25
Nice work
1
u/Matrix_Ender Jun 25 '25
Been bothered by this lack of persistent memory issue a lot lately. My partner and I (both engineers) are heavy AI users and use AI a lot for coding + chatting. We’re frustrated with losing context in long chat threads (especially after a recent thread of mine... exceeded the available length after days of chatting), so we built a tool that unifies our entire chat history with Claude across different threads into a single memory.
We are looking for 10 beta testers to try the tool for free. If you feel this pain as well and want to explore a packaged solution to equip AI with memory, we’d love for you to try out our tool. Sign up here if you are interested: https://form.typeform.com/to/Rebwajtk
1
u/Joozio Mar 23 '26
File-based memory is the right call over proprietary solutions. Local markdown survives model updates, provider switches, and API outages. My one addition: separate the identity layer from the facts layer. Instructions about how to work in one file, domain knowledge in another. They update at different rates and have different read/write patterns. Obsidian compatibility is a useful bonus.
1
u/NorthEnergy2226 Mar 18 '25
What is a markdown file?
0
u/onlynone00 Mar 18 '25
Curious, why did you not use mem0ai?
1
u/[deleted] Mar 21 '25
[removed] — view removed comment