Skip to main content
Glama
drdee

Memory MCP

by drdee

remember

Store and organize information with structured titles and content using a SQLite-based memory storage system. Ideal for managing and retrieving data efficiently.

Instructions

Store a new memory.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYesThe full content of the memory to store
titleYesA concise title for the memory

Implementation Reference

  • The core handler function that executes the 'remember' tool by storing the provided title and content in the database and returning a success message with the memory ID.
    def remember(title: str, content: str) -> str:
        """
        Store a new memory.
    
        Args:
            title: A concise title for the memory
            content: The full content of the memory to store
    
        Returns:
            A confirmation message with the ID of the stored memory
        """
        try:
            memory_id = db.add_memory(title, content)
            return f"Memory stored successfully with ID: {memory_id}."
        except Exception as e:
            return f"Error storing memory: {str(e)}"
  • The JSON schema defining the input parameters for the 'remember' tool: required 'title' and 'content' as strings.
    inputSchema={
        "type": "object",
        "properties": {
            "title": {
                "type": "string",
                "description": "A concise title for the memory",
            },
            "content": {
                "type": "string",
                "description": "The full content of the memory to store",
            },
        },
        "required": ["title", "content"],
        "title": "rememberArguments",
    },
  • The dispatch logic in the call_tool handler that registers and invokes the 'remember' tool when called.
    if name == "remember":
        if not arguments or "title" not in arguments or "content" not in arguments:
            raise ValueError("Missing title or content arguments")
        result = remember(arguments["title"], arguments["content"])
        return [types.TextContent(type="text", text=result)]
Install Server

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/drdee/memory-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server