abstract

The server-side service map showing where the memory fabric fits among the surrounding infrastructure.

Unified Agent Memory: Server Service Map

Companion note for unified-agent-memory-fabric.

server Service Map

The server server runs far more than just the memory fabric. Here is the full landscape and how the agent infrastructure fits within it.

graph TB
    subgraph "Agent Memory Fabric"
        CDB[CouchDB]
        LS[LiveSync Daemon]
        FS[Vault Filesystem]
        GB[gbrain MCP]
        M0[mem0 API]
        M0D[mem0 Dashboard]
        HMC[hermes-mcp Gateway]
    end

    subgraph "Authentication"
        AK[authentik SSO]
        AKP[authentik Postgres]
        AKR[authentik Redis]
    end

    subgraph "Supabase Stack"
        SDB[(Supabase PG 15)]
        SK[Kong API Gateway]
        SA[GoTrue Auth]
        SR[PostgREST REST]
        SRL[Realtime]
        SML[Meta]
        SEF[Edge Functions]
        SSP[Storage]
        SIM[imgproxy]
        SLF[Logflare]
        SVD[Vector]
        SUI[Studio]
        SPL[PgBouncer Pooler]
    end

    subgraph "Services"
        N8N[n8n Automation]
        CHD[Change Detection]
        MFS[Meilisearch Search]
        MFU[Meilisearch UI]
        PLP[Paperclip + PG 17]
        PLL[Pillow API]
        CVX[ConvertX]
        SPDF[Stirling PDF]
        SXNG[SearXNG Meta Search]
        UM[Umami Analytics]
        UMD[Umami DB]
        MINIO[S3 Storage]
        IMP[imgproxy]
        DOZ[Dozzle Logs]
        UPK[Uptime Kuma]
        CFS[Coolify + Sentinel]
        LND[Landing Page]
        PNL[panel.goku.codes]
        IMA[img.goku.codes]
    end

    subgraph "Agent Hosting"
        GHR[GitHub Actions Runner]
        HERM[hermes-gateway-poke]
        TS[ Tailscale]
    end

    subgraph "CLI Tools"
        GH[gh CLI]
        GIT[git]
        GBR[gbrain CLI]
    end

    AK -.-> AKP
    AK -.-> AKR

    SDB --- SK
    SK --- SA
    SK --- SR
    SK --- SRL
    SK --- SML
    SK --- SEF
    SK --- SSP
    SK --- SIM
    SDB --- SPL
    SLF -.-> SDB
    SVD -.-> SDB

    CDB --> LS
    LS --> FS
    FS --> GB
    HMC --> GB
    HMC --> M0
    HMC --> FS
    M0 --> SDB
    M0D --> M0

    GHR ---|actions| GH
    GIT ---|pull/push| FS
    GBR ---|sync --full| FS
    GBR ---|query| GB
ServiceWhat It DoesConnects To
CouchDBDocument DB, livesync changes feednginx (public), livesync-daemon, Obsidian clients
nginxSSL reverse proxyCouchDB (public endpoint)
livesync-daemonHeadless livesync peer, bidirectional filesystem bridgeCouchDB, vault filesystem
vault-write (filesystem)The actual vault directory, git repo, gbrain sourcegit, gbrain, cloud agents, livesync-daemon
gbrain MCPSemantic search + knowledge graph over vaultgbrain CLI, local MCP service, and hermes-mcp proxy with local CLI fallback
mem0 APIEpisodic memory store for agentshermes-mcp, Supabase PG, mem0-dashboard
mem0-dashboardWeb UI for browsing memoriesmem0 API
hermes-mcpOptional unified SSE MCP gateway, wraps gbrain + mem0 + vaultserver service is active; vault, mem0, and gbrain smoke tests pass
hermes-gateway-pokeHermes gateway daemon for messaging platform integrationChat platforms
Supabase PGShared Postgres 15 with pgvector, used by gbrain, mem0, supabase servicesgbrain, mem0, supabase-kong
Supabase StackAuth, REST, realtime, storage, edge functions, analyticsWeb apps, mobile backends
authentikSSO / OAuth2 provider for internal servicesProtected web UIs
n8nWorkflow automation (Zapier-like)HTTP APIs, webhooks
MeilisearchFull-text search engine (separate from gbrain)Web UIs
PaperclipAI agent memory/state storageOwn PG 17 database
Pillow APIImage processing APIHTTP clients
ConvertXFile format conversion UIHTTP clients
Change DetectionWebsite change monitoringHTTP, browser
SearXNGPrivate meta search engineHTTP clients
Stirling PDFPDF manipulation toolsHTTP clients
MinIOS3-compatible object storageHTTP clients, backup targets
UmamiWebsite analyticsWeb UIs, own PG
DozzleReal-time Docker log viewerBrowser
Uptime KumaUptime monitoringAll public endpoints
CoolifyPaaS / app deployment managerDocker, deployed apps
GitHub Actions RunnerSelf-hosted runner for CI/CDgithub.com
img.goku.codesFastAPI image appHTTP clients
panel.goku.codesNext.js panel appBrowser
TailscaleMesh VPN, all servers on same tailnetAll nodes

How It All Connects

The agent memory fabric (couchdb, livesync, gbrain, mem0, hermes-mcp) is a focused subset that shares the Supabase PG with the broader supabase stack. The vault filesystem is the integration point:

  • CLI tools (git, gh, gbrain) read/write the vault filesystem directly
  • LiveSync daemon bridges the filesystem to CouchDB for real-time replication
  • gbrain indexes the filesystem for semantic search
  • hermes-mcp wraps the filesystem, gbrain, and mem0 into MCP tools for clients that benefit from a single SSE endpoint
  • All other services (paperclip, n8n, meilisearch, etc.) run independently and are unrelated to the memory fabric

The key insight: the vault filesystem is the shared ground truth for durable agent knowledge. CouchDB replicates it live. Git snapshots it for history. gbrain indexes it for search. CLI tools work on it directly. hermes-mcp exposes vault, mem0, and gbrain for clients that want MCP. All durable paths converge on that one directory.