ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

Heartwood Memory — governed memory for AI agents

โดย jermayne36รุ่น 0.2.9i★ –iรันบนเครื่อง
ชื่อใน registryio.github.jermayne36/heartwood-memory

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

Heartwood Memory — governed AI agent memory; signed provenance. BUSL-1.1; not OSI open source.

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: ค้นข้อมูลและความจำของ AI
  • ต้องใส่ค่าเหล่านี้: HEARTWOOD_DB_PATH

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

ต้องเตรียมก่อน

  • PyPIติดตั้ง uv ของ Python (มีคำสั่ง uvx) ในเครื่อง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

{
  "mcpServers": {
    "heartwood-memory": {
      "command": "uvx",
      "args": [
        "heartwood-memory"
      ],
      "env": {
        "HEARTWOOD_DB_PATH": "ใส่ค่าของคุณ",
        "HEARTWOOD_TENANT": "ใส่ค่าของคุณ",
        "HEARTWOOD_MCP_ALLOWED_TOOLS": "ใส่ค่าของคุณ"
      }
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add heartwood-memory --env HEARTWOOD_DB_PATH='ใส่ค่าของคุณ' --env HEARTWOOD_TENANT='ใส่ค่าของคุณ' --env HEARTWOOD_MCP_ALLOWED_TOOLS='ใส่ค่าของคุณ' -- uvx heartwood-memory

เติมค่าที่เว้นว่างไว้ก่อนรัน

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "heartwood-memory": {
      "command": "uvx",
      "args": [
        "heartwood-memory"
      ],
      "env": {
        "HEARTWOOD_DB_PATH": "ใส่ค่าของคุณ",
        "HEARTWOOD_TENANT": "ใส่ค่าของคุณ",
        "HEARTWOOD_MCP_ALLOWED_TOOLS": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "heartwood-memory": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "heartwood-memory"
      ],
      "env": {
        "HEARTWOOD_DB_PATH": "ใส่ค่าของคุณ",
        "HEARTWOOD_TENANT": "ใส่ค่าของคุณ",
        "HEARTWOOD_MCP_ALLOWED_TOOLS": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าที่ต้องใส่เอง

  • HEARTWOOD_DB_PATH จำเป็น env
    Path to the local Heartwood SQLite database.
  • HEARTWOOD_TENANT env
    Tenant identifier used to isolate memories.
  • HEARTWOOD_MCP_ALLOWED_TOOLS env
    Comma-separated MCP tool allowlist; the default is read-only.

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub jermayne36 ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด ค้นข้อมูลและความจำของ AIi

  • ดาวมากกว่า 0% ของอีก 7283 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 53% ของอีก 7283 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 7283 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

Heartwood Memory — governed memory for AI agents ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

ต้องใส่ค่าเหล่านี้: HEARTWOOD_DB_PATH

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.2.9) เข้า registry 35 วันที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Context7, Codebase Memory, Exa

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Context7

โดย upstash

ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว

บนเครื่องหรือคลาวด์★ 64,224MITอัปเดต เมื่อวาน
ติดตั้ง

Codebase Memory

โดย DeusData

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

รันบนเครื่อง★ 48,148MITอัปเดต 21 วันที่ผ่านมา
ติดตั้ง

Exa

โดย exa-labs

Connect AI agents to Exa for web search, content fetching, and multi-step research.

รันบนคลาวด์★ 5,213MITอัปเดต เดือนที่แล้ว
ติดตั้ง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

Heartwood Memory — governed memory for AI agents

Heartwood Memory is a governed memory store for AI agents: provenance-signed audit, policy-gated recall, tenant isolation, and a per-subject key-destruction proof on erasure.

License at a glance. Heartwood Memory 0.2.0 and later is

source-available under the Business Source License 1.1 (BSL 1.1),

not an OSI "open source" license. Non-production use is free at any size.

Small Organizations—fewer than 100 employees and independent contractors and

less than $1M in prior-tax-year revenue, as adjusted from 2019 under the

license—may also use it in production at no charge. Each version converts

automatically to the Apache License 2.0 four years after release. Versions

0.1.0–0.1.2 were MIT-licensed and remain MIT-licensed permanently.

Website · Compare Heartwood · FAQ · PyPI

Governed, source-auditable memory for AI agents, embedded beside your existing systems of record.

Heartwood is a cryptographic trust root for agent memory: every memory is signed, recall runs under policy before ranking, the audit log is hash-chained and tamper-evident, and erasure emits a falsifiable per-subject key-destruction receipt. The package ships as an embedded Python library with governed adapter surfaces that run on your infrastructure.

Honest boundary. Heartwood is managed-key: the server decrypts to serve

recall. The receipts below are source-auditable today. Deletion is a

per-subject key-destruction workflow, not an instantaneous deletion guarantee.

See Key custody and erasure.

Install

python -m pip install "heartwood-memory[recall,mcp]"

Development checks

From a source checkout, use Python 3.11 and install the declared development dependencies before running the local quality gate:

python3.11 -m venv .venv

source .venv/bin/activate python -m pip install -e ".[dev]" bash scripts/check.sh

scripts/check.sh runs Ruff and the full pytest suite. The optional Hermes Agent contract suite reports as skipped unless its separate integration dependency is installed. To install the same gate as a pre-commit hook without overwriting another hook, run bash scripts/install-hooks.sh.

Re-run the public trust suite

The public trust-receipts benchmark lives in the source repository rather than the installed wheel. Starting from a clean clone, run:

git clone https://github.com/jermayne36/heartwood-memory.git

cd heartwood-memory python3.11 -m venv .venv source .venv/bin/activate python -m pip install --quiet -e ".[dev]" python bench/run_benchmark.py --out .heartwood/trust-receipt.json

On Windows PowerShell, replace the activation line with .\.venv\Scripts\Activate.ps1.

The command exits non-zero if an executable contract or positive-control case fails, or if the benchmark's existing claim-anchor scan finds a violation. Its one-line terminal summary reports the live case counts; the JSON file contains the per-probe results and the separately published boundary cases.

5-minute quickstart

Remember a governed memory, recall it under policy, and emit a key-destruction receipt:

from heartwood import Heartwood, Policy, Principal, prove_crypto_erase_path

1. Open an embedded, tenant-scoped store.

db = Heartwood(path="./heartwood.db", tenant="tenant:acme")

2. Remember. The record is signed and written to a hash-chained audit log.

db.remember( "Customer 42 is on the Enterprise plan.", subject="customer:42", created_by="agent:support", policy=Policy(classification="internal"), )

3. Recall. Policy gates the candidate set before ranking.

principal = Principal( id="agent:support", tenant="tenant:acme", roles=("support",), clearance="internal", ) out = db.recall( "what plan is customer 42 on?", principal=principal, filters={"subject": "customer:42"}, k=5, )

for hit in out["results"]: print(hit["content"], hit"provenance")

4. Forget. This crypto-shreds the per-subject key and purges derived artifacts.

receipt = db.forget( "customer:42", mode="hard", actor="agent:support", reason="right-to-erasure request", ) db.close()

proof = prove_crypto_erase_path( "./heartwood.db", tenant="tenant:acme", root_present=False, ).to_dict() print(receipt["key_shredded"], proof["content_unrecoverable"])

Keep local artifacts out of Git. This repository's .gitignore does not

propagate into downstream repositories. If you run these examples in another

checkout, add equivalent ignores there for local Heartwood databases and

sidecars, token/config files, root-local JSONL inputs, generated *-report.json

files, and .venv/; alternatively, keep sensitive runtime state under an

ignored .heartwood/ directory. Keep deliberate fixtures in non-root paths so

they remain reviewable.

Want governed memory for an MCP-capable agent instead of a library? See the governed MCP quickstart and the Codex local-stdio quickstart. Write and erase verbs are not exposed by default; operators opt in by naming them explicitly.

What you get - five receipts

Governance you can inspect and re-run at the record level:

ReceiptWhat it doesBoundary today
Signed provenanceEvery memory is signed; the signature and content hash are re-verified at read and surfaced on each result.Default OFF surfaces verification state; opt-in FILTER drops failed records and ENFORCE fails before returning results. The signed scope does not cover authorization metadata.
Tamper-evident auditHash-chained append-only log; verify_chain() detects an in-place edit or dropped row.While the external AnchorSink and pinned verification root remain outside the attacker boundary, rollback at or below the latest anchor is detected; post-anchor rows remain an explicit open window.
Policy before rankingRecall is restricted to cleared records before ranking; denied records are not scored or returned, and neither the results nor the signed receipt carries a count of them.Source-auditable under the committed single-trust-domain pre-seed posture; multi-tenant deployment is not claimed.
Key-destruction receiptforget(mode="hard") destroys the per-subject key and purges derived artifacts.Reports per-subject key destruction and purge counts; it does not prove byte-level content deletion.
Faithfulness + egress gateGenerated memories fail closed unless they pass a faithfulness check; rejected egress requests block the external-model call.Unaccepted faithfulness results are blocked by default; store_unaccepted=True stores a generated_needs_review proposal, which typed ranking downweights.

Replacing a memory

From 0.2.10, when a new memory names the memory it replaces, or a file is edited or deleted through the memory tool (MCP memory or MemoryToolBackend), Heartwood's default recall stops returning the old text, including after a restart. Earlier versions of an edited file stay reachable only when history is asked for explicitly.

Limit. Heartwood does not detect replacements by itself: if a new memory

is written without naming what it replaces, both stay current and the old one

can still be recalled.

To name it, pass the old memory's id when you write the new one: db.remember(..., supersedes=old_id). History stays reachable with filters={"include_review_states": ["superseded"]} until forget() erases its subject. A memory-tool file written by an older release keeps its earlier versions in default recall until its next edit, rename or delete; see "Existing data" in the 0.2.10 changelog. Details: Recall visibility and retirement.

Key docs

  • MCP quickstart
  • VS Code + GitHub Copilot MCP
  • Rotation-continuity demo
  • Codex local-stdio quickstart
  • Onboarding guide
  • Python API reference
  • Strict mode and audit-anchor quickstart
  • Signed audit export and offline verifier
  • Key custody and erasure
  • Multi-agent identity
  • Postgres and SQLite migration guide
  • Full public documentation map
  • Release verification and publishing

Run the console script after installation:

heartwood --help

License

From version 0.2.0, Heartwood Memory is source-available under the Business Source License 1.1 (BSL 1.1) — not an OSI "open source" license. You may read the source, run it locally, develop against it, evaluate it, and self-host it for non-production use at no charge. Small organizations (fewer than 100 people and less than $1M annual revenue) may also run it in production at no charge. Larger organizations need a commercial license for production use. Each version converts automatically to the Apache License 2.0 four years after its release.

Versions 0.1.0–0.1.2 are MIT-licensed and remain so permanently. See NOTICE for details. Commercial support, managed key custody, and hosted services are available separately.

Current Bias

Prove boring trust before building ambitious cognition:

  • provenance
  • typed memory routing
  • policy-aware recall
  • temporal state
  • deletion completeness
  • generated-memory faithfulness
  • repeatable evals

The cognitive database vision should be earned by evidence from these loops.

ถาม PopNx