Skip to main content
Glama
Tamloot-cc

Retainer

by Tamloot-cc

Retainer

Open-source memory for AI agents that work with customer relationships.

Retainer keeps a living record of every person, company and deal a business works with. Agents log interactions (meetings, calls, emails, messages), and Retainer turns them into typed fields and plain-language facts, each linked to the interaction it came from. Agents read it back through MCP or a REST API.

There is no UI. It is a backend for agents.

  • Schema as data: objects and fields are stored as rows, so a workspace, or an agent working in it, can add fields and objects at runtime.

  • Derived memory: background workers extract facts and field values from raw interactions, with provenance and confidence.

  • Self-hosted: one Docker image and Postgres.

Status: early development. See ARCHITECTURE.md for the design and build order.

Run it

docker compose -f docker/compose.yml up --build
curl localhost:8787/health

Related MCP server: Agent Memory

Develop

Requires Node 22 and pnpm 10.

pnpm install
cp .env.example .env
docker compose -f docker/compose.yml up -d postgres
pnpm db:migrate
pnpm dev

Command

What it does

pnpm build

Build every package

pnpm typecheck

Type-check every package

pnpm test

Run tests

pnpm lint

Biome lint and format check

pnpm db:generate --name <name>

Create a migration from packages/server/src/db/schema.ts

pnpm db:migrate

Apply migrations

Packages

Package

License

Contents

packages/server

AGPL-3.0

API, MCP endpoint, workers, schema engine

packages/shared

MIT

Field types, composite value shapes, actors

packages/sdk

MIT

TypeScript client

packages/mcp

MIT

stdio bridge for MCP clients

License

The server is licensed under AGPL-3.0. The SDK, shared types and MCP bridge are MIT-licensed; see each package's LICENSE.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides persistent knowledge graph memory for AI agents, enabling them to store, recall, and query facts about people, projects, and relationships across sessions.
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Provides a self-hosted shared memory service that lets AI agents capture and recall durable facts, decisions, and context across multiple tools and MCP-capable clients.
    3
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables AI agents to store, search, and link typed knowledge entities such as memories, people, projects, tasks, and documents over a Streamable HTTP MCP endpoint. Combines hybrid BM25 and vector search with a knowledge graph, and separates short-lived session context from durable memory that future agents can trust.
    10
    AGPL 3.0
  • A
    license
    Not graded
    quality
    A
    maintenance
    Enables self-hosted, persistent AI identity and long-term memory across clients, models, and agent surfaces, with multi-resident isolation, shared world knowledge, governed memory writes, correction and forgetting, keyword or optional semantic recall, and MCP or HTTP access.
    59
    MIT