
World Model Mcp
io.github.SaravananJaichandar由 GitHub 帳號 SaravananJaichandar 發布v0.15.5更新於 Oct 24, 2026
Temporal knowledge graph for codebases with constraint enforcement at the edit boundary.
概覽
一個本機 MCP 伺服器,為程式編寫代理提供程式碼庫事實、限制與修正的持久化 SQLite 知識圖譜,並可選擇啟用簽章稽核。
- 可以做什麼
- 查詢與記錄帶來源與信賴度的知識圖譜事實,並保存使用者修正以便日後重新浮現。對照已學習的限制檢查程式碼變更提案,依實體或檔案列出限制,並查詢相關缺陷及每個檔案的風險分數。從現有程式碼庫批次匯入圖譜,並把 PR 審查意見轉為限制。將事件附加到可選的防竄改稽核鏈,並用隨附命令列工具離線驗證。
- 適用情境
- 適合希望 AI 程式編寫代理跨工作階段、跨上下文壓縮記住專案事實與過去修正,並在變更落地前用已學限制檢查提案的情境。也適合需要本機、可離線驗證的代理決策紀錄時使用。
- 執行需求
- 以 Python 套件形式在本機執行(pip install world-model-mcp),預設 stdio 傳輸,可選 HTTP 傳輸。資料存放在可設定目錄下的本機 SQLite(WORLD_MODEL_DB_PATH)。ANTHROPIC_API_KEY 為選用,僅供 LLM 相關功能使用;模型由 WORLD_MODEL_EXTRACTION_MODEL 與 WORLD_MODEL_REASONING_MODEL 指定。核心功能不需帳號。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 World Model Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
World Model MCP
Persistent memory + optional signed audit for AI coding agents.
world-model-mcp is persistent memory plus a post-quantum-signed, offline-verifiable audit trail for AI coding agents (FIPS 205 hybrid Ed25519 + SLH-DSA), MIT-licensed and fully local.
world-model-mcp ships a local SQLite knowledge graph your agent queries every turn: hallucinations become verifiable, corrections stick across sessions, and regressions get caught before they land. Flip on the audit chain and every event is signed with FIPS 205 hybrid Ed25519 + SLH-DSA, verifiable offline forever. MIT-licensed, runs entirely local, works with 10+ AI coding agents including Claude Code, Cursor, Codex, Continue, Cline, Windsurf, GitHub Copilot Chat, pi, OpenClaw, and Hermes Agent.
Latest: v0.16.3. Metadata refresh. No code changes. The PyPI summary and keyword set now name both artifacts that ship in this wheel: the MCP world-model memory server for coding agents, and the
etch-verifyoffline audit-chain verifier CLI. Both were already installed by every prior release; the metadata is now honest about that so a searcher looking for an offline audit-chain verifier can find the package. v0.16.2 shipped CI hardening plus theworld-model demolive notary beat introduced in v0.16.0 (three sample decisions signed into a real hybrid-signed epoch, verified VALID, mutated one byte to prove tamper detection fires live, then restored). Full version history in CHANGELOG.md.
Try it in 10 seconds
You will see three sample decisions signed into a tamper-evident epoch, then the demo mutates one byte and re-verifies to prove the tamper is detected instantly (INVALID), then restores and re-verifies (VALID again). Offline, no account, no network. A world-model-demo-receipt.json lands in your current directory and a shareable etch.systems/verify#… URL is printed for anyone to check the same receipt in a browser.
[PyPI] [Downloads] [License: MIT] [Python 3.11+] [world-model-mcp MCP server] [DOI]
mcp-name: io.github.SaravananJaichandar/world-model-mcp
Prefer a managed hosted version?
If you want the same signed audit chain without running the OSS server yourself, etch.systems ships a managed variant that uses this package as its offline reference verifier.
- No infrastructure to run (POST your first event in 30 seconds, no signup)
- Compliance framework mapping to SR 11-7, EU AI Act Article 12, ISO 42001, NIST AI RMF, SOC 2 CC7
- External anchoring shipped end-to-end (Sigstore Rekor + Bitcoin OpenTimestamps)
- Portable per-agent identity with key rotation and delegation across MCP client tools (Claude Code, Cursor, Continue, Cline, Codex)
- Offline verifier stays the same:
pip install world-model-mcp && etch-verify manifest.jsonverifies the hosted chain against pinned public keys without depending on the hosted service being online
Returns a bearer token and an MCP endpoint you can point any MCP-compatible client at. Full docs at etch.systems.
FAQ
What is world-model-mcp? world-model-mcp is persistent memory plus a post-quantum-signed, offline-verifiable audit trail for AI coding agents, exposed as an MCP server the agent queries every turn. It runs entirely local, ships as MIT-licensed Python + optional adapters for 10+ AI coding agents.
How is it different from Mem0, Letta, and other agent-memory tools?
world-model-mcp is the only agent-memory tool that ships a hybrid post-quantum signed audit chain (FIPS 205 Ed25519 + SLH-DSA-SHA2-128f) alongside memory, with an offline reference verifier (etch-verify) and dual external anchoring (Sigstore Rekor + Bitcoin OpenTimestamps) available via the hosted etch.systems companion. Peer tools (Mem0, Letta, agentmemory) ship memory without a signed audit chain. See the "Compared to" table below for a per-mechanism breakdown.
Is the audit trail post-quantum secure? Yes. Every closed epoch carries a hybrid signature: Ed25519 (classical) plus SLH-DSA-SHA2-128f (FIPS 205 stateless hash-based post-quantum signature). A future quantum adversary that breaks Ed25519 alone still faces the SLH-DSA signature over the same payload; both signatures must forge for the chain to be forged.
How do I verify a record offline, with no account?
Run pip install -U world-model-mcp && world-model demo. The demo signs three sample decisions into a real hybrid-signed epoch, exports the same manifest format the etch-verify CLI reads, verifies VALID, mutates one byte to prove tamper detection is live (INVALID), then restores and re-verifies. A world-model-demo-receipt.json lands in your current directory and a etch.systems/verify#… URL is printed for anyone to check the receipt in a browser. Zero signup, zero network.
Which AI coding agents does it work with?
Claude Code, Cursor, Codex, Continue, Cline, Windsurf, GitHub Copilot Chat, pi, OpenClaw, and Hermes Agent. Each has a dedicated starter repo under github.com/SaravananJaichandar/world-model-mcp-<agent>-starter. The MCP wire format is standard, so any MCP-capable client can consume the same tools.
Should I use this OSS package or the hosted etch.systems service?
Use this OSS package (MIT-licensed, fully local) if you want to run the audit chain on your own infrastructure or add signed memory to an internal tool. Use etch.systems if you want the same audit chain shipped as a managed service with compliance framework mapping (SR 11-7, EU AI Act Article 12, ISO 42001, NIST AI RMF, SOC 2 CC7) and portable per-agent identity across MCP client tools. The offline reference verifier is the same in both cases: pip install world-model-mcp && etch-verify manifest.json verifies either an OSS-generated or a hosted-generated manifest against pinned public keys.
Compared to other agent-memory + agent-audit projects
Head-to-head positioning against eight named peers on the audit / signing / anchoring dimensions the agent-memory space is converging on. Every world-model-mcp cell carries a provenance flag: own = measured / observed in the shipped product; cited = pulled from the competitor's own public landing, repo, or press.
Source of truth for this table lives in the hosted service repo: world-model-mcp-hosted/src/etch/competitor_matrix.py. Update in both places if you change either.
How to read this table:
- Bold cells describe mechanisms shipped in this repo (OSS) or the hosted service (etch.systems).
- Peer cells are cited from each competitor's public landing / repo / press. Not our own measurement.
[own]on aworld-model-mcpcell means we measured / observed the mechanism ourselves.[cited]means the value came from a third-party source.- Only the audit / signing / anchoring dimensions are in this table. General memory features (retrieval accuracy, adapter breadth, LLM support) are covered in the Features section below.
Numbers
The SWE-bench number is the load-bearing empirical claim. The other two are internal correctness benchmarks for shipped components. Reproducibility scripts in each benchmark directory or the linked repo.
Testing
1,494 unit + integration + fuzz tests across the shipped codebase. Coverage floor gated at 71% / 66% (two-tier for CI runners with and without SLH-DSA in liboqs).
Selected test suites worth calling out:
- FIPS 205 SLH-DSA known-answer tests (
tests/test_fips_205_slh_dsa_kat.py): locks parameter sizes for SLH-DSA-SHA2-128f (public key = 32 bytes, secret key = 64 bytes, signature = 17,088 bytes), sign/verify round-trip with wrong-key + wrong-message + mutated-signature rejection, plus a fixed KAT-vector fixture (tests/fixtures/slh_dsa_kat_vectors.json) that must verify true forever. - Streaming verifier byte-parity (
tests/test_etch_verify_streaming.py): locks byte-identical output between in-memory and streaming exporters so an auditor hashing the manifest as an artifact of record gets the samemanifest_sha256regardless of which exporter the operator used. - Contradiction benchmark (
benchmarks/contradictions-200/): 105 pairs × 19 categories, deterministic. Locks theautostrategy at 100% on every commit.
CI gates coverage floor + full test suite on every push. See .github/workflows/pytest.yml.
Authenticated audit chain (v0.13+, opt-in)
For deployments where the audit trail must be cryptographically verifiable (SOC 2, HIPAA, EU AI Act, or your own internal control list):
On the first opt-in start, the server creates two new SQLite tables in the existing audit.db file (tamper_evident_log and tamper_evident_epochs) and generates a new hybrid keypair on the first epoch close. Every subsequent event is appended to a SHA-256 Merkle chain. When an epoch closes (default: 1024 events), the chain root gets signed with a hybrid Ed25519 + SLH-DSA-SHA2-128f envelope: classical + post-quantum, so a hypothetical break of elliptic-curve cryptography leaves the audit trail intact.
- Verifiable offline, forever.
etch-verifyCLI ships with the PyPI package; auditors run it on their laptop, no network access needed after the initial download. - Signatures prove authorship, not just order. Hash-chain alternatives can prove nothing was reordered, but cannot prove WHO signed. This chain answers both.
- No dashboard, no signup, no external service. Runs entirely in your process against local SQLite.
Full write-up in docs/AUDIT_LOG.md.
For a hosted version that adds KMS-backed keys, a public transparency log, external anchoring to Sigstore Rekor + Bitcoin OpenTimestamps, and a compliance-facing operator dashboard, see the Etch companion below.
Quick Start
Three most-common install paths. For every other supported client (Cursor, Cline, Codex, Continue, Copilot, Windsurf, Goose, pi, OpenClaw, Hermes, and more), see etch.systems/docs/install.
Option 1: Claude Desktop (one-click)
Download the latest .mcpb from Releases and drag it into Claude Desktop. Auto-installs hooks, MCP server config, and dependencies.
Option 2: Claude Code / IDE plugins (pip install)
Next (optional): turn the local signed audit log into an auditor-verifiable chain with the hosted Etch notary — KMS-backed keys, public transparency log, external anchoring, and a share link for auditors, with no infra to run. See Hosted companion: Etch.
Option 3: HTTP transport for remote / MCP-tunnel deployment
Exposes MCP over Streamable HTTP so remote agents can connect over the wire. See docs/http_transport.md for auth, CORS, and reverse-proxy setup.
Other clients
Install via the OSS CLI. Each command writes the correct config for that client (defaults to sys.executable as the interpreter path, per-client-format-aware, safe against overwrite via --force and --dry-run flags):
Full per-client walkthroughs (with verify commands + troubleshooting) at etch.systems/docs/install.
What it does
world-model-mcp is a temporal knowledge graph that sits between your AI coding agent and its work. It records facts, entities, and constraints from your codebase; validates every code change against learned constraints at the edit boundary; re-injects relevant context after context-window compaction; tracks contradictions with confidence-weighted resolution; and adversarially verifies retrievals via an independent Coach LLM.
Features
1. Hallucination prevention. Every fact recorded carries provenance (asserted_by, confirmer, confirmation_state, evidence_type). When the agent queries a fact, it gets the confidence score along with the answer. When two facts contradict, the newer/higher-confidence one wins; the loser is retained with superseded_by. The agent never has to guess whether a stored fact is still current.
2. Learning from corrections. When you correct an agent (record_correction), the correction is stored as a first-class event with the entities involved. Next time the agent queries anything touching those entities, the correction surfaces first. Corrections stick across sessions, across context compactions, across agent restarts.
3. Regression prevention. Every code-change proposal runs through validate_change, which walks the constraint graph and returns violations before the edit lands. Constraints are learned automatically from your codebase (seed_project), reinforced by PR review comments (ingest_pr_reviews), and hand-authored (record_event). The agent sees the violation, the suggestion, and the source of the constraint.
4. Coach-Player adversarial verification. A Player agent drafts a decision. An independent Coach agent independently requeries the graph for precedent, walks the Merkle proof, checks the hybrid signature, and only then approves. The Coach never trusts the Player's summary; it reverifies against a signed ledger every time. 100% exact match on 12 hand-labeled pairs.
Full technical architecture in docs/ARCHITECTURE.md.
MCP Tools
Eight tools shipped. One-line summary; click each for signature + examples in docs/mcp/.
Full tool documentation at docs/mcp/.
Hosted companion: Etch
Running world-model-mcp locally? Etch (etch.systems) is the hosted governance plane built on the same OSS core, adding what a compliance team needs to sign off on production use:
- KMS-encrypted signing keys (never plaintext at rest)
- Public transparency log with signed head (split-view resistance)
- External anchoring to Sigstore Rekor + Bitcoin OpenTimestamps (dual independent witness)
- Operator dashboard with session traces, chain integrity view, PII scanning, and a client-answer PDF export
- Standalone auditor CLI + browser verifier at
/auditor/<slug> - Free tier, pay-as-you-grow beyond that
Same crypto primitives, same audit-log schema, zero source changes to the shipped OSS. Skip if you're running standalone.
Which one is right for me?
How it works
world-model-mcp is an MCP server (stdio or Streamable HTTP) that exposes a temporal knowledge graph backed by SQLite. Every agent turn queries the graph; every code change or correction writes back. On startup the server auto-seeds from your existing codebase; on shutdown it flushes cleanly.
Six databases under .claude/world-model/:
entities.db: files, functions, classes, symbolsfacts.db: semantic facts with provenance + confidencerelationships.db: dependencies, calls, importsconstraints.db: learned rules the agent must respectsessions.db: per-session context trackingevents.db: immutable event log (audit chain when opted in)
Full architecture with diagrams in docs/ARCHITECTURE.md.
Configuration
Environment variables (all optional):
Full configuration reference in docs/CONFIGURATION.md.
Privacy and Security
- Telemetry is off by default. If you opt in with
WORLD_MODEL_TELEMETRY=on, aggregated install-level metrics ship toetch.systems/api/telemetry/ingest(endpoint URL, no source code, no prompts, no PII). Right-to-erasure supported viaDELETE /api/telemetry/install/{install_id}. - No
ANTHROPIC_API_KEYis required for core operation. Some optional features (Coach-Player Layer 3 verification, LLM-backed reranking) use the API if a key is provided. Without it, everything else works. - Report a security issue: email [email protected]. PGP key on request.
Full write-up in docs/PRIVACY.md.
Contributing
Contributions are welcome. See CONTRIBUTING.md for development setup, coding standards, adding language support, writing tests, and submitting PRs.
Areas where help is especially wanted:
- Language parsers (Go, Rust, Java, C++)
- Additional MCP-client adapters
- Framework integrations (LangGraph, CrewAI, AutoGen, LlamaIndex; starter shims exist in the hosted repo)
- Benchmark contributions in
benchmarks/
Please read CLA.md before your first PR.
License
MIT License. Free for commercial and personal use.
Links
- Full version history: CHANGELOG.md
- Documentation: docs/
- Hosted service: etch.systems
- Benchmarks: benchmarks/ + coding-agent-memory-benchmark
- Support: [email protected]
- Zenodo (formal citation): DOI 10.5281/zenodo.20834508
來源:README.md,提交 5e14e4b
工具
0版本歷史
1- v0.15.5最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Model 整合

model.tools — Zero-Auth Agent Utilities
tools.model官方發布者
零認證遠端工具伺服器,讓代理程式讀取一次性信箱驗證碼、保存檢查點、接收 Webhook、排定喚醒、取得任務回執,並把網頁轉成 Markdown。
NLP.COM.AI Open Model Catalog
ai.com.nlp官方發布者
搜尋精選的開放權重AI模型發布、授權條款、架構和原始來源。AI 翻譯

Hologram Model Hub
foundation.uor.hub官方發布者
一個遠端 MCP 伺服器,讓助理搜尋開放模型索引,並取得附有 SHA-256 校驗值的下載連結。

ModelLens
由 GitHub 帳號 Greatbeing 發布
探測相容於 OpenAI 的模型閘道,依實測延遲與成功率為模型排名,並推薦該用哪個模型。

Bedrock Multi-Model
由 GitHub 帳號 Sagargupta16 發布
本機 MCP 伺服器,把 AWS Bedrock 的文字、影像、影片與嵌入模型包裝成九個工具,讓助理可以提問、比較與評審模型。