Skip to main content
Glama

CortexDB

Go Reference CI codecov License: MIT

Memory your coding agents share. Tell Claude Code something once, and Codex, your other machines and next week's session already know it.

The CortexDB live view: two recalls light up the graph, then the Recalls and Ontology pages and the Library view

Install

Claude Code:

/plugin marketplace add liliang-cn/cortexdb
/plugin install cortexdb@cortexdb

Codex:

codex plugin marketplace add liliang-cn/cortexdb && codex plugin add cortexdb@cortexdb

Go:

go get github.com/liliang-cn/cortexdb/v2

Also for DeepSeek Harness, Obsidian, and Rust, Python and Node clients (cortexdb-client).

Related MCP server: mcp-local-memory

What you get

  • Agents remember. Preferences, decisions and project facts are captured as you work and recalled before the next prompt.

  • One brain, many agents. Point every agent and machine at one cortexdb-grpc server and they share it.

  • See what it knows. A live web view of the graph, every recall and every change, on desktop or phone.

  • No model required. Works without an embedding model; add one for semantic search.

  • A real knowledge graph. SPARQL, Cypher, ontology, inference and history, if you want to go deeper.

In Go

db, _ := cortexdb.Open(cortexdb.DefaultConfig("brain.db"))
brain := db.KnowledgeMemory()
brain.Remember(ctx, cortexdb.KnowledgeMemoryRememberRequest{MemoryID: "tabs", UserID: "alice", Content: "Alice prefers tabs."})
rec, _ := brain.Recall(ctx, cortexdb.KnowledgeMemoryRecallRequest{Query: "what does Alice prefer?", UserID: "alice"})
fmt.Println(rec.ContextPack.Text)

Docs

Guide · Plugin · Live view · Claude Code mod · Environment variables · Integrating your agent · Examples · Changelog · 中文

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Semantic memory for AI agents — local-first MCP server with hybrid search, knowledge graph, contradiction detection, and plan-then-commit consolidation.
      199 npm
      4
      AGPL 3.0
    • A
      license
      B
      quality
      C
      maintenance
      Cross-agent memory server: hybrid (vector + full-text + knowledge-graph) recall, per-user private/shared visibility, write-side secret/PII redaction, and as-of-date bi-temporal fact queries. Auto-injection hooks for Claude Code / Cursor / Codex; self-hostable on PostgreSQL or SQLite.
      46
      79 PyPI
      10
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Self-hosted, governed long-term memory and knowledge-graph server for AI agents with access control, hybrid retrieval, and typed graph linking.
      AGPL 3.0