Skip to main content
Glama
Agent Memory MCP

Agent Memory MCP

by MSR806

Agent Memory MCP

Standalone MCP server for agent-maintained memories.

Memories are stored under ~/.agents/memories by default. Set AGENT_MEMORY_ROOT to use another directory.

Install

npx -y @msr0806/agent-memory-mcp

Related MCP server: mem-universe

Cursor / Claude Desktop

{
  "mcpServers": {
    "agent-memory": {
      "command": "npx",
      "args": ["-y", "--package=@msr0806/agent-memory-mcp", "agent-memory-mcp"]
    }
  }
}

If npx fails with command not found, clear the cache and retry:

npx clear-npx-cache
npx -y --package=@msr0806/agent-memory-mcp agent-memory-mcp

Optional custom storage path:

{
  "mcpServers": {
    "agent-memory": {
      "command": "npx",
      "args": ["-y", "@msr0806/agent-memory-mcp"],
      "env": {
        "AGENT_MEMORY_ROOT": "/path/to/memories"
      }
    }
  }
}

Tools

Tool

Description

create_memory

Create a global or repo-scoped memory

read_memory

Read one memory

read_memories

Read global + repo memories for a repo

update_memory

Update description and/or content

delete_memory

Delete a memory

list_memories

List memory metadata

Scopes

  • global — shared across all repos (e.g. coding preferences)

  • repo — scoped to a repo name (e.g. project-gilly)

Storage layout

~/.agents/memories/
  global/
    coding-style/MEMORY.md
  repos/
    project-gilly/
      mvp-scope/MEMORY.md

Development

git clone https://github.com/MSR806/agent-memory-mcp.git
cd agent-memory-mcp
npm install
npm test
npm run build
npm start

Publish

npm login
npm publish --access public

Available Tools

6 tools
create_memoryC

Create a new global or repo-scoped memory.

Inputs: desc (required), name (required), scope (required), content (required), +1 more.

delete_memoryB

Delete a global or repo-scoped memory.

Inputs: name (required), scope (required), repo_name.

list_memoriesD

List memory metadata.

Inputs: repo_name.

read_memoriesC

Read global memories and memories for the provided repo.

Inputs: repo_name (required).

read_memoryC

Read a single global or repo-scoped memory.

Inputs: name (required), scope (required), repo_name.

update_memoryC

Update an existing global or repo-scoped memory.

Inputs: name (required), scope (required), desc, content, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool has a distinct purpose: creating, deleting, listing metadata, reading multiple, reading single, and updating memories. No overlap.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern in snake_case (e.g., create_memory, list_memories). The plural/singular distinction for read_memories vs read_memory is appropriate.

    Tool Count5/5

    6 tools is a well-scoped set covering full CRUD plus list and batch read operations. Not too few or too many.

    Completeness5/5

    The set provides complete lifecycle management for memories: create, read (single and batch), update, delete, and list metadata. No obvious gaps.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Self-hosted MCP memory server that gives a multi-agent fleet one shared, git-backed memory for search, read, and write.
      8
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server providing agents with persistent working, episodic, and semantic memory backed by CockroachDB, exposed via tools to store, recall, list, and forget memories.
      MIT