
Universal Research Mcp
io.github.mp-juns由 GitHub 帳號 mp-juns 發布v0.9.3更新於 Oct 24, 2026
Provenance-first research memory with hash-bound evidence and a fail-closed eligibility gate.
概覽
為助理提供本機研究記憶,引用的證據經過雜湊驗證,並在斷言前通過失敗即關閉的資格閘門。
- 可以做什麼
- 以本機 stdio 方式執行,管理一個 Markdown 研究文件資料夾,維護僅可追加的事件與來源帳本,並在註冊時記錄 SHA-256。約 30 個工具涵蓋候選檢索、依精確行取回證據並回傳完整性狀態、阻止遺漏不符證據的資格檢查、需要一次性 HMAC 憑證的兩步寫入流程,以及僅做預檢的治理角色。索引為衍生且可重建,檢索為唯讀。
- 適用情境
- 適合助理需要依據長期累積的研究筆記作答,且每條斷言都要對應具體檔案、行範圍與雜湊,並在來源已漂移時阻止斷言而非靜默作答的情境。專案自身的量測顯示,只有工作流程真正被呼叫時該閘門才有效,因此應搭配強制該證據流程的工作區政策使用。
- 執行需求
- 需要本機 Python 執行環境;可從 PyPI 安裝(pip 或 uv tool install),或以 uvx 免安裝執行。需在命令列傳入研究資料夾路徑,由 MCP 主機透過 stdio 啟動。未宣告驗證、環境變數或標頭。語意檢索使用本機嵌入後端,其權重會與固定檢查點驗證。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Universal Research Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Universal Research MCP
Research memory with traceable sources, explicit write approval, and measured — not assumed — safety.
[Version] [Python] [DOI] [CI] [License: MIT]
Architecture deep dive · Benchmarks · Getting started · 한국어 사용자 설명서
Research agents with long-lived memory fail in a specific way: they assert recorded values whose evidence no longer holds — the file drifted, the claim was withdrawn, the source was never registered. This project makes that failure mechanically checkable, fail-closed, and then measures which parts of safety the mechanism actually provides.
New in 0.10.1: the local embedding backend loaded randomly initialized weights instead of the pinned checkpoint, so semantic, hybrid and adaptive retrieval returned noise while reporting success. Weights are now verified against the checkpoint before use, and semantic indexes built by 0.10.0 or earlier must be rebuilt. See the release notes for the affected scope and the reindexing steps.
The structure, in one pass
- The ledger is the only authority; every index is a derived view that refuses to build over a drifted registered source.
- Retrieval is physically read-only (
sqlite mode=ro,query_only=ON). - Writes need a pre-existing human approval record; model-side ingestion additionally needs a one-time HMAC receipt issued outside the MCP.
- The eligibility gate verifies the integrity of cited evidence and fails closed when a material claim silently omits evidence the session fetched and saw fail integrity.
Every one of those sentences is backed by a specific file and line: docs/architecture-deep-dive.md walks the goal, the ledger, the RAG construction, the RAG↔MCP chain, and each control mechanism with code citations, including the boundaries that are deliberately not enforced and say so in their docstrings.
Benchmarks — what was measured, how, and what each result licenses
Every study below was preregistered before its runs (protocol and analysis code committed first; deviations disclosed in the protocol before the affected runs), scored by an independent deterministic scorer cross-checked against a condition-blinded LLM judge (judge validity: two independent raters agreed with each other κ = 1.000 and with the judge κ = 0.865 on a 50-verdict blind sample), and reported as aggregates only. Statistical choices (Wilson/Newcombe CIs, mid-p McNemar, rule-of-three) are bound to hash-verified verbatim quotes from their source papers in the citation manifests.
1 · Does the gate stop unsafe assertions? — yes, to zero, when invoked
Setup. Two paired executions, one synthetic and one real. Synthetic: 24 tasks × 2 arms × 3 reps (144 runs), each task planting one correct and one altered value in a corpus with an injected integrity fault (post-index mutation, line drift, stale index, withdrawn/missing/unregistered evidence, conflicts, plus negative controls). Real: 27 tasks over an actual eight-month research project's ledger — every fault occurred naturally; nothing was mutated for the benchmark. Paired design so each task is its own control; the model (gpt-5.6-sol, medium) and prompts are identical across arms except evidence access. Why this setup. Planted values make scoring deterministic (no judge discretion on the primary endpoint); natural faults answer the "synthetic faults are strawmen" objection. Result. Hash-detectable fault stratum: filesystem 21–22/45 unsafe vs gated 0/45 (RD 0.49 [0.33, 0.63]); real corpus 23–26/27 vs 0/27 (RD 0.85 [0.64, 0.94]); clean coverage 21/21 in both arms. What this licenses. When the eligibility workflow runs, unsafe assertions on integrity-broken evidence go to zero at no clean-coverage cost. It does not license "the MCP makes agents safe" — see benchmark 4.
2 · What does it cost? — retrieval effort, not blocking
Setup. Same paired runs, secondary endpoints: false blocks on answerable tasks, uncached tokens, evidence-binding validity. Result. False blocks 9/54 on the real corpus — all nine traced to legacy events recorded without source references (evidence-chain quality, not the gate, is the binding constraint). Tokens ~1.4–1.9× filesystem. Evidence binding valid 81/81 in the gate arm vs 52/81 filesystem. What this licenses. The gate's cost is retrieval chattiness and legacy-chain gaps, not wrongful blocking of intact evidence.
3 · Where does the payload go? — search, not verification
Setup. Byte-level decomposition of all tool results in the real-corpus gate arm (81 runs, 29.4 MB), plus a same-day optimization pass re-run. Result. 93.4% of payload is candidate search; verification itself (fetch + eligibility) is 5.3%. The optimization pass halved transport (−49% payload) with fault-unsafe still 0. What this licenses. Verification is cheap; retrieval dominates cost and is where optimization belongs.
4 · Does anyone actually call the gate? — no, not without policy
Setup. The scaffold-removal ablation (preregistered, 3 arms × 24 × 3 = 216 runs): identical tasks with no claim types, no scope preamble, no tool naming in any prompt — the original scaffold is the treatment being tested. Arms: filesystem, MCP-attached-but-unprompted, and a cheap baseline (one instruction + a registration-time hash manifest). Why this setup. Benchmark 1's 0/45 was measured under an operator prompt that told the model to use the workflow. A reviewer's question — "if the gate isn't called, there is no protection" — required measuring activation itself, per the tool-usage-awareness literature. Result. The natural arm made zero MCP calls in 72/72 runs (all 30 tools verifiably exposed): unsafe 24/45, identical to filesystem (RD exactly 0.000). The manifest baseline fixed only hash-visible faults (10/45) and misses everything semantic. What this licenses. Effective protection = activation × enforcement, and un-prompted activation is 0%. Any headline safety claim for an agent memory tool must be conditioned on activation. This is the paper's central honest finding, not a defect disclosure.
5 · Can deployable artifacts recover activation? — policy yes, schema no
Setup. Preregistered amendment, 216 more runs: a repository
AGENTS.md policy file (workflow mandate + session-scope preapproval), a
product-only lever (activation triggers in the two tool descriptions), and
a clean rerun of the natural arm after a disclosed fixture-contamination.
Result. Tool-description triggers: 0/45 activation — a dead lever.
AGENTS.md: activation 42/45 (93%), unsafe halved to 12/45 — but all
12 held eligible receipts: in 9 the model fetched the faulted source,
saw the mismatch, silently dropped it, and cited only intact evidence.
What this licenses. A one-file repository policy restores adoption;
tool schemas alone do not. And a third protection layer exists — citation
discipline — because the gate can only judge the citation set it is
given.
6 · Enforcing citation discipline — information loses, enforcement wins
Setup. Two more preregistered steps (72 runs each). v1.2: the server
logs the session's fetches and the receipt discloses fetched-but-uncited
mismatched evidence with an instruction to abstain or address it. v1.3:
same detection, but an active material claim fails closed
(OMITTED-MISMATCHED-EVIDENCE); citing the mismatched reference lifts the
block.
Result. Disclosure fired with perfect precision (13/45 fault, 0/21
clean, 0/6 negative-control) and was overridden in 9/13 — falsified by
its own preregistered rule. Enforcement: unsafe 4/45 (bar ≤ 4 met),
0/12 unsafe where the block fired, zero false blocks, clean 21/21. The
residual four are intact-hash semantic states (withdrawn, irrelevant) the
integrity gate is documented not to judge.
What this licenses. The measured ordering — information < instruction
< enforcement — held at every layer tested. The enforcement ships in this
package and was verified live on the installed build. Adversarial audit
of the governance/ingest surface: 25/25 hostile inputs fail closed
(audit).
What none of this licenses
Generalization beyond one model family and one real corpus; defense against faults whose hashes are intact (withdrawn, stale-but-valid, irrelevant evidence — measured to defeat every arm); anything about corruption that precedes registration (both arms lose 6/6 by design); agent behavior under the multi-agent governance contracts (the controls fail closed under direct adversarial input, but no model-in-the-loop governance benchmark exists yet).
Getting started — two commands to a verified research memory
quickstart takes a folder of Markdown documents and does the whole RAG
setup in one pass: initializes the store, registers every document's
SHA-256, appends an operator-approved observation per document (the
--yes is your human approval — without it, quickstart only prints a dry
run), and builds the search index. Re-running it only picks up new files.
No JSON authoring, no manual approval plumbing. No-install alternative,
verified against the published package: uvx --from universal-research-mcp universal-research quickstart … --yes.
Connect your MCP host
The server is plain stdio — any MCP host launches the same command.
Claude Code
Claude Desktop — one-click: download
universal-research-memory-0.10.1.mcpb
and double-click (or Settings → Extensions → Install from file). Claude
Desktop asks for your research folder and launches the server via uv; an
empty folder is initialized automatically. Manual config alternative:
Claude Desktop / Cursor (claude_desktop_config.json / mcp.json)
Codex (~/.codex/config.toml, or install the plugin from
plugin/universal-research-memory/)
The evidence loop your agent should run
Executed verbatim against a quickstart-built store before this section was written:
memory_search_candidates {query: "dead-time correction", mode: "lexical"}→ returns the observation as a candidate (candidate_only: true— a score is never evidence).memory_fetch_evidence {path, start_line, end_line, event_id, expected_sha256}→integrity_status: "matched"and the exact cited lines; a drifted file instead returnsmismatchedand withholds content.memory_check_evidence_eligibility {claim, claim_type, materiality, evidence:[…]}→status: "eligible"for an intact single-source result claim, andblocked: OMITTED-MISMATCHED-EVIDENCEif the session fetched a mismatched source and silently dropped it.
Adoption note (measured, not advice). In our ablation the model never
called these tools without workspace policy. Add an AGENTS.md to the
project that mandates the loop above and preapproves the session scope for
non-interactive runs — that single file took gate activation from 0% to
93% (details).
Citation
Use the concept DOI 10.5281/zenodo.22118223
to cite the software across releases; it always resolves to the latest
archived release, and each GitHub Release mints its own version DOI under it.
Development reference
Existing checks and release process
Release workflows pin third-party actions to exact commits. A release wheel is built once, checked on Linux/macOS/Windows, and that artifact is published through PyPI Trusted Publishing after its release gates succeed. These are engineering checks, separate from model experiments.
License: MIT
mcp-name: io.github.mp-juns/universal-research-mcp
來源:README.md,提交 e2a27b0
工具
0版本歷史
1- v0.9.3最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分