g0t4_mcp-server-memory-file
The mcp-server-memory is an MCP server designed to interact with a memory text file to assist Claude with inter-chat context management.
The mcp-server-memory is a Model Context Protocol (MCP) server that facilitates interaction with a memory text file, enabling Claude and other MCP clients to manage memories during chats. Each line in the text file represents a memory, which can be added, searched, deleted, or listed. This server is particularly useful for maintaining context across multiple interactions, allowing the model to recall previous conversations and details. The design is inspired by ChatGPT's memory system, which is essentially a text file, simplifying the management of memories as a list of strings. The server also includes a cueing mechanism to determine when memories should be stored, which may involve training, prompts, or tool specifications. The server's functionality is critical for tasks such as correcting information, updating details, and influencing responses based on past interactions.
Features
- Memory Management: Allows adding, searching, deleting, and listing memories.
- Inter-Chat Context: Helps maintain context across multiple interactions.
- Simple Design: Utilizes a text file for memory storage, simplifying management.
- Cueing Mechanism: Determines when to store memories using training, prompts, or tools.
- Tool Integration: Works with Claude and other MCP clients for seamless memory management.
MCP Tools
- {'memory_add': 'Appends a new memory to the text file.'}
- {'memory_search': 'Returns matching memories based on a query.'}
- {'memory_delete': 'Deletes memories that match a given query.'}
- {'memory_list': 'Returns all stored memories.'}
Usage with Different Platforms
python
python
# Example script to interact with mcp-server-memory
import requests
# Add a memory
response = requests.post('http://mcp-server-memory/memory_add', json={'memory': 'talking to Wes'})
print(response.json())
# Search for a memory
response = requests.get('http://mcp-server-memory/memory_search', params={'query': 'Wes'})
print(response.json())
# Delete a memory
response = requests.post('http://mcp-server-memory/memory_delete', json={'query': 'Wes'})
print(response.json())
# List all memories
response = requests.get('http://mcp-server-memory/memory_list')
print(response.json())
Related MCP Servers
View all knowledge_and_memory servers →git-mcp
by idosal
GitMCP is a free, open-source, remote Model Context Protocol (MCP) server that transforms GitHub projects into documentation hubs, enabling AI tools to access up-to-date documentation and code.
Knowledge Graph Memory Server
by modelcontextprotocol
A basic implementation of persistent memory using a local knowledge graph, allowing Claude to remember information about the user across chats.
mcpdoc
by langchain-ai
MCP LLMS-TXT Documentation Server provides a structured way to manage and retrieve LLM documentation using the Model Context Protocol.
rust-docs-mcp-server
by Govcraft
The Rust Docs MCP Server provides an up-to-date knowledge source for specific Rust crates, enhancing the accuracy of AI coding assistants by allowing them to query current documentation.
mindmap-mcp-server
by YuChenSSR
A Model Context Protocol (MCP) server for converting Markdown content to interactive mindmaps.
algorand-mcp
by GoPlausible
This is a Model Context Protocol (MCP) implementation for Algorand blockchain interactions, providing a server package for blockchain interactions and a client package for wallet management and transaction signing.
mcp-obsidian
by MarkusPfundstein
MCP server to interact with Obsidian via the Local REST API community plugin.