Skip to content

MemCastle

Logo

Local-first, always-on memory server for AI coding agents over MCP/HTTP.

Running several AI coding agents side by side usually means each one gets its own, disconnected memory — or none at all. MemCastle is a single daemon per palace (the memory store that one or more of your projects share) that all of them talk to over MCP or HTTP, so a mining run, a search or a saved decision from one agent is immediately visible to every other agent and to the CLI. Everything lives in one SurrealDB store, embedded by default, so there is no external service to run.

flowchart LR
    A[OpenCode] & B[Claude Code] & C[Other MCP clients] -->|MCP| D
    CLI[memcastle CLI] -->|REST| D
    D[memcastle daemon] --> E[(Palace: SurrealDB)]

Get started

  1. Install MemCastle.
  2. Follow the Quickstart: start the daemon, store and search your first memories.
  3. Connect an MCP client such as OpenCode or Claude Code.

Integrations

Guides

Reference

Project