
Pmll Memory Mcp
io.github.drQedwards由 GitHub 帳號 drQedwards 發布v0.1.1更新於 Oct 27, 2026
PMLL Memory MCP — persistent KV context memory and Q-promise deduplication.
發布方自己的服務:Memory.fit
概覽
本機 stdio MCP 伺服器,為編碼代理提供依工作階段隔離的鍵值記憶快取,以及具語意搜尋的 SQLite 長期記憶圖。
- 可以做什麼
- 初始化、查詢、寫入、解析與清空工作階段層級的短期鍵值記憶,並做 promise 去重
- 建立與更新記憶節點及帶權重的具型別關聯,並對圖進行語意搜尋與鄰居走訪
- 清除衰減的邊、批次加入互相關聯的上下文、從起始節點向外走訪
- 跨短期與長期兩層解析上下文、將項目提升到長期圖、檢視統一的記憶狀態
- 對記憶儲存執行 GraphQL 查詢與變更(僅 TypeScript 版本)
- 適用情境
- 適合代理反覆執行昂貴工具呼叫、或在子任務之間遺失上下文時使用,可與其他 MCP 伺服器一起載入,提供共享快取與持久記憶圖。較適合能被告知在昂貴呼叫前先查記憶的編碼代理。
- 執行需求
- 以本機 stdio 程序執行,可透過 npx、全域 npm 安裝、pip 或 Docker 啟動。Docker 方式使用資料卷與 MEMORY_FILE_PATH 環境變數做持久化。未宣告需要帳號、API 金鑰或請求標頭。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Pmll Memory Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
PPM — Python Package Manager
pypm packaging CLI with shared PMLL memory + Q-promise. Sibling: drQedwards/pmll.
[CI] [License] [Version] [npm] [Sponsor]
Live Stellar pmll-anchor IDs: docs/STELLAR.md · skills: SKILL.md · promises: Q_promise_lib/README.md.
TL;DR: PPM packages Python (C CLI). Shared PMLL owns memory/state (
memory_silo_t, exactpeek+ semanticpeek_semantic, SAT bridge,init_pml). Q-promise owns temporal/control-flow (qpromise_*,libqpromise.so) — it does not replace the silo. Optional Stellar commitments hash off-chainCodeworkPayloads into 32-byte digests viapmll-anchor(ABI: init/store/get/bump). Companion packaging CLI + MCP memory server live in-tree.
PMLL provides durable structured memory for agent workflows, alongside a PPM packaging CLI (hermetic bundles, plugins, signing) and the PMLL Memory MCP server. Long-term graph tools adapt Context+.
Table of Contents
- Layers (post-merge)
- Features
- Building from Source
- CLI Commands
- GPU & Security Features
- Plugin System
- Configuration
- PMLL Memory MCP Server
- Stellar commitments
- Architecture
- Release Notes
- Roadmap
- Contributing & Sponsors
Layers (post-merge)
Two complementary layers — not substitutes for each other:
Q-promise does not replace the silo. A promise may reference a memory key (and optional SAT state id); results are committed back with silo_set / qpromise_resolve_commit.
Intended loop
Thread safety: the C Q-promise drain is single-threaded. Continuations run only during qpromise_drain() on the calling thread; callers must externally serialize access. Details: Q_promise_lib/README.md.
C core (PMLL)
Headers: PMLL.h · implementation: PMLL.c
Q-promise library
Build / test / API: Q_promise_lib/README.md (authoritative). Public symbols are qpromise_*; shared object is libqpromise.so. The old prototype (QMemNode / q_mem_* / memory-chain walker) is removed; Q_promises.h is a compatibility include redirecting to qpromise.h.
✨ Features
Road-mapped: SAT dependency solver (the standalone SAT.c CDCL solver exists but is not yet used for resolution), parallel wheel cache, workspaces with single lockfile,
WASM wheel resolution, Conda & Poetry import plugins.
🔧 Building from Source
System dependencies
- C11 compiler (
gcc,clang, or MSVC) libcurl(plugin downloads)libdl(dynamic loading — standard on Linux / macOS)tar/libarchive(optional, forpypylockbundles)
Build & first run
Q-promise shared library
Optional: CUDA-accelerated build
🖥 CLI Commands
Import packages
Project initialization
Dependency resolution & locking
Snapshot & rollback
Environment diagnostics
Sandbox
Hermetic packaging
🔐 GPU & Security Features
GPU-accelerated hash verification
GPU backend selection
Ed25519 cryptographic signing
Provenance & SBOM
🔌 Plugin System
Writing a plugin (C)
⚙️ Configuration
pypm.toml
Environment variables
🧠 PMLL Memory MCP Server
Persistent memory logic loop with short-term KV context memory, Q-promise deduplication, and Context+ long-term memory graph designed to improve context retention and retrieval for coding agents.
pmll-memory-mcp is a Model Context Protocol (MCP) server with complementary
short-term KV and optional long-term graph layers. Server construction prefers
MCPServer (mcp 2.x) and falls back to FastMCP (mcp 1.x) — see
mcp/pmll_memory_mcp/server.py.
Ground tool names in code: TypeScript (mcp/src/index.ts) has 15 tools including
graphql and names like create_relation; Python (mcp/pmll_memory_mcp/server.py)
has 14 tools (no graphql) with several longer names such as create_memory_relation.
A ctypes demo in Ppm-lib/pmll_mcp/ loads libqpromise.so via qpromise_*.
Memory layers:
- Short-term KV cache (5 tools) — session-isolated key-value memory with Q-promise deduplication, mirroring
PMLL.c::memory_silo_t. - Long-term memory graph (6 tools) — adapted from Context+ by @ForLoopCodes, providing a SQLite-backed property graph with typed nodes, weighted edges, temporal decay scoring (e^(-λt)), and semantic search via stable hashing embeddings.
- Solution engine (3 tools) — bridges both layers with unified context resolution (short-term → long-term → miss), auto-promotion of frequently accessed entries, and unified memory status views.
The server is designed to be the 3rd initializer alongside Playwright and other MCP tools — loaded once at the start of every agent task. Agents call init once at task start, then use peek before any expensive MCP tool invocation to avoid redundant calls. Frequently accessed entries are promoted to the long-term memory graph for semantic retrieval across sessions (SQLite-backed graph).
Tool counts differ by implementation (TS 15 incl. graphql; Python 14 — see note above). Historical docs below list the TypeScript tool surface.
Why it's a premium 3rd initializer
Modern Claude agent tasks routinely call Playwright, file-system tools, and other MCP servers. Without a shared memory layer, every subtask re-initializes the same context from scratch. pmll-memory-mcp eliminates this overhead with two complementary memory layers:
The peek() pattern
Before every expensive MCP tool invocation, agents call peek to check the cache:
Tools reference (15 tools)
Short-term KV memory (5 tools)
GraphQL (1 tool)
Long-term memory graph (6 tools — adapted from Context+)
These tools are adapted from Context+ by @ForLoopCodes, providing SQLite-backed semantic memory with graph traversal, decay scoring, and cosine similarity search.
Solution engine (3 tools)
Installation
Via npx (recommended — no install needed)
Via npm
Via pip (Python)
Claude Desktop / MCP config (claude_desktop_config.json)
NPX
Docker
VS Code MCP configuration
Add to .vscode/mcp.json (or open MCP: Open User Configuration from the Command Palette):
NPX
Docker
Docker
Companion servers & integrations
Full MCP server documentation: mcp/README.md
⚓ Stellar commitments (pmll-anchor)
Memory / codework payloads stay off-chain. Optional 32-byte SHA-256 commitments are live on Stellar mainnet via Soroban pmll-anchor (shared with drQedwards/pmll).
ABI unchanged: init / store / get / bump only — do not invent fields or contract IDs.
This PPM tree may not include the full pmll-anchor/ contract sources; typed payload is still mirrored as skill.ts.
Invoke docs / contract source: pmll/SKILL.md. Local summary: SKILL.md.
Admin: GBFOFCD3XDANQWSGMHKJJ2V3YXS2QQD7RNC4LMDBVNBTUJOQZ3RLSB3E · wasm hash 1b6ad9c574e0f5c9e39968f836a410c03adcf057afa93a63d2710bd30fdd53ba
Skills summary: SKILL.md · full invoke docs: pmll/SKILL.md
🏛 Architecture
Key components
📝 Release Notes
Post-merge (2026-08) — semantic silo + Q-promise
- PMLL C core: associative/semantic silo (
slots+ embeddings),peek+peek_semantic, SAT bridge,init_pmlassignments start at-1(undecided). - Q-promise evolved to
qpromise_*+libqpromise.so; prototypeQMemNode/q_mem_*API removed. - Stellar skills /
skill.tsaligned for off-chainCodeworkPayloadhashing into existingpmll-anchor(ABI unchanged). - MCP servers prefer
MCPServerwithFastMCPfallback; Q-promise MCP demos loadlibqpromise.so.
pypm 0.0.3-dev (25 Jun 2025)
New & Improved
Fixes
- CLI flags after sub-commands were occasionally skipped by
getopt→optind = 2before parsing. - Plugin loader returned success even when
dlsymfailed → now returns non-zero and closes handle. - Workspace scan no longer overwrites
cwdfor latergetcwd()calls.
Breaking changes
pypm versionis now a sub-command (not--versionflag).doctorexit codes can now be >1 (numeric issue count).
Migration (0.0.2 → 0.0.3-dev)
Known issues
- Windows build needs:
LoadLibraryW,_mktemp_s,bsdtar.exefallback (#22). pypylockrelies on shelltar;libarchiveport planned for 0.0.4.- WASI/Rust/OpenSSL checks are informational stubs only.
pmll-memory-mcp 1.0.1
- Version bump — bumped from 1.0.0 to 1.0.1 to fix PyPI publishing (1.0.0 already existed on PyPI).
- Updated project descriptions — PyPI and npm package descriptions now include "in Claude Sonnet/Opus agent tasks" to match the mcp/README.md tagline.
- README refresh — PPM README.md MCP section updated with full tool reference,
peek()pattern with TypeScript example, VS Code MCP configuration, and companion servers table from mcp/README.md.
pmll-memory-mcp 1.0.0
- Context+ integration — 6 long-term memory graph tools adapted from
Context+ by
@ForLoopCodes:
upsert_memory_node,create_relation,search_memory_graph,prune_stale_links,add_interlinked_context,retrieve_with_traversal. - Solution engine — 2 new tools + 1 status tool bridging short-term KV cache
with long-term memory graph:
resolve_context,promote_to_long_term,memory_status. - GraphQL tool —
graphqltool for flexible query/mutation access. - 15 total tools (5 short-term KV + 1 GraphQL + 6 long-term graph + 3 solution engine).
- Stable hashing embeddings (fixed dimension, no shared vocabulary) with cosine similarity search across the memory graph.
- Temporal decay scoring (e^(-λt)) on graph edges with automatic pruning.
- Auto-similarity linking (cosine ≥ 0.72) on bulk context additions.
- Unified context resolution path: short-term → long-term → miss.
pmll-memory-mcp 0.2.0
- Initial MCP Registry submission.
- Five tools:
init,peek,set,resolve,flush. - TypeScript KV store mirroring
PMLL.c::memory_silo_t. - Q-promise registry (historical); current C API is
qpromise_*/libqpromise.so. - Docker multi-stage image with persistent volume support.
- Companion Unstoppable Domains MCP server included in
mcp/unstoppable-domains/.
pypm 0.0.2 (25 Jun 2025)
Workspace autodetect, Doctor v2, Sandbox upgrade, Plugin add/run, pypylock -o.
Breaking: --version flag removed; doctor exits non-zero on issues.
pypm 0.0.1 (23 Jun 2025)
Initial proof-of-concept — single-file CLI with doctor, sandbox, plugin, and pypylock.
🗺 Roadmap
🤝 Contributing & Sponsors
Pull requests are welcome! Open issues and PRs at
https://github.com/drQedwards/PPM/issues
If you find PPM or pmll-memory-mcp useful, please consider supporting development:
[GitHub Sponsors] [Buy Me a Coffee] [CoinGecko Portfolio]
Built by Dr. Q Josef Kurk Edwards — making Python packaging fast, deterministic, and hackable, with a shared PMLL memory stack.
來源:README.md,提交 e5cf8be
工具
0版本歷史
1- v0.1.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Memory 整合

Memory.fit
fit.memory官方發布者
託管式 Memory.fit 伺服器,讓 AI 讀取你的訓練、睡眠、恢復與飲食資料,並寫回每週計畫、每日目標和飲食計畫。
pg.ddx.io: the PostgreSQL community's memory
io.ddx.pg官方發布者
pg.ddx.io: the PostgreSQL community's memory 的託管 MCP 服務,由 pg.ddx.io 發布;無需登入;Streamable HTTP;29 個工具。
var.gg Naming Memory
gg.var官方發布者
遠端 MCP 伺服器,可依領域概念推薦並檢索韓、日、中、越、英多語言的程式識別字名稱,並提供 ERD 結構查詢。

Counterparts
ai.counterparts
為 Claude Code 與 Claude Desktop 提供的本地優先長期記憶:助理自行寫下關於你與專案的筆記,並在之後的對話中回想起來。

LAHZE - Persian AI Memory Platform
由 GitHub 帳號 pedramgholizadeh 發布
以波斯語為先的地理記憶平臺:發現地點,起草併發布僅限波斯語的記憶。AI 翻譯