Okf Wiki
БесплатноНе проверенA local OKF-compatible knowledge engine for AI agents. Enables capturing agent conversations, hybrid semantic+keyword search, MCP serving to agents, interactive
Описание
A local OKF-compatible knowledge engine for AI agents. Enables capturing agent conversations, hybrid semantic+keyword search, MCP serving to agents, interactive graph visualization, and OKF bundle export.
README
A local, OKF-compatible knowledge engine for AI agents. Capture your Codex / Claude / Gemini sessions, retrieve them with hybrid semantic + keyword search, serve them to every agent harness over MCP, visualize them as an interactive graph, and export to a portable Open Knowledge Format bundle.
What is this?
Google's Open Knowledge Format (OKF) standardized how to store agent knowledge — markdown files with YAML frontmatter. It deliberately leaves out the hard parts: retrieval, capture, serving, and enforcement.
memvault is that missing engine. Point it at a directory of markdown notes (an OKF bundle) and it becomes a living, queryable, agent-served knowledge base.
| OKF (the format) | memvault (the engine) | |
|---|---|---|
| Storage format | ✅ markdown + frontmatter | uses OKF |
| Retrieval | — (out of scope) | ✅ hybrid semantic + keyword (RRF) |
| Capture | — (BigQuery agent only) | ✅ Codex / Claude / Gemini sessions |
| Serving to agents | — | ✅ one MCP server, every harness |
| Visualize | static viewer | ✅ interactive graph |
| Privacy | unspecified | ✅ secret scrubbing + sensitivity gate |
memvault produces and consumes OKF v0.1 bundles — it rides the standard, it doesn't replace it.
See it
Every page is a node; every cross-link is an edge. Search, filter by type, switch layouts, and read any concept with its backlinks — all in one self-contained HTML file (no server):

Generated from the public demo bundle in examples/demo with
memvault viz. Your own graph stays local.
Quickstart
# install (from a clone)
pip install -e . # add ".[neural]" for real multilingual embeddings
# add ".[yaml]" for robust YAML frontmatter
# point at your knowledge bundle (default: ~/llm-wiki)
export MEMVAULT_WIKI=~/llm-wiki
# 1. capture your agent conversations (Codex / Claude Code / Gemini)
memvault ingest
# 2. build the semantic index
memvault index
# 3. search (hybrid semantic + keyword)
memvault search "what did I decide about the auth refactor"
# 4. visualize -> writes viz.html you can open in any browser
memvault viz
# 5. export a portable OKF bundle
memvault export --out ./okf-bundle
# 6. serve to your agents over MCP (stdio)
memvault serve
Try it on the bundled demo with no setup:
memvault viz --wiki examples/demo --out demo.html && open demo.html
Wire it into your agents (one command)
memvault registers itself into every harness it detects — registering the MCP server and a wiki-first routing block, so your agents actually consult the wiki:
memvault install # detect + wire (backs up every file it touches)
memvault install --check # show wiring status
memvault install --dry-run # preview, change nothing
memvault install --uninstall
| Harness | Capability | Enforcement |
|---|---|---|
| Claude Code | MCP server + .mcp |
SessionStart / UserPromptSubmit hooks inject wiki context |
| Codex CLI | [mcp_servers.memvault] in config.toml |
AGENTS.md routing (+ opt-in user_prompt_submit hook) |
| OpenCode | drop-in plugin/llm-wiki.js (coexists with omo) |
AGENTS.md routing |
| anything MCP | memvault serve (stdio) |
AGENTS.md routing |
Or register the stdio server manually anywhere MCP is supported:
{ "command": "memvault", "args": ["serve", "--wiki", "/path/to/bundle"] }
How it works
~/.codex ~/.claude ~/.gemini markdown bundle (OKF)
\ | / |
▼ ▼ ▼ ▼
ingest (sessions) ───────────────► raw/manifests/*.jsonl
│
index (hashing or neural embeddings)
│
┌──────────────┬───────────────┬───────┴────────┐
▼ ▼ ▼ ▼
search serve (MCP) viz export (OKF)
hybrid RRF every harness interactive graph portable bundle
- Capture — reads only visible chat turns; tool output, attachments, and credential-looking strings are skipped or scrubbed; sensitive sessions are reduced to counts. Incremental: unchanged files are not re-read.
- Retrieve — dense cosine over an embedding index fused with a lexical
scorer via Reciprocal Rank Fusion. Default embedder is a dependency-free numpy
hashing encoder (Korean + English, offline, deterministic);
pip install ".[neural]"upgrades to a multilingual transformer automatically. - Serve — a pure-stdlib MCP stdio server exposing
wiki_answer_context,wiki_search,wiki_semantic_search, and wiki pages asmemvault://resources. - Visualize / Export — vendored OKF viewer renders the graph;
exportemits a conformant OKF v0.1 bundle (frontmatter mapped, wikilinks normalized,index.mdgenerated).
Configuration
| Setting | Env | CLI | Default |
|---|---|---|---|
| Knowledge bundle root | MEMVAULT_WIKI |
--wiki |
~/llm-wiki |
| Home root (session scan) | MEMVAULT_HOME |
--home |
~ |
Relationship to OKF
memvault is an independent project. It targets the Open Knowledge Format v0.1 specification published by Google Cloud, and bundles OKF's reference viewer (Apache-2.0). It is not affiliated with or endorsed by Google. See NOTICE.
License
Apache-2.0. See LICENSE.
Установка Okf Wiki
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/heonyus/memvaultFAQ
Okf Wiki MCP бесплатный?
Да, Okf Wiki MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Okf Wiki?
Нет, Okf Wiki работает без API-ключей и переменных окружения.
Okf Wiki — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Okf Wiki в Claude Desktop, Claude Code или Cursor?
Открой Okf Wiki на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare Okf Wiki with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
