Skip to main content
Claude Mem MCP tools work with Claude Desktop on macOS and Windows.
Claude Desktop can access your Claude Mem memory database through MCP tools. Once configured, you can search past sessions, decisions, and observations directly from any Claude Desktop conversation.

Prerequisites

Before configuring MCP tools, ensure:
  1. Claude Mem is installed and the worker service is running.
  2. The MCP server file is present at ~/.claude/plugins/marketplaces/thedotmack/plugin/scripts/mcp-server.cjs.

Verify the worker is running

Installation

1

Edit the Claude Desktop configuration file

Open the configuration file for your platform:
Add the mcp-search server entry:
Replace YOUR_USERNAME with your actual system username.
2

Restart Claude Desktop

Close and reopen Claude Desktop for the MCP server configuration to take effect.

Searching memory from Claude Desktop

Once installed, you can ask Claude Desktop natural-language questions about your past work:
Claude will use the MCP tools to search your memory database and return relevant observations from past Claude Code sessions.

Available MCP tools

The MCP server provides three tools that follow the same 3-layer workflow used in Claude Code:

Token-efficient workflow

  1. Search — get index with IDs (~50–100 tokens per result)
  2. Timeline — get context around interesting results
  3. Get observations — fetch full details only for the IDs you need
This 3-layer approach provides approximately 10x token savings compared to fetching full observation details upfront.

Troubleshooting

  1. Verify the worker is running: curl http://localhost:37777/api/health
  2. Check that the MCP server file path in the configuration matches the actual file location
  3. Check Claude Desktop logs for errors:
  1. Ensure Claude Mem has recorded at least one Claude Code session
  2. Verify the database exists: ls ~/.claude-mem/claude-mem.db
  3. Test the worker API directly: curl "http://localhost:37777/api/search?query=test"
  4. Open the viewer at http://localhost:37777 to confirm data is present
Claude Desktop must be fully restarted (not just the window) after editing claude_desktop_config.json. Quit from the menu bar or system tray, then relaunch.

Search tools reference

Full MCP tool documentation with parameter details

Platform integration

Build custom integrations with the worker HTTP API