Skip to main content
Glama
MCP Memory Server

MCP Memory Server

MCP Memory Server

A Model Context Protocol (MCP) server that provides structured memory management across chat sessions for all MCP-enabled tools and applications, specifically designed for project-based work.

đź’ˇ New in v0.1.2: Version tracking and update notifications! Ask your AI assistant: "What's new in mcp-shared-memory?"

Quick Start

You can run the server directly without installing it:

{
  "mcpServers": {
    "shared-memory": {
      "command": "npx",
      "args": ["-y", "mcp-shared-memory"]
    }
  }
}

Manual Installation

# Clone the repository
git clone https://github.com/Ideas-Net-Studio/mcp-shared-memory.git
cd mcp-shared-memory

# Install and Build
npm install
npm run build

# Configure your MCP tool
{
  "mcpServers": {
    "shared-memory": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-memory/dist/index.js"]
    }
  }
}

Related MCP server: OCD - Organized Context Datastore (MCP)

Documentation

Document

Description

USAGE.md

Complete usage guide with setup for all MCP tools

CHANGELOG.md

Version history and release notes

instructions_template.md

AI assistant instructions template

CONTRIBUTING.md

Contribution guidelines and workflow

Compatible Tools

Works with any MCP-enabled tool:

  • Claude Desktop - Anthropic's desktop application

  • Cursor - AI-powered code editor

  • Windsurf - AI development environment

  • Cline - VS Code extension for AI assistance

  • RooCode - AI coding assistant

  • Warp - Modern terminal with AI features

  • Antigravity - AI development platform

  • And more... - Any tool supporting the Model Context Protocol

Key Features

  • Project-Specific Memory: Store memories within project directories

  • Flexible Configuration: Hidden or visible configuration files

  • Multi-Tool Support: Works seamlessly across all MCP tools

  • Git Integration: Share project memories with your team

  • Automatic Detection: Smart project configuration detection

  • Structured Storage: Organized memory with entities, concepts, and sessions

Project Structure

Create a configuration file in your project root:

{
  "memoryDir": ".context/memory",
  "enabled": true,
  "description": "My project"
}

File: .mcp-memory.json

Visible Configuration

{
  "memoryDir": "memory",
  "enabled": true,
  "description": "My project"
}

File: mcp-memory.json

Testing

# Run configuration tests
npm test

# Run server tests
npm run test:server

# Run client tests
npm run test:client

Development

# Install dependencies
npm install

# Development mode
npm run dev

# Build for production
npm run build

Contributing

We welcome contributions! See docs/CONTRIBUTING.md for detailed guidelines on how to fork, modify, and submit PRs.

License

MIT


For detailed documentation, see the docs/ folder.

🍴 Fork Status: This is a fork of the original ebailey78/mcp-memory repository, which appears to no longer be actively maintained. This fork continues development with multi-tool compatibility, enhanced configuration options, and improved testing.

Available Tools

14 tools
add_tagsC

Add tags to a memory

Inputs: id (required), tags (required).

build_memory_storeC

Build a new memory store in the specified directory

Inputs: directory (required), overwrite.

check_updatesB

Check for newer versions and see update information

Inputs: no named parameters.

create_memoryD

Create a new memory

Inputs: type (required), title (required), content (required), tags, +2 more.

delete_memoryD

Delete a memory

Inputs: id (required).

get_memoryC

Get a memory by ID and type

Inputs: id (required), type (required).

list_memoriesC

List memories with optional filtering by type and tags

Inputs: tags, limit, types.

rebuild_indexB

Rebuild the search index

Inputs: no named parameters.

relate_memoriesC

Create relationships between memories

Inputs: sourceId (required), targetIds (required).

remove_tagsC

Remove tags from a memory

Inputs: id (required), tags (required).

search_memoriesC

Search memories by query, type, and tags

Inputs: query (required), tags, limit, types.

unrelate_memoriesC

Remove relationships between memories

Inputs: sourceId (required), targetIds (required).

update_memoryC

Update an existing memory

Inputs: id (required), tags, title, content, +2 more.

whats_newC

See what's new in the current version and get update information

Inputs: no named parameters.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    C2.8/5.0

    Scored across 14 tools

    Disambiguation4/5

    Most tools map cleanly to a distinct action+resource (create/update/delete/get_memory, add/remove_tags, relate/unrelate_memories). The main fuzzy pair is search_memories vs list_memories, which both filter by type and tags and differ only by free-text query, plus whats_new vs check_updates which sound near-identical.

    Naming Consistency4/5

    The set follows a predictable verb_noun snake_case pattern almost throughout (create_memory, remove_tags, rebuild_index, check_updates). The only deviation is whats_new, which lacks the verb_noun shape and reads as a vague phrase rather than an action.

    Tool Count5/5

    14 tools sit comfortably in the well-scoped band and each covers a concrete memory-lifecycle operation. Nothing looks redundant or thrown in to pad the surface.

    Completeness4/5

    Core coverage is strong: full CRUD, tagging, relationship creation/removal, search indexing, and store creation. The gaps are minor — there is no way to delete or inspect an existing memory store built with build_memory_store, and no bulk or import/export operation, but agents can work around these.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI coding agents to maintain persistent, cross-session memory of codebase architecture, naming conventions, and decisions through MCP tools. Eliminates repetitive project re-explanation by automatically injecting stored context into every session with local-first SQLite storage and optional team sharing capabilities.
      4
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Give your AI persistent, structured memory and let humans see it too. It stores project knowledge as Markdown files in a hierarchical tree, accessible via MCP tools and a built-in Web UI.
      6
      2
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides persistent, multi-project memory for AI agents via MCP, enabling them to store and retrieve tasks, decisions, errors, checkpoints, and documentation while keeping context isolated by project.
      2
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Gives AI coding agents persistent, structured memory of a software project across sessions — goals, architecture, tech stack, decisions, and progress — stored locally in an embedded SQLite vault. Agents recall and update that context automatically through MCP tools whenever they open the project.
      GPL 3.0