Graphiti Local

io.github.renezander030由 GitHub 帳號 renezander030 發布v0.10.0更新於 Oct 24, 2026

Local-first temporal knowledge graph with six read-only MCP tools and human-reviewed writes.

已驗證STDIO僅桌面資料庫知識與記憶

概覽

AI 產生的概覽

本地優先的時序知識圖譜,為助理提供六個唯讀記憶工具,更新提案需人工審核後才會套用。

可以做什麼
透過六個唯讀 MCP 工具或 kg 命令列工具,從本地時序知識圖譜擷取專案決策與事實,預設回傳目前事實,也可明確檢視歷史版本。將 Markdown、文字或 JSONL 匯入圖譜,大型文件依穩定邊界切分,並以回執與失敗日誌記錄實際寫入內容。提出圖譜更新提案,提案留在獨立佇列中,直到人工審核並套用,可標記為接受、拒絕或有爭議,並產生僅含已接受事實的校驗和封存快照。以內建小型合成圖譜執行示範,僅靠關鍵字檢索,無需模型或資料庫設定。
適用情境
當你希望代理回想本地專案決策與事實,且任何寫入前都需要明確人工審核時使用。若需要代理透過 MCP 直接寫入,或想要無需本地設定的託管服務,則不適合。
執行需求
本地 Python 環境,需安裝並執行 uv 與 Ollama;安裝過程下載需要網路連線。透過環境變數 GRAPHITI_LOCAL_CONFIG、KG_WORKSPACE_DIR 與 KG_LADYBUG_PATH 進行設定。擷取需拉取 Ollama 模型 qwen2.5:7b 與 nomic-embed-text。本地設定無需 Docker 或雲端 API 金鑰。
安裝前請注意
模型擷取可能出錯,應檢查回傳的事實與有效時間戳。寫入需經審核佇列並人工核准後才套用,還原命令會拒絕未決決定。多使用者情境下依群組設定 Ladybug 檔案與權杖,授予某群組的權杖不會開啟其他群組的檔案。本專案是建構於 Graphiti 的獨立社群專案,與 Zep 無關。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Graphiti Local,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

[Graphiti Local]

Graphiti Local

Local memory for your agents. You approve what they learn.

Retrieve project decisions through six read-only MCP tools or the kg CLI. Proposed updates stay in a separate queue until a human approves and applies them. Ollama handles local inference; embedded LadybugDB stores the graph. No Docker or cloud API key is needed for the local setup.

[42-second synthetic memory demo]

Captured output excerpts with pauses condensed. Measured results and limitations.

Try it in one command

bash
uvx --from git+https://github.com/renezander030/graphiti-local kg-demo

Answers a question against a small synthetic graph shipped with the package. No Ollama, no model downloads, no database setup: retrieval runs on keywords alone, so nothing contacts a model. Ask your own question by passing it as an argument.

This is the read path only. Building a graph from your own text needs extraction, which needs a model, and that is the full setup below.

Try it locally

Install uv and Ollama, then start Ollama. Setup downloads need internet access. Run these commands in bash or zsh:

bash
git clone https://github.com/renezander030/graphiti-local.gitcd graphiti-localuv sync --frozenollama pull qwen2.5:7bollama pull nomic-embed-textexport GRAPHITI_LOCAL_CONFIG="$PWD/config/ollama.example.yaml"export KG_WORKSPACE_DIR="$PWD/workspace/local-demo"export KG_LADYBUG_PATH="$KG_WORKSPACE_DIR/graph.ladybug"uv run --frozen kg-ladybug-setup --database "$KG_LADYBUG_PATH" --applyuv run --frozen kg doctoruv run --frozen kg-ingest examples/local_memory_demo.jsonl --applyuv run --frozen kg ask "Which database does Aurora Analytics use?" example

The synthetic example returns DuckDB. Follow the complete walkthrough to propose PostgreSQL, review and apply that update, and retrieve it from an MCP client. Model extraction can be wrong; inspect the returned facts and validity timestamps.

To review extraction before it touches the configured graph, run kg-ingest INPUT --review-output review.jsonl, inspect the snapshot, and mark every fact in the generated review.jsonl.review.jsonl file as accept, refuse, or contested. The printed restore command refuses unresolved decisions and promotes a checksum-sealed snapshot containing accepted facts only. Searches return current facts by default; kg ask --history is the explicit historical view.

kg-ingest also accepts a Markdown/text file or a directory tree directly. Large documents split at stable text boundaries. Transient writes retry with one stable episode id; ingest-receipts.jsonl and ingest-failures.jsonl in the workspace show exactly what landed and what still needs attention.

Multiple users on Ladybug

Give each user a group, and each group its own Ladybug file:

yaml
graph:  groups: [alice, bob]database:  provider: ladybug  ladybug:    layout: per-group          # default: single, one file for every group    directory: ./workspace/groupsserver:  transport: streamable-http  auth:    tokens:      - {name: alice, token: "${ALICE_TOKEN}", groups: [alice]}      - {name: bob, token: "${BOB_TOKEN}", groups: [bob]}

Each file is named by the SHA-256 of its group, so no group id can point outside the directory. Reads, kg ask and the drain open only the file of the group they address; a token granted alice never opens Bob's file. A read names one group, or the token's single group is used. For a tenant boundary inside one database server, use FalkorDB or Neo4j.

Is it a fit?

Use it for local agent memory with explicit human review. Skip it if you need agents to write through MCP or want a hosted service without local setup. FalkorDB and Neo4j are also supported.

If this helps your workflow, star the repository and share your setup result.

Maintained by René Zander, who builds context layers for AI agents on temporal knowledge graphs.

Independent community project built on Graphiti, not affiliated with or endorsed by Zep. Apache-2.0.

來源:README.md,提交 cce3cbc

工具

0
SourceWeft 曾在隔離沙箱中以無憑證方式啟動該軟體包一次,以列出其工具,但未能完成:伺服器未能啟動。

版本歷史

7
  1. v0.10.0最新Oct 23, 2026
  2. v0.9.0Oct 16, 2026
  3. v0.8.0Oct 16, 2026
  4. v0.7.0Oct 9, 2026
  5. v0.6.0Sep 25, 2026
  6. v0.5.0Sep 23, 2026
  7. v0.4.1Sep 18, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分