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

Yantrikdb

Cognitive memory engine for AI agents — temporal decay, contradiction detection, autonomous consolidation, knowledge graph, ANN recall via HNSW. Embeddable Rust library with Python bindings; powers yantrikdb-server (HTTP gateway, MCP server, openraft cluster). AGPL.

63Good

Scored 4 hours ago · breakdown

About Yantrikdb

Yantrikdb is an MCP server published by yantrikos in the RAG category: cognitive memory engine for AI agents — temporal decay, contradiction detection, autonomous consolidation, knowledge graph, ANN recall via HNSW. Embeddable Rust library with Python bindings; powers yantrikdb-server (HTTP gateway, MCP server, openraft cluster). AGPL. Conduid read 14 tools from its source: conflict_list, conflict_resolve, entity_edges, entity_relate, memory_correct, memory_forget and 8 more. It is published to PyPI as yantrikdb and runs with uvx.

The repository has 81 stars and 26 forks, and its last commit was on 1 Dec 2026. Conduid has no tagged release on record for it. It passes all 1 static checks Conduid ran on the repository. Its topics include agent-memory, cognitive-memory, database, embeddings, hnsw and knowledge-graph.

Install

uvx
uvx yantrikdb
pip
pip install yantrikdb
From source
git clone https://github.com/yantrikos/yantrikdb

Tools (14)

conflict_listList memory conflicts (contradictions) that need resolution.
ParameterTypeDescription
limitintegerMaximum number of conflicts to return (default 10).
statusstringFilter by status ('open', 'resolved', 'dismissed'). Default shows all.
conflict_resolveResolve a memory conflict using a strategy.
ParameterTypeDescription
conflict_id *stringThe conflict ID to resolve.
new_textstringFor 'merge' strategy, the merged text content.
resolution_notestringOptional note explaining the resolution.
strategy *stringOne of 'keep_a' (keep memory A), 'keep_b' (keep memory B), 'keep_both' (keep both, mark as non-conflicting), 'merge' (combine into one).
winner_ridstringFor keep_a/keep_b, which memory wins (optional, inferred from strategy).
entity_edgesGet all relationships for an entity in the knowledge graph.
ParameterTypeDescription
entity *stringThe entity name to look up.
entity_relateCreate a relationship between two entities in the knowledge graph.
ParameterTypeDescription
relationshipstringRelationship type (e.g. "works_at", "knows", "likes", "related_to").
source *stringSource entity name (e.g. "Alice", "Python", "project_x").
target *stringTarget entity name.
weightnumberRelationship strength (0.0 to 1.0).
memory_correctCorrect an existing memory in place (Issue #47, v0.7.20).
ParameterTypeDescription
metadata_mergeobjectOptional dict patch-merged into existing metadata.
new_importancenumberOptional new importance score (0.0 to 1.0).
new_textstringOptional corrected text. When it differs from the current text the record is re-embedded in place (v0.10 Item 3), so the memory is retrieved under its NEW meaning. Requires an embedder; pass None to leave the text unchanged.
new_valencenumberOptional new emotional valence (-1.0 to 1.0).
reason *stringRequired non-empty string explaining why the correction was made.
rid *stringThe memory ID to correct.
memory_forgetPermanently forget (tombstone) a memory.
ParameterTypeDescription
rid *stringThe memory ID to forget.
memory_getGet a specific memory by its ID.
ParameterTypeDescription
rid *stringThe memory ID to retrieve.
memory_recallSearch memories by semantic similarity to a natural language query.
ParameterTypeDescription
compactbooleanLean payload — per hit only rid, text, score and warning-class why_retrieved tags; envelope keeps count + confidence. The text is what the agent came for; the diagnostics cost context on every call and earn it only when something looks wrong.
domainstringFilter by topic domain (work, health, family, etc.). None for all.
expand_entitiesbooleanWhether to use knowledge graph to find related memories.
include_consolidatedbooleanWhether to include consolidated (merged) memories.
memory_typestringFilter by type ('episodic', 'semantic', 'procedural'). None for all.
namespacestringFilter by namespace. None returns all namespaces.
query *stringNatural language search query.
sourcestringFilter by memory source (user, system, document, inference). None for all.
top_kintegerMaximum number of results (default 10).
memory_recall_feedbackProvide feedback on a recall result for adaptive learning.
ParameterTypeDescription
feedback *string'relevant' or 'irrelevant'.
query_textstringThe original query text (optional, helps learning).
rank_at_retrievalintegerThe rank position (optional).
rid *stringThe memory ID to provide feedback on.
score_at_retrievalnumberThe score the memory received (optional).
memory_recall_refineRefine a previous recall with a follow-up query.
ParameterTypeDescription
domainstringFilter by domain.
namespacestringFilter by namespace.
original_query *stringThe original search query text.
original_ridsarrayMemory IDs from the first recall to exclude from results.
refinement_text *stringThe follow-up/clarifying query text.
sourcestringFilter by source.
top_kintegerMaximum number of results (default 10).
memory_recordStore a new memory in the cognitive memory engine.
ParameterTypeDescription
certaintynumberHow confident the agent was when storing (0.0 to 1.0).
claimsarrayThe facts this memory states, as {"subject", "relation", "object"} triples (optional "polarity": 1 or -1), e.g. [{"subject": "Pranab", "relation": "prefers", "object": "Vim"}]. State a claim for any fact you want tracked for contradiction, succession, entity threads and multi-hop recall. The engine grounds each claim against the text: subject and object must occur in it, and the relation must be a short snake_case phrase. Ungrounded claims are reported back, not stored.
domainstringTopic domain (work, health, family, finance, hobby, travel, general, etc.).
emotional_statestringRicher emotion label: joy, sadness, anger, fear, surprise, neutral, etc.
importancenumberHow important this memory is (0.0 to 1.0). Higher = decays slower.
memory_typestringOne of 'episodic' (events), 'semantic' (facts), 'procedural' (how-to).
metadataobjectOptional key-value metadata (e.g. {"source": "conversation", "topic": "work"}).
namespacestringMemory namespace for isolation (default: "default").
sourcestringWho/what provided this memory (user, system, document, inference).
text *stringThe memory content to store.
valencenumberEmotional tone (-1.0 negative to 1.0 positive). 0.0 is neutral.
memory_statsGet current memory engine statistics.
ParameterTypeDescription
namespacestringFilter stats to a specific namespace. None for global stats.
memory_thinkRun the cognitive maintenance loop on the memory store.
ParameterTypeDescription
run_conflict_scanbooleanWhether to scan for contradictions (default True).
run_consolidationbooleanWhether to merge similar memories (default True).
run_pattern_miningbooleanWhether to detect patterns (default True).
trigger_listGet pending proactive triggers from the memory system.
ParameterTypeDescription
limitintegerMaximum number of triggers to return (default 10).

Security checks

  • ✓README presentThe repository's README runs to about 2.3K words.

5 checks have not been run yet.

README

The repository's README runs to about 2.3K words. The original in the repository is authoritative.

Read full README
Questions

About Yantrikdb

How do I install Yantrikdb?

Run uvx yantrikdb, then add the server to your MCP client's configuration.

Is Yantrikdb safe to use with an AI agent?

Its trust score is 63 out of 100 (good). It passes all 1 static checks Conduid ran on the repository. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Yantrikdb still maintained?

Yes — the last commit was yesterday. The repository has 81 stars and 26 forks.

What tools does Yantrikdb provide?

Conduid read 14 tools from the source: conflict_list, conflict_resolve, entity_edges, entity_relate, memory_correct, memory_forget, memory_get, memory_recall and 6 more. 14 of them publish their parameters, listed under Tools above.