Practical overview
When it fits
Use YantrikDB when an agent needs a memory-management layer that combines recall with decay, consolidation, contradiction detection or knowledge-graph relationships, rather than a store that only retains vector records.
Who it is for
- Developers adding persistent memory to AI agents.
- Python or Rust developers who want to record and recall agent knowledge within an application.
- Teams configuring an agent through an MCP client.
Documented uses
- Record facts and decisions so an agent can retrieve them across sessions.
- Recall semantically relevant memories using a query.
- Organize related entities as graph relationships.
- Consolidate stored memories and detect conflicting information.
Requirements & limits
The repository identifies YantrikDB as Apache-2.0 licensed. The README documents installation through pip for the Python library and MCP package.
- The core library is embeddable and written in Rust, with Python bindings.
- A new default Python store fetches and caches a 256-dimensional embedding model on first use; an offline fallback uses a bundled 64-dimensional model.
- A store keeps its existing embedding dimension when reopened.
- The README warns that using a second SQLite library on the same store in the same process can corrupt it; it recommends the engine API or a separate process.
- HTTP gateway access is described as a separate yantrikdb-server project, not as the core library.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Set up a Python memory store and try recall
Create a file-backed YantrikDB store, add sample memories, retrieve a relevant one, and exercise graph and consolidation calls.
Before you start
- Python environment with the yantrikdb package installed using pip.
- Network access on first use for the default model, unless relying on the bundled offline fallback.
Steps
Install the package with the command below.
pip install yantrikdbOpen a store with
yantrikdb.YantrikDB.with_default("memory.db").Add text using
record(), then callrecall()with a query and atop_kvalue.Use
relate()andget_edges()for graph relationships, then callthink()to consolidate and detect conflicts.Close the store with
close().
Expected outcome
A file-backed store containing recorded memories, with documented calls for recall, graph relationships and memory consolidation.
Guide limitations
- The default model for a new store is fetched once and cached; if it cannot be fetched, the bundled 64-dimensional model is used with a warning.
- An existing database reopens at its existing embedding dimension.
- Do not open the same store through a second SQLite library in the same process; use the engine API or a separate process.
Configure YantrikDB through an MCP client
Add the documented YantrikDB MCP command to an MCP client configuration.
Before you start
- Python package installation support.
- An MCP client that accepts a server command configuration.
Steps
Install the MCP package with the command below.
pip install yantrikdb-mcpAdd a
yantrikdbentry to the MCP client configuration withcommandset toyantrikdb-mcp.
Expected outcome
The client configuration contains the YantrikDB MCP server command for agent memory integration.
Guide limitations
- The README points to the separate yantrikdb-mcp repository for full documentation.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 14 October 2026
- Original website title
- yantrikos/yantrikdb · Official homepage title · retained in its source language
Related options
yantrikdb-server — A separate server project that wraps the engine with an HTTP gateway and MCP server interface.
yantrikdb-mcp — A separate package whose command can be configured as an MCP server for agent integrations.

