Skip to main content
Glama
Jlnine
by Jlnine

memory-mcp-openmemkit

File-native, dual-channel AI agent memory as an MCP server. / 文件原生、双通道检索的 AI 记忆 MCP 服务器。

Python License: MIT

English | 中文


English

openmemkit gives any MCP-compatible AI agent (Claude Desktop, Codex CLI, Cursor, Cline, Continue, …) a persistent, queryable memory that lives in plain Markdown files you own. The framework ships with no memory data of its own — every user points it at their own memory directory and SQLite index.

Why openmemkit

  • File-native — memories are human-readable Markdown organised by domain and date. grep, edit, and version-control them with git; no proprietary lock-in.

  • Dual-channel search — SQLite FTS5 (trigram tokenizer, great for CJK and English) plus optional semantic embeddings (local bge-small-zh, offline), fused with Reciprocal Rank Fusion. Short queries (<3 chars) auto-fall-back to LIKE.

  • Audited writes — agents never edit .md directly. They append to a write_log; an explicit flush/apply step distributes entries according to a configurable whitelist. Every write is traceable.

  • Zero mandatory dependencies — the core is pure Python standard library (sqlite3, re, json). Semantic search is an optional extra.

  • Two transports — stdio (for desktop agents) and HTTP/SSE (for remote/shared deployments), same engine, identical behavior.

  • Batteries-included CLIinit, index, search, get, write, flush, stats, doctor, domain, and both servers.

Quick start

pip install memory-mcp-openmemkit

# 1. Create your OWN empty memory root (the framework ships no data)
openmemkit init

# 2. Point your agent at it (stdio), then ask it to remember things
openmemkit serve

Default locations (override with flags, env vars, or a TOML config):

What

Default

Memory root

~/.local/share/openmemkit/memories

SQLite index

~/.local/share/openmemkit/openmemkit.sqlite

Config file

--config / $OPENMEMKIT_CONFIG

MCP client configuration

stdio (Claude Desktop claude_desktop_config.json, Codex config.toml, etc.):

{
  "mcpServers": {
    "openmemkit": {
      "command": "openmemkit",
      "args": ["serve", "--root", "/path/to/your/memories", "--db", "/path/to/index.sqlite"]
    }
  }
}

HTTP/SSE:

openmemkit serve-http --host 127.0.0.1 --port 8765
# SSE endpoint : http://127.0.0.1:8765/sse
# messages POST: http://127.0.0.1:8765/messages/<session>

MCP tools

Tool

Purpose

memory_bootstrap

Load MEMORY.md rules + all domain indexes + semantic status (call once at start)

memory_domains

List domains with file counts

memory_search

Search chunks; modes keyword / hybrid (default) / vector; filters by domain/date

memory_get

Read one .md file by path

memory_list

List indexed files with chunk counts/mtime

memory_stats

Index statistics, domain distribution, write-log status, semantic coverage

memory_write

Append an audited entry (task_history/data_read/data_written/network_fetch/memory_note)

memory_update

Replace a .md file's content; old version archived under .archive/, change logged

memory_delete

Move a .md file to .trash/ (recoverable) with a tombstone audit record

memory_history

Show the audited change trail for a path (or the whole write log)

memory_flush

Distribute pending write-log entries to .md, then reindex

Semantic search (optional)

pip install "memory-mcp-openmemkit[semantic]"

Then enable it via config ([semantic] enabled = true), env (OPENMEMKIT_SEMANTIC=1), or --semantic on indexing. The default model (BAAI/bge-small-zh-v1.5) downloads from HuggingFace on first use and runs fully offline afterward. Swap in any backend by implementing the Embedder protocol and calling openmemkit.embedder.register_backend().

Configuration

# openmemkit.toml
root = "~/.local/share/openmemkit/memories"
db_path = "~/.local/share/openmemkit/openmemkit.sqlite"

[search]
default_top_k = 60
default_mode = "hybrid"      # keyword | hybrid | vector
min_fts_len = 3

[semantic]
enabled = false              # flip to true after installing [semantic]
model = "BAAI/bge-small-zh-v1.5"

[write]
auto_apply_kinds = ["network_fetch", "task_history", "data_read", "data_written", "memory_note"]
top_level_files = ["MEMORY.md"]

[server]
host = "127.0.0.1"
port = 8765

Resolution order: CLI flags > OPENMEMKIT_* env vars > TOML > built-in defaults.

CLI

openmemkit init [--force]                       # scaffold an empty memory root
openmemkit index [--semantic] [--incremental]   # (re)build the search index
openmemkit search "query" [--domain web] [--mode hybrid]
openmemkit get notes/project.md
openmemkit list [--domain notes]
openmemkit write --kind memory_note --summary "..."
openmemkit rm notes/old.md [--summary "..."]    # delete (moves to .trash/)
openmemkit update notes/x.md --file new.md      # replace (archives old version)
openmemkit history [notes/x.md] [--json]        # audited change trail
openmemkit flush                                # apply pending writes + reindex
openmemkit stats [--json]
openmemkit doctor [--fix]                       # integrity + index-drift check
openmemkit domain list|add|rm <name> [--force]
openmemkit backup [--output out.tar.gz]         # snapshot memories + SQLite
openmemkit restore backup.tar.gz --yes          # restore (moves current aside)
openmemkit prune --domain web --days 90 [--delete] [--dry-run]
openmemkit export --format jsonl|md [--out f]   # bulk export
openmemkit serve                                # MCP stdio
openmemkit serve-http --host 127.0.0.1 --port 8765

Management & data safety

  • Deletes are recoverable. memory_delete / rm move files to .trash/YYYY-MM-DD/ and write a tombstone record; nothing is hard-deleted.

  • Updates are versioned. memory_update / update copy the previous file to .archive/YYYY-MM-DD/ and link log entries via parent_id, so history shows the full chain.

  • Backup/restore. backup produces a tar.gz of your memories/ tree plus a consistent VACUUM INTO SQLite snapshot (with a manifest.json); restore moves the current state aside before replacing it, so it is reversible.

  • Retention. prune archives (or with --delete hard-deletes) files older than per-domain retention_days, with --dry-run to preview.

  • MEMORY.md is protected from delete/update through the engine.

Security model

  • Agents only write through memory_writewrite_log; they cannot touch arbitrary files. Path traversal is rejected at read time.

  • Auto-apply is whitelist-based. Kinds outside the whitelist stay pending until reviewed (CLI flush applies configured auto-kinds).

  • OPENMEMKIT_READONLY=1 disables all writes — useful for sharing one memory root across multiple agents.

  • The engine only reads beneath the configured root and writes to db_path. There is no telemetry and no network call other than the optional model download.

Development

git clone <repo> && cd memory-mcp-openmemkit
uv sync --extra dev
uv run pytest                      # 28 tests: chunker/search/write/CLI/stdio/HTTP
uv run openmemkit --version

License

MIT.


Related MCP server: mcp-ltm

中文

openmemkit 为任何兼容 MCP 的 AI agent(Claude Desktop、Codex CLI、Cursor、Cline、 Continue 等)提供持久、可检索的长期记忆,记忆以你拥有的纯 Markdown 文件形式存储。 框架本身不携带任何记忆数据——每个用户都把它指向自己的记忆目录和 SQLite 索引。

特性

  • 文件原生:记忆是人类可读的 Markdown,按域/日期组织,可 grep、可编辑、可 git 版本管理,无私有格式锁定。

  • 双通道检索:SQLite FTS5(trigram 分词,中英文通吃)+ 可选语义向量(本地 bge-small-zh,完全离线),用 RRF 融合;<3 字短查询自动走 LIKE 兜底。

  • 审计式写入:agent 不直接改 .md,先写 write_log,经 flush/apply 按白名单 分发,每条写入可追溯。

  • 零强制依赖:核心纯 Python 标准库(sqlite3/re/json),语义检索为可选 extras。

  • 双 transport:stdio(桌面 agent)与 HTTP/SSE(远程/共享部署),同一引擎、行为一致。

  • 完整 CLIinitindexsearchgetlistwritermupdatehistoryflushstatsdoctordomainbackuprestorepruneexport, 以及两种 server。

  • 管理与安全:删除移入 .trash/(可恢复),更新归档旧版本到 .archive/(版本链), 备份/恢复带清单,prune 按域保留期归档,MEMORY.md 受保护。

快速开始

pip install memory-mcp-openmemkit

# 1. 创建属于你自己的空记忆库(框架不携带任何数据)
openmemkit init

# 2. 让 agent 以 stdio 方式接入
openmemkit serve

默认路径(可用参数、环境变量或 TOML 配置覆盖):

项目

默认

记忆根目录

~/.local/share/openmemkit/memories

SQLite 索引

~/.local/share/openmemkit/openmemkit.sqlite

配置文件

--config / $OPENMEMKIT_CONFIG

客户端配置

stdio(Claude Desktop / Codex 等):

{
  "mcpServers": {
    "openmemkit": {
      "command": "openmemkit",
      "args": ["serve", "--root", "/你的/记忆目录", "--db", "/你的/index.sqlite"]
    }
  }
}

HTTP/SSE

openmemkit serve-http --host 127.0.0.1 --port 8765
# SSE:http://127.0.0.1:8765/sse
# 消息 POST:http://127.0.0.1:8765/messages/<session>

语义检索(可选)

pip install "memory-mcp-openmemkit[semantic]"

在配置中开启 [semantic] enabled = true,或设 OPENMEMKIT_SEMANTIC=1,或索引用 --semantic。默认模型 BAAI/bge-small-zh-v1.5 首次使用时从 HuggingFace 下载,之后完全 离线。实现 Embedder 协议并调用 register_backend() 即可接入任意向量后端。

开发

git clone <repo> && cd memory-mcp-openmemkit
uv sync --extra dev
uv run pytest

许可证

MIT。

Available Tools

11 tools
memory_bootstrapA
Read-onlyIdempotent

Call once at session start. Returns MEMORY.md rules, all domain indexes, environment paths, and semantic-search status. / 会话开始时调用一次。返回 MEMORY.md 规则、全部域索引、环境路径与语义检索状态。

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description complements the annotations (readOnlyHint, idempotentHint) by detailing exactly what the call returns: MEMORY.md rules, domain indexes, environment paths, and semantic-search status. It also reinforces the intended one-time usage, which adds behavioral context beyond the bare hints. No contradiction exists with the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact—two short bilingual sentences—and front-loads the most important instruction ('Call once at session start') before listing the return contents. Every phrase conveys useful information with no filler or redundancy, making it an efficiently structured description.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only, idempotent tool with zero parameters and no output schema, the description covers the essential context: when to call it and what categories of data it returns. It does not specify the exact response format, but the listed content categories are sufficient for an agent to understand the tool's role in the memory system.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters and the schema has no properties, so there is nothing for the description to clarify about parameters. Baseline for a zero-parameter tool is met, and the description's mention of return contents implicitly indicates that this is a no-input retrieval operation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: it is called at session start and returns MEMORY.md rules, all domain indexes, environment paths, and semantic-search status. This concrete verb-resource pairing and explicit return list distinguish it from sibling tools like memory_get or memory_stats, which handle individual operations rather than session initialization.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives an explicit temporal instruction, 'Call once at session start,' which tells the agent when this tool should be used. It stops short of naming alternatives or stating when not to use it, but the session-start context is a clear and sufficient trigger for this bootstrap operation.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

memory_deleteA

Delete a .md file by moving it to .trash/ (recoverable) and recording a tombstone in the audit log. Refuses MEMORY.md. / 删除 .md 文件:移入 .trash/(可恢复)并写 tombstone 审计记录。禁止删除 MEMORY.md。

ParametersJSON Schema
NameRequiredDescriptionDefault
pathYesrelative path e.g. notes/x.md / 相对路径
agentNoagent
summaryNodeletion reason / 删除原因

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description correctly carries the full burden: it discloses that the destructive action is recoverable, records an audit tombstone, and refuses MEMORY.md. This goes beyond a generic 'delete' statement, though it omits edge behavior for nonexistent files or non-.md paths.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single sentence packs action, mechanism, recoverability, audit side effect, and a safety restriction; the bilingual version is still compact and front-loaded. No filler or repetition of schema details.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive tool with no annotations and no output schema, it provides enough core context: target scope (.md), recovery trail, audit effect, and the protected file. It lacks explicit return/error behavior or what happens if the path does not exist, but these are minor for a simple delete operation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67%; path and summary are already described in the schema. The description adds no new meaning to the parameters and does not clarify the agent parameter, but the parameter names and defaults make it usable.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific action—deleting a .md file—and the mechanism (move to .trash/, recoverable) plus the audit tombstone. It clearly differentiates from sibling tools like memory_update/memory_write as a deletion operation. The explicit refusal of MEMORY.md adds precision.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by 'delete a .md file' and the sibling set; no explicit when-to-use vs memory_update or when not to beyond MEMORY.md. It states the restriction on MEMORY.md but does not describe alternatives for cases like renaming or editing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

memory_domainsA
Read-onlyIdempotent

List memory domains with their .md file counts. / 列出记忆库各域及其 .md 文件数量。

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already establish readOnlyHint and idempotentHint, so the safety profile is covered. The description adds the key behavioral output detail—that it returns domains along with their .md file counts—which is the main behavior an agent needs to know for a zero-parameter read-only listing tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One compact sentence (plus a parallel Chinese translation) that front-loads the verb and resource and adds only the essential output detail. No filler or schema repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a zero-parameter, read-only, idempotent listing tool with no output schema, the description fully explains the return content (domains plus .md counts). There are no arguments to document and no side effects to warn about; nothing essential is missing for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There are no parameters, so the baseline is 4. The description contributes the relevant semantic context by specifying what the returned list contains, and there is no parameter documentation gap to compensate for.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('List'), a concrete resource ('memory domains'), and the exact output contents (their .md file counts). This is distinct enough from generic siblings like memory_list or memory_stats because it names the domain-level aggregation rather than just listing memories or general stats.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to choose this tool over siblings such as memory_list, memory_stats, or memory_search. The description only states what the tool does; an agent must infer when the domain-level .md count view is the right call.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

memory_flushA

Trigger immediate distribution of pending write_log entries to .md files, then reindex. / 触发立即分发 pending 条目到 .md 文件并重建索引。

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A3.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It does reveal the key behavior—flushing pending entries and reindexing—but says nothing about idempotency, side effects, locking, failure modes, or whether the operation is safe to repeat.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The English description is a single, front-loaded sentence that communicates the action and its consequence efficiently. The bilingual duplicate adds some redundancy but does not harm clarity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a zero-parameter action tool, the description covers the core behavior and the reindexing side effect. However, since there is no output schema and no usage guidance, an agent is left without information about expected return values or when this flush is necessary versus automatic.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has zero parameters and the input schema is completely covered at 100%, so there is nothing meaningful for the description to add about parameters. The baseline of 4 is appropriate here.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Trigger immediate distribution') and names a concrete resource ('pending write_log entries' to '.md files'), plus a clear follow-up action ('then reindex'). This distinguishes it from related sibling tools like memory_write or memory_search, making the tool's purpose unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'pending write_log entries' and 'immediate' imply this tool is used to force materialization of queued writes and rebuild the index. However, it never explicitly states when to use it versus memory_write or when not to use it, leaving the routing decision mostly to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

memory_getA
Read-onlyIdempotent

Read a single .md file by path (relative to memory root). Top-level MEMORY.md by bare name; domain files like web/2026-08-20.md. / 按 path 精读单个 .md 文件。顶层 MEMORY.md 用裸名;域文件如 web/2026-08-20.md。

ParametersJSON Schema
NameRequiredDescriptionDefault
pathYes
max_charsNo

TDQS

A3.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, idempotentHint=true, so no safety disclosure is needed. The description adds path-scoping behavior (relative to memory root, bare-name convention) but does not mention error handling, truncation behavior, or return format. Given the annotation coverage, this is adequate though not rich.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core statement is front-loaded and compact, but the Chinese translation repeats the English content verbatim, adding no new information for an AI agent. The description could be trimmed to the English portion without losing value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple 2-parameter read tool with readOnly/idempotent annotations, the description covers the crucial path format accurately. It omits max_chars and return-value details, but these are either self-evident or low-risk. Overall complete enough for an agent to invoke correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 0% description coverage, so the description carries the burden. It explains the required 'path' parameter well ('relative to memory root', bare name vs domain path), but does not mention 'max_chars' at all. The optional parameter is left entirely to inference from its name and default.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States the exact operation: 'Read a single .md file by path (relative to memory root).' The examples of MEMORY.md and web/2026-08-20.md make the resource format concrete, and this is clearly distinct from siblings like memory_search (search), memory_list (list), and memory_domains.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies the tool is for reading a known file path, and the path-resolution rules (bare name for top-level MEMORY.md, path for domain files) give clear context on how to call it. It does not explicitly name alternatives or state when not to use it, but the distinction from search/list tools is reasonably clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

memory_historyA
Read-onlyIdempotent

Show the audited change history for a path (or the whole write_log). / 查看某路径(或整个 write_log)的审计变更历史。

ParametersJSON Schema
NameRequiredDescriptionDefault
pathNooptional relative path / 可选相对路径
limitNo

TDQS

A3.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and idempotentHint=true, so the description only adds the 'audited' scope and path/write_log behavior. It does not disclose ordering, pagination, or entry format, but the safety profile is already covered by annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single concise bilingual sentence states the verb, resource, and key scoping option with no filler or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read-only, zero-required-param tool with strong annotations, the description covers the main invocation choice (path vs. whole write_log). Slight gaps remain around return format and limit semantics, but they do not prevent correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 50%: path is documented, while limit only has a default. The description adds meaning for path ('or the whole write_log'), but it does not clarify the semantics of limit (e.g., maximum entries) beyond the schema default.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description uses a specific verb ('Show') and resource ('audited change history' for a path or write_log). This clearly differentiates it from sibling tools like memory_get (current state), memory_search, and memory_stats.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The purpose makes the use case inferable—history rather than current values—but there is no explicit statement of when to choose this over memory_get/memory_list or any exclusions. Usage guidance is implied by the name and description, not stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

memory_listB
Read-onlyIdempotent

List indexed files with domain, chunk count, mtime. Supports domain filter and limit. / 列出已索引文件,含域、chunk 数、修改时间;支持域过滤与限量。

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNo
domainNo*

TDQS

B3.2/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and idempotentHint=true, so the safety profile is covered. The description adds useful behavioral context by stating what each list entry contains (domain, chunk count, mtime) and that results can be filtered and limited, but it does not disclose ordering, wildcard semantics, or any upper bound on limit. No contradiction with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core action and result fields are front-loaded in the first sentence, and the parameter capabilities fit in the second. The bilingual repetition (Chinese) roughly doubles the length but is a deliberate localization choice; the English portion alone is tight with no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read-only list tool with two optional defaulted parameters and annotations covering safety, the description is close to sufficient: it states the purpose, entry contents, and parameter roles. The remaining gaps—what domain="*" means, whether the domain filter is exact or wildcard, and result ordering—are material for correct invocation, keeping this at the minimum-viable level.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate for the bare schema. It does add high-level meaning by mapping 'domain' to a filter and 'limit' to a cap on returned entries, which an agent can connect to the schema defaults ("*", 200). However, it leaves the matching behavior of domain unspecified (exact vs glob) and does not state what the limit default or maximum behavior entails, so compensation is partial.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb ('List') and resource ('indexed files') and enumerates the per-entry fields (domain, chunk count, mtime), giving an agent a concrete idea of the operation and result shape. It does not explicitly differentiate from nearby siblings such as memory_stats or memory_domains, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives no guidance on when to use this tool versus alternatives; with ten siblings like memory_search, memory_get, and memory_stats, an agent must infer from the name that 'list' means enumeration. The filter/limit note hints at usage for slicing results, but there are no exclusions, prerequisites, or explicit conditions for choosing this tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

memory_statsA
Read-onlyIdempotent

Return index statistics: chunk count, per-domain distribution, write log status, semantic coverage, db size. / 返回索引统计:chunk 数、域分布、write_log 状态、语义覆盖、数据库体积。

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already mark the tool as readOnlyHint and idempotentHint, so the description does not need to restate safety. It adds meaningful behavioral context by naming the categories of statistics returned, which helps the agent know what to expect beyond the annotation hints. No contradiction with annotations exists.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely compact and front-loaded: the verb and resource appear immediately, followed by a concise list of return contents. The bilingual version adds little overhead and every phrase contributes useful information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a zero-parameter, read-only statistics tool, the description provides a solid overview of what will be returned. However, there is no output schema, and terms like 'write log status' and 'semantic coverage' are not expanded, so an agent may not know the exact format or meaning until after calling it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has zero parameters, so the description carries no parameter documentation burden. The baseline of 4 applies because there are no parameters whose semantics need elaboration.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Return') and a clear resource ('index statistics'), then enumerates the exact data points returned: chunk count, per-domain distribution, write log status, semantic coverage, and db size. This clearly distinguishes it from sibling tools like memory_search or memory_list, which have different purposes.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description does not state when to use this tool versus alternatives, such as memory_domains for domain-specific information or memory_history for write log details. The usage context is only implied by the tool name and the nature of statistics; there is no explicit guidance or exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

memory_updateA

Replace the content of an existing .md file. The previous version is archived under .archive/ and the change is recorded in the audit log. Refuses MEMORY.md. / 替换已有 .md 文件内容;旧版本归档到 .archive/,变更记入审计日志。禁止更新 MEMORY.md。

ParametersJSON Schema
NameRequiredDescriptionDefault
pathYesrelative path e.g. notes/x.md / 相对路径
agentNoagent
contentYesnew full file content / 新的完整文件内容
summaryNochange summary / 变更摘要

TDQS

A3.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the behavioral burden. It discloses useful behaviors: previous version archived under .archive/, change recorded in audit log, and refusal of MEMORY.md. However, it does not disclose the role of the 'agent' parameter, whether the file must already exist, or what happens on failure. It also doesn't state whether content is fully replaced vs merged, though 'full file content' in the schema hints at this.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise: two sentences (one in English, one in Chinese) with no fluff. The core action ('Replace the content') is front-loaded, followed by side effects (archive/audit) and the critical constraint (refuses MEMORY.md). Bilingual repetition is acceptable given the schema is also bilingual, and every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has 4 parameters, no annotations, and no output schema, the description covers the main action and key side effects but misses some context: what happens if the file doesn't exist, the role of the 'agent' parameter, and explicit guidance on when to use memory_update vs memory_write. It also doesn't describe the return value or confirmation behavior. Adequate but with clear gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 75%, with path, content, and summary having descriptions, but the 'agent' parameter has no description in the schema. The tool description does not explain 'agent' at all, which is a gap. However, the description does add context by mentioning the audit log and archive, which indirectly connects summary/agent to those behaviors. The phrase 'full file content' clarifies replacement semantics, but overall the description leaves a key parameter unexplained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description states a specific verb ('Replace the content of an existing .md file') and resource, and distinguishes itself from siblings by explicitly excluding MEMORY.md and noting archival/audit behavior. This makes it clear how it differs from memory_write (likely creates new files) and memory_delete.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description clearly states this is for replacing content of an existing file and explicitly mentions it refuses MEMORY.md, giving a clear when-not condition. However, it doesn't explicitly name alternatives like memory_write for creating new files, nor does it state conditions for when to choose memory_update over memory_write. The refusal condition is explicit, but other guidance is implied rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

memory_writeA

Append to the audited write_log (does NOT modify .md directly). network_fetch entries auto-apply to web/ on flush; other kinds are distributed per config. / 写入审计式 write_log(不直接改 .md)。network_fetch 类条目在 flush 时自动落 web/,其余按配置分发。

ParametersJSON Schema
NameRequiredDescriptionDefault
kindYestask_history|data_read|data_written|network_fetch|memory_note
agentNoagent
domainNoroot
payloadNoraw data, JSON or text / 原始数据
summaryYes
task_idNo
endpointNosource URL, required for network_fetch / 联网来源 URL
ref_pathsNo

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It reveals the key non-obvious trait that this is an indirect append (not a direct .md modification), describes the log as audited, and discloses the special auto-apply behavior for network_fetch entries on flush. It does not cover permissions, failure modes, or reversibility, but the most important side-effect behavior is stated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and front-loaded: the core behavior (append to write_log, no direct .md modification) appears immediately. The bilingual translation adds redundant length but not enough to be wasteful. Every fact present is useful, and there is minimal filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 8 parameters, no annotations, and no output schema, the description covers the central mechanism (append to a log, flush-time behavior) but leaves important gaps. It never explicitly instructs the agent to call memory_flush to apply entries, and 'distributed per config' is vague about what happens to each kind after flush. The agent can likely use the tool, but not with full confidence about downstream effects.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 38%, so the description must compensate, but it provides little parameter-level detail. It adds meaning for kind=network_fetch by explaining the related web/ auto-apply behavior, but it does not explain the roles of agent, domain, task_id, ref_paths, or summary, nor does it clarify how the listed kind values map to different outcomes beyond the raw schema string.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific action: 'Append to the audited write_log' and explicitly contrasts itself with direct modifications: 'does NOT modify .md directly'. This clearly differentiates it from sibling tools like memory_update and memory_delete, and aligns with memory_flush. The verb+resource combination is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies the intended write flow: append to the log, then have entries applied on flush. It also provides context for using network_fetch entries, but it never explicitly names alternatives like memory_update or states when to use memory_write vs. the other write-related siblings. The 'does NOT modify .md directly' warning hints at a boundary but leaves the routing to the agent.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 11 tool updatesv0.2.0
    • First observedmemory_bootstrap
    • First observedmemory_delete
    • First observedmemory_domains
    • First observedmemory_flush
    • First observedmemory_get
    • First observedmemory_history
    • First observedmemory_list
    • First observedmemory_search
    • First observedmemory_stats
    • First observedmemory_update
    • First observedmemory_write

TDQS

A3.7/5.0
Disambiguation3/5

memory_domains, memory_list, and memory_stats all return overlapping inventory/index information, which could cause misselection. memory_update and memory_write also both suggest writing, though they target different backends; the descriptions help, but boundaries are not always obvious.

Naming Consistency4/5

All tools share the memory_ prefix and most follow a verb-oriented pattern like search, get, list, update, delete, write, and flush. A few noun-style names such as domains, stats, and history deviate slightly, but the overall convention remains predictable.

Tool Count5/5

11 tools is well within the ideal range for a memory-management server. Each major operation—bootstrap, read, search, list, stats, update, delete, history, write, and flush—has a dedicated tool without excessive fragmentation.

Completeness4/5

The set covers session bootstrap, reading/searching, metadata inspection, update/delete, audit history, and the write_log flush pipeline. Minor gaps exist: delete is described as recoverable but no restore tool is exposed, and there is no direct create-file operation apart from the write_log/flush path.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    B
    maintenance
    A local-first shared memory layer for MCP-aware agents like Claude, Codex, and Hermes, enabling persistent memory across chats and clients via Markdown files and SQLite FTS.
    6
    2
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides persistent long-term memory for AI assistants with tag-based retrieval, wiki-style linking, and source references, storing memories as markdown files with SQLite index.
    1
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Provides AI agents with persistent, long-term memory via OKF-formatted markdown and SQLite indexing, enabling stateful storage, retrieval, and search across sessions.
    6
    204
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Jlnine/memory-mcp-openmemkit'

If you have feedback or need assistance with the MCP directory API, please join our Discord server