Skip to main content
Glama

Memory Server MCP

A MCP server for persistent memory storage with advanced features like tagging, timestamping, expiration, content search, and inter-memory linking. Built for integration with MCP clients like Claude for Desktop.

Features

  • Save/Update Memories ( Store or update a memory with a unique key and value. Supports optional tags and expiration settings.

    • key (string): Unique identifier for the memory.

    • value (string): The content of the memory.

    • tags (array of strings, optional): A list of tags to associate with the memory. If provided, replaces existing tags. Pass an empty array to remove all tags.

    • expires_in_seconds (number, optional): The number of seconds until this memory expires. Pass 0 or a negative number to remove expiration.

  • Recall Memory ( Retrieve a memory by its key, including its value, associated tags, creation timestamp, last updated timestamp, and expiration timestamp.

  • List Memories ( List all non-expired memory keys. Optionally, filter memories by a specific tag.

    • tag (string, optional): Filter memories by this tag.

  • Delete Memory ( Permanently remove a memory by its key. Also removes any links pointing to the deleted memory.

  • List All Tags ( Get a list of all unique tags currently in use across all non-expired memories.

  • Search Memory Content ( Search for memories whose content (value) contains a given query string (case-insensitive, non-expired memories only).

  • Link Memories ( Create a directed link from a source memory to a target memory with a specified relationship type.

    • source_key (string): The key of the memory from which the link originates.

    • target_key (string): The key of the memory to which the link points.

    • relationship_type (string): The type of relationship (e.g., related_to, depends_on, is_part_of).

  • Get Linked Memories ( Retrieve a list of memories linked from a given source memory, optionally filtered by relationship type.

Installation & Usage

npx memory-server-mcp

Global Installation

npm install -g memory-server-mcp memory-server-mcp

Usage with MCP Clients

Claude for Desktop

  1. Add MCP Server Configuration: In your Claude for Desktop settings, add a new MCP server:

    { "mcpServers": { "memory": { "command": "npx", "args": ["memory-server-mcp"] } } }
  2. Restart Claude for Desktop to load the new server.

  3. Start using memory commands in your conversations with Claude.

Example Usage

Once connected to an MCP client, you can use commands like:

Save a memory about my project: Key: project_status Value: Working on memory server MCP, almost ready for release Tags: work, mcp, nodejs Recall what I saved about my project status. Search for memories containing "nodejs". Link my project memory to related technologies.
-
security - not tested
F
license - not found
-
quality - not tested

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/hridaya423/memory-mcp'

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