# QuoteMem

> QuoteMem is an open-source MCP server for knowledge and memory. Long-term memory for AI agents that keeps the exact quote behind every fact. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Self-hosted, VS Code, macOS, Linux, Windows
- **Repository:** https://github.com/edsml-jz2321/quotemem
- **MCP Registry name:** io.github.edsml-jz2321/quotemem
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-11-27

## About

QuoteMem stores what a user tells an assistant as short statements, each tied back to the exact bytes of the message it came from. When a fact changes, the new version replaces the old one while the earlier version stays in the history, so an agent can see how a belief evolved.

Forgetting is handled as an explicit operation. A forget request removes matching memories from reads and blocks the same fact from being learned again, unless the user restates it in a later message. A confirm step lets a plan be reviewed before anything is erased through the API.

The service runs locally with one data folder and is shared by several coding and chat tools through plugins or an MCP server. It suits developers who want an auditable memory layer rather than a black-box recall store.

## Features

- **Quote-backed memories:** Each stored fact points to the byte range of the message it was drawn from.
- **Versioned updates:** Changed facts supersede earlier ones, which remain available as past versions.
- **Confirmed forgetting:** Forget requests can be previewed as a plan and then confirmed before deletion.
- **Blocked re-learning:** Forgotten facts are not re-added from later messages unless the user restates them.
- **Shared local service:** One local memory store can serve several agent tools and users at once.
- **Memory history lookup:** A tool returns the version history of a given memory.

## Good for

- Give a coding or chat agent memory of user preferences that can be traced to source text
- Correct or update a remembered fact without losing the earlier record
- Honour a user's request to forget something and verify it stays forgotten
- Share one memory across several AI assistants on the same computer

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add quotemem -- npx -y quotemem
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "quotemem": {
      "command": "npx",
      "args": [
        "-y",
        "quotemem"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "quotemem": {
      "command": "npx",
      "args": [
        "-y",
        "quotemem"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "quotemem": {
      "command": "npx",
      "args": [
        "-y",
        "quotemem"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "quotemem": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "quotemem"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add quotemem -- npx -y quotemem
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.quotemem]
command = "npx"
args = ["-y", "quotemem"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "quotemem": {
      "command": "npx",
      "args": [
        "-y",
        "quotemem"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user quotemem npx -- -y quotemem

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "quotemem": {
      "command": "npx",
      "args": [
        "-y",
        "quotemem"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "quotemem": {
      "command": "npx",
      "args": [
        "-y",
        "quotemem"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "quotemem": {
      "command": "npx",
      "args": [
        "-y",
        "quotemem"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "quotemem": {
      "command": "npx",
      "args": [
        "-y",
        "quotemem"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "quotemem": {
      "command": "npx",
      "args": [
        "-y",
        "quotemem"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "quotemem": {
      "command": "npx",
      "args": [
        "-y",
        "quotemem"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "quotemem": {
      "command": "npx",
      "args": [
        "-y",
        "quotemem"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "quotemem": {
      "command": "npx",
      "args": [
        "-y",
        "quotemem"
      ]
    }
  }
}
```

## FAQ

### How do I connect QuoteMem to an MCP client?

Add a server entry that runs npx -y quotemem mcp, as shown in the setup section.

### Where is the memory stored?

In two SQLite files inside the workspace folder of the service's local data folder.

### Which user's memory does the MCP server use?

It uses the QUOTEMEM_USER_ID variable, which defaults to the OS user name.

### Is QuoteMem free?

Yes. QuoteMem is open source, so you can use and self-host it for free.

### How do I add QuoteMem to Claude Code?

Run this command in your terminal: claude mcp add quotemem -- npx -y quotemem

### What are the best alternatives to QuoteMem?

The closest alternatives to QuoteMem are UltraMemory, Membase, FactMem, Memwyre and Membase.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [UltraMemory](https://ai-powered.com/mcp/ultramemory): UltraMemory is a freemium MCP server for ai models and llm tooling.
- [Membase](https://ai-powered.com/mcp/membase-2): Membase is an MCP server for knowledge and memory.
- [FactMem](https://ai-powered.com/mcp/factmem): FactMem is an open-source MCP server for knowledge and memory.
- [Memwyre](https://ai-powered.com/mcp/memwyre): Memwyre is an open-source MCP server for knowledge and memory.
- [Membase](https://ai-powered.com/mcp/membase): Membase is an MCP server for knowledge and memory.
- [Memware — Cross-Agent Long-Term Memory](https://ai-powered.com/mcp/memware-cross-agent-long-term-memory): Memware — Cross-Agent Long-Term Memory is a freemium MCP server for knowledge and memory.
- [Mneme Memory](https://ai-powered.com/mcp/mneme-memory): Mneme Memory is an open-source MCP server for knowledge and memory.
- [Verbative Memory](https://ai-powered.com/mcp/verbative-memory): Verbative Memory is an MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/quotemem
