1. Conduid
  2. RAG
  3. Cortexdb
MCP server · RAG

Cortexdb

Local-first AI agent memory with a knowledge graph, ontology constraints, and traceable reasoning—all in one SQLite file.

81Strong

Scored 20 hours ago · breakdown

About Cortexdb

Cortexdb is an MCP server published by liliang-cn in the RAG category: local-first AI agent memory with a knowledge graph, ontology constraints, and traceable reasoning—all in one SQLite file. Conduid read 6 tools from its source: render_graph_html, serve_graph_3d, side_graph_drop, side_graph_list, side_graph_read and side_graph_write. No package is published for it, so it installs from a source checkout.

The repository has 538 stars and 40 forks, is licensed MIT, and its last commit was on 1 Dec 2026. The latest release is v2.175.0 (27 Nov 2026). It follows v2.174.0 (27 Nov 2026), and the 5 most recent releases go back to v2.171.0 (26 Nov 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include ai-memory, antigravity, bm25, cli, code-patterns and devtools.

Install

From source
git clone https://github.com/liliang-cn/cortexdb

Tools (6)

render_graph_htmlRender the brain's knowledge graph to a self-contained, interactive HTML file on THIS machine and return its path. Use it when asked to see, show, visualise or send the knowledge graph. The file is standalone — no server, no assets — so it can be attached to a message or opened directly. Nothing is written to the graph unless organize is set, and organize is ignored against a shared brain. This is the only tool here that acts locally: the graph is read from the shared brain, but the file is written where this server runs, which is what makes it reachable to whatever asked for it.
serve_graph_3dOpen a LIVE 3D view of the brain's knowledge graph in the browser and return its URL. Use it when asked to watch, monitor or see the graph live, or for a 3D/rotating/glowing view. Unlike render_graph_html, which writes a static file, this serves a page on 127.0.0.1 that updates by itself: nodes and relations appear as they are written, and every query, save and relation this server handles lights up the nodes it touched. The same server also draws the brain as a library (library_url, or view=library to open it): each memory is a book on the shelf of the project it names, an entity is an index card that lists every book mentioning it, and a book opens on a lectern with its text and index. Calling it again returns the same URL rather than starting a second view. Read-only — it never writes to the graph.
side_graph_dropDelete a named side graph and everything in it. Side graphs are meant to be disposable; dropping one that does not exist is not an error.
side_graph_listList the named side graphs that exist on this machine.
side_graph_readRead back a named side graph: its nodes and the edges between them. Use it to walk what was recorded — what followed what, what an expectation was attached to — rather than to search by similarity.
side_graph_writeWrite nodes and edges into a NAMED graph that is separate from the brain, kept in its own local database. Use it for anything that is a graph but is not shared knowledge — a run's steps and what each was expected to do, a plan, a dependency chase, any scratch structure you want to traverse later or watch in 3D. Nodes are matched by name, so writing the same name twice updates rather than duplicates, and edges may use any type including 'next' for sequences. Nothing here reaches the shared brain; promote what turns out to be durable with knowledge_save instead.

Security checks

Static checks derived from the repository 4 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 293 words.
  • ✓License declaredThe repository declares the MIT license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by go.sum and 5 more.
  • !No dynamic code executionScanned 788 source files and found 26 calls to eval or shell execution, in pkg/agentmem/sql_exec.go:15, pkg/core/sqlite_guard.go:213 and pkg/core/sqlite_guard.go:219 among others. Review how tool inputs reach them before granting credentials.

1 check has not been run yet.

What the source scan found

Transport
stdiointernal/cli/main.go:46
Starts other programs
5 callsclients/rust/cortexdb-client/src/sidecar.rs:135, pkg/liveview/server.go:1119, pkg/liveview/server.go:1121
Outbound network calls
21 callsinternal/cli/llm.go:41, internal/cli/llm.go:80, internal/cli/llm.go:118
Writes or deletes files
59 callsinternal/cli/doctor.go:194, internal/cli/export_memory.go:73, internal/cli/export_memory.go:93
Lockfile
go.sum and 5 more

Pattern matches on the source text of 788 files: places to read, not proof of what the code does at run time.

Releases

v2.175.0v2.175.0 · 27 Nov 2026What's Changed perf(cortexdb): graph_schema, graph_property_values and graph_statistics keep their answers until the graph changes by @lfoletti in https://github.com/liliang-cn/cortexdb/pull/278 Full Changelog:…
v2.174.0v2.174.0 · 27 Nov 2026What's Changed fix(retrieval): the walk from the vector hits weighs 0.3 on a hit both found and 0.7 on one only it reached (#274) by @liliang-cn in https://github.com/liliang-cn/cortexdb/pull/275 feat(recall-log): memory_search from a…
v2.173.0v2.173.0 · 27 Nov 2026What's Changed feat(retrieval): with an embedder, auto walks the entity graph from the vector hits and ranks by both (#272) by @liliang-cn in https://github.com/liliang-cn/cortexdb/pull/273 Full Changelog:…
v2.172.0v2.172.0 · 26 Nov 2026What's Changed fix(cli): search prints a list of hits, doctor counts the tools serve exposes (#270) by @liliang-cn in https://github.com/liliang-cn/cortexdb/pull/271 Full Changelog:…
v2.171.0v2.171.0 · 26 Nov 2026What's Changed feat(plugin): ship the cortexdb plugin for Antigravity (agy) by @liliang-cn in https://github.com/liliang-cn/cortexdb/pull/267 feat(cli): a cortexdb command line — every MCP tool from a shell, modes as subcommands with help…

README

The repository's README runs to about 293 words, fetched 4 days ago. The original in the repository is authoritative.

Read full README
Questions

About Cortexdb

How do I install Cortexdb?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Cortexdb safe to use with an AI agent?

Its trust score is 81 out of 100 (strong). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Conduid's scan of 788 source files found that it serves MCP over stdio, starts other programs (5 calls), makes outbound network calls (21 calls) and writes or deletes files (59 calls). Its dependencies are pinned by go.sum and 5 more. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Cortexdb still maintained?

Yes — the latest release is v2.175.0 (27 Nov 2026), and the last commit was yesterday. The repository has 538 stars and 2 open issues.

What tools does Cortexdb provide?

Conduid read 6 tools from the source: render_graph_html, serve_graph_3d, side_graph_drop, side_graph_list, side_graph_read and side_graph_write.

What license is Cortexdb released under?

The repository declares the MIT license. That applies to the latest release, v2.175.0, as well.