A Model Context Protocol (MCP) server that provides tools for storing, retrieving, and managing memories saved to a local file.
npm install
npm run build
Run the server with:
npm start -- [storage-path]
Where storage-path
is the directory where you want to store the memories file (defaults to the current directory).
To use this server with Claude for Desktop:
Open your Claude for Desktop configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
Add the server configuration:
{
"mcpServers": {
"memory": {
"command": "node",
"args": [
"/path/to/mcp-memory-server/build/index.js",
"/path/to/storage/directory"
]
}
}
}
The server exposes the following tools:
store-memory
Stores a new memory.
Parameters:
content
(string, required): The text content to storetags
(array of strings, optional): Tags to categorize the memorysearch-memories
Searches for memories.
Parameters:
searchTerm
(string, optional): Text to search for in the memory contenttag
(string, optional): Filter memories by this tagget-all-memories
Retrieves all stored memories.
Parameters: None
delete-memory
Deletes a memory by ID.
Parameters:
id
(string, required): ID of the memory to deleteget-tags-summary
Gets a summary of all used tags.
Parameters: None
Here are some example queries to use with Claude:
The server stores memories in a file named memories.json
in the specified storage directory.
MIT
{
"mcpServers": {
"memory": {
"env": {},
"args": [
"/path/to/mcp-memory-server/build/index.js",
"/path/to/storage/directory"
],
"command": "node"
}
}
}
Seamless access to top MCP servers powering the future of AI integration.