Skip to main content
Glama
Memnest Memory MCP Server

Memnest Memory MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MEMORY_RRF_KNoRank-decay constant for `rrf` mode. Channel value is `(K+1)/(K+rank)`: 1.0 at rank 1, ~0.87 at rank 10.60
MEMORY_FUSIONNoChannel fusion: `legacy` (raw cosine + max-normalized FTS), `normalized` (min-max vector), or `rrf` (reciprocal rank fusion — only each channel's ordering enters the score, so channel scales can't interact and scores stay stable when memories are added or deleted). `rrf` stays opt-in: it measured below `legacy` on LOCOMO.legacy
MEMORY_DB_PATHNoLadybugDB database path. Use `:memory:` for ephemeral testing..memnest/memory.lbug (in cwd)
MEMORY_MAX_BATCHNoMax items per batch call.500
MEMORY_WORKSPACENoWorkspace identifier for memory namespacing.cwd
MEMORY_LIST_LIMITNoDefault page size for `memory_list`.20
MEMORY_MAX_CONTENTNoContent truncation length in search/list results.500
MEMORY_GRAPH_WEIGHTNoWeight of the graph-centrality channel. This is the one relevance-independent channel — PageRank runs over the Memory+Topic graph, so it acts as a tag-popularity prior, and it is dormant until `memory_dream` runs. On a tag-dense corpus, setting `0` measured strictly better (MRR@20 0.354 to 0.370). Consider `0` if your memories are heavily tagged.0.15
MEMORY_SEARCH_LIMITNoMax results from `memory_search`.10
MEMORY_DREAM_MIN_OPSNoMin ops since last dream before next runs.10
MEMORY_EMBEDDING_DIMNoEmbedding dimension (must match model).384
MEMORY_DEDUP_THRESHOLDNoSemantic similarity threshold for auto-dedup.0.92
MEMORY_DREAM_MIN_HOURSNoMin hours since last dream before next runs.24
MEMORY_EMBEDDING_MODELNoFastEmbed model for embeddings.BAAI/bge-small-en-v1.5
MEMORY_EMBED_TIMEOUT_SNoSoft timeout for embedding model load (warm-up only).30
MEMORY_GRAPH_MAX_NODESNoMax nodes `memory_graph_html` will render before refusing.2000
MEMORY_LATENCY_WARN_MSNoLog a warning when an op exceeds this (ms).200
MEMORY_MAX_STORE_CHARSNoContent longer than this is truncated on store.20000
MEMORY_RESPONSE_FORMATNoResponse serialization. `toon` is more token-efficient for LLM context.toon if installed, else json
MEMORY_CONSOLIDATE_SCANNoMemories examined per dream run — a rotating window, not a horizon. Above this size the window advances each run, so the whole corpus is covered over `ceil(corpus / window)` runs at unchanged per-run cost. `memory_dream` reports `scan_coverage`.1000
MEMORY_DREAM_PRUNE_DAYSNoAuto-prune memories older than N days (with low importance).30
MEMORY_MERGE_VALUE_GATENoRefuse to merge near-identical memories whose values disagree (`500ms` vs `900ms`). Set `0` to restore pure-similarity merging (unsafe).1
MEMORY_ALLOW_DESTRUCTIVENoAllow DELETE/DROP/TRUNCATE/REMOVE/SET/COPY through `memory_query`. Off by default for safety. Prefer `memory_update`, `memory_delete`, `memory_unrelate`.false
MEMORY_DREAM_CLUSTER_LOWNoCluster-review window: `[low, trivial)` is surfaced for agent review.0.88
MEMORY_MERGE_TAG_OVERLAPNoMinimum tag Jaccard overlap before two similar memories may merge.0.5
MEMORY_SEARCH_CANDIDATESNoRows each search channel retrieves before fusion. Independent of `top_k`. Does not affect index-health coverage: above this size the census switches to a dedicated id-only probe.100
MEMORY_CONFLICT_THRESHOLDNoSimilarity at which two results are flagged `near_duplicate`.0.85
MEMORY_DREAM_MIN_MEMORIESNoMin total memories before dream is allowed (skipped otherwise).20
MEMORY_DREAM_PRUNE_MAX_IMPNoAuto-prune only memories at or below this importance.2
MEMORY_CONFLICT_VALUE_FLOORNoSimilarity floor for `value_disagreement` flagging — same subject, different value, however differently worded.0.5
MEMORY_CONSOLIDATE_CLUSTERSNoMax clusters returned per `memory_dream` run.10
MEMORY_DREAM_TRIVIAL_THRESHOLDNoCosine similarity >= this is auto-merged in dream.0.95

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources