# Builderforce Memory

> Builderforce Memory is an MCP server for knowledge and memory. Local persistent memory for coding agents to recall facts instead of re-reading files. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI, API
- **Website:** https://builderforce.ai
- **Repository:** https://github.com/seanhogg/builderforce-memory/tree/HEAD/packages/memory-mcp
- **MCP Registry name:** io.github.SeanHogg/builderforce-memory
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-11-23

## About

The aim is saving tokens: rather than re-reading files each session, an agent recalls durable facts. Memory is written to a JSON snapshot, by default under the home directory and shared by every MCP host on that machine, so it survives restarts.

Two switches shape the surface. Setting read-only mode exposes recall only and disables remembering and forgetting, and supplying a Builderforce tenant key adds two cost tools, token_usage and model_efficiency. Beyond stdio, the package describes an in-process transport for the Claude Agent SDK and a Streamable HTTP handler.

The README is candid about limits: the HTTP handler's token check is not constant-time, and it shares one backend with no per-tenant isolation, so one token reads every tenant's facts. Real isolation is not yet implemented.

## Features

- **Durable recall:** Agents retrieve stored facts instead of re-reading files.
- **File-backed memory:** A JSON snapshot keeps memory across restarts.
- **Read-only mode:** An environment switch disables writing and forgetting.
- **Cost tools:** With a tenant key, token_usage and model_efficiency appear.
- **Three transports:** In-process, stdio and Streamable HTTP.

## Good for

- Cut token use on repeated project questions
- Share one local memory across several MCP hosts
- Give a review agent recall-only access
- Track token usage by model

## Install

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

```sh
claude mcp add builderforce-memory --env BUILDERFORCE_API_KEY='<BUILDERFORCE_API_KEY>' -- npx -y @seanhogg/builderforce-memory-mcp
```

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": {
    "builderforce-memory": {
      "command": "npx",
      "args": [
        "-y",
        "@seanhogg/builderforce-memory-mcp"
      ],
      "env": {
        "BUILDERFORCE_API_KEY": "<BUILDERFORCE_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "builderforce-memory": {
      "command": "npx",
      "args": [
        "-y",
        "@seanhogg/builderforce-memory-mcp"
      ],
      "env": {
        "BUILDERFORCE_API_KEY": "<BUILDERFORCE_API_KEY>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "builderforce-memory": {
      "command": "npx",
      "args": [
        "-y",
        "@seanhogg/builderforce-memory-mcp"
      ],
      "env": {
        "BUILDERFORCE_API_KEY": "<BUILDERFORCE_API_KEY>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "builderforce-memory": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@seanhogg/builderforce-memory-mcp"
      ],
      "env": {
        "BUILDERFORCE_API_KEY": "<BUILDERFORCE_API_KEY>"
      }
    }
  }
}
```

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 builderforce-memory --env BUILDERFORCE_API_KEY='<BUILDERFORCE_API_KEY>' -- npx -y @seanhogg/builderforce-memory-mcp
```

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

```toml
[mcp_servers.builderforce-memory]
command = "npx"
args = ["-y", "@seanhogg/builderforce-memory-mcp"]
env = { BUILDERFORCE_API_KEY = "<BUILDERFORCE_API_KEY>" }
```

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

```json
{
  "mcpServers": {
    "builderforce-memory": {
      "command": "npx",
      "args": [
        "-y",
        "@seanhogg/builderforce-memory-mcp"
      ],
      "env": {
        "BUILDERFORCE_API_KEY": "<BUILDERFORCE_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e BUILDERFORCE_API_KEY='<BUILDERFORCE_API_KEY>' builderforce-memory npx -- -y @seanhogg/builderforce-memory-mcp

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

```json
{
  "mcpServers": {
    "builderforce-memory": {
      "command": "npx",
      "args": [
        "-y",
        "@seanhogg/builderforce-memory-mcp"
      ],
      "env": {
        "BUILDERFORCE_API_KEY": "<BUILDERFORCE_API_KEY>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "builderforce-memory": {
      "command": "npx",
      "args": [
        "-y",
        "@seanhogg/builderforce-memory-mcp"
      ],
      "env": {
        "BUILDERFORCE_API_KEY": "<BUILDERFORCE_API_KEY>"
      }
    }
  }
}
```

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": {
    "builderforce-memory": {
      "command": "npx",
      "args": [
        "-y",
        "@seanhogg/builderforce-memory-mcp"
      ],
      "env": {
        "BUILDERFORCE_API_KEY": "<BUILDERFORCE_API_KEY>"
      }
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "builderforce-memory": {
      "command": "npx",
      "args": [
        "-y",
        "@seanhogg/builderforce-memory-mcp"
      ],
      "env": {
        "BUILDERFORCE_API_KEY": "<BUILDERFORCE_API_KEY>"
      }
    }
  }
}
```

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": {
    "builderforce-memory": {
      "command": "npx",
      "args": [
        "-y",
        "@seanhogg/builderforce-memory-mcp"
      ],
      "env": {
        "BUILDERFORCE_API_KEY": "<BUILDERFORCE_API_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

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

```json
{
  "mcpServers": {
    "builderforce-memory": {
      "command": "npx",
      "args": [
        "-y",
        "@seanhogg/builderforce-memory-mcp"
      ],
      "env": {
        "BUILDERFORCE_API_KEY": "<BUILDERFORCE_API_KEY>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "builderforce-memory": {
      "command": "npx",
      "args": [
        "-y",
        "@seanhogg/builderforce-memory-mcp"
      ],
      "env": {
        "BUILDERFORCE_API_KEY": "<BUILDERFORCE_API_KEY>"
      }
    }
  }
}
```

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": {
    "builderforce-memory": {
      "command": "npx",
      "args": [
        "-y",
        "@seanhogg/builderforce-memory-mcp"
      ],
      "env": {
        "BUILDERFORCE_API_KEY": "<BUILDERFORCE_API_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 4 names don't say. From the server's own tool labels and tool names; not verified by us.

- `memory_remember`: Stores a durable fact.
- `memory_forget`: Removes a stored fact.
- `token_usage`: Reports token usage; needs a tenant key.
- `model_efficiency`: Reports model efficiency; needs a tenant key.

## FAQ

### Where is memory stored?

In a JSON file at ~/.builderforce-memory/memory.json by default.

### Can I make Builderforce Memory read-only?

Yes, set BUILDERFORCE_MEMORY_READONLY to 1.

### Is the HTTP handler multi-tenant safe?

The README says per-tenant isolation is not yet implemented.

### What needs an API key?

Only the token_usage and model_efficiency cost tools.

### How do I add Builderforce Memory to Claude Code?

Run this command in your terminal: claude mcp add builderforce-memory --env BUILDERFORCE_API_KEY='<BUILDERFORCE_API_KEY>' -- npx -y @seanhogg/builderforce-memory-mcp

### What are the best alternatives to Builderforce Memory?

The closest alternatives to Builderforce Memory are Codebase Memory, XERJ, Claude Code Ultimate Guide, Nautilus Compass Memory and Myco: Agent-First Cognitive Substrate.

## Where this comes from

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

## Alternatives

- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Nautilus Compass Memory](https://ai-powered.com/mcp/nautilus-compass-memory): Nautilus Compass Memory is an open-source MCP server for knowledge and memory.
- [Myco: Agent-First Cognitive Substrate](https://ai-powered.com/mcp/myco-agent-first-cognitive-substrate): Myco: Agent-First Cognitive Substrate is an open-source MCP server for knowledge and memory.
- [Source Library](https://ai-powered.com/mcp/source-library): Source Library is an open-source MCP server for knowledge and memory.
- [keepplain-plugin](https://ai-powered.com/mcp/keepplain-plugin): keepplain-plugin is a freemium MCP server for knowledge and memory.
- [Second Brain](https://ai-powered.com/mcp/second-brain-2): Second Brain is a freemium MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/builderforce-memory
