okf-agent-memory MCP server
Git-native persistent memory for AI coding agents. Implements Google OKF v0.2 with sub-300µs in-memory BM25 search, embedded MCP server, and progressive disclosure. Slashes token bloat by 80% with zero external databases or dependencies. Built in pure Go.
What okf-agent-memory does
Summarised from the project README; check the repository for the latest details.
Features
- Dual-Memory Cognitive Architecture (DMAA): Separates normative push working memory (`AGENTS.md` codex) from semantic pull domain memory (`knowledge/` bundle), completely eliminating prompt bloat.
- Agent Action Grammar (AAG): Ultra-compact, deterministic ASCII micro-syntax saving ~78–85% tokens compared to natural language prompt instructions.
- Blazing Fast Performance (<300µs Search, ~4ms Graph Validation): In-memory BM25 retrieval and bundle validation execute in microseconds without VM spin-up or network roundtrips.
- 100% Git-Native & Zero Vendor Lock-in: Everything is version-controlled plain text. Inspect, audit, and review your agent's memory using standard `git diff` and `git log`. No external database required.
- Zero API Costs for Memory Retrieval: Local lexical BM25 indexing eliminates recurring vector embedding API costs and network roundtrips.
- Built on Google OKF v0.2: Uses the open standard format for agent knowledge with full support for provenance (`sources`), trust tiers (`generated` vs. `verified`), and lifecycle metadata (`status`, `staleafter`).
Repository: okf-memory/okf-agent-memory
Website: https://okf-memory.dev
Stars: ★796
Language: Go
Last updated: 2026-10-12
agent-memoryai-agentsbm25coding-agentsdeveloper-toolsgit-nativegogolangknowledge-baseknowledge-graphllm-memorymarkdownmcpmcp-servermodel-context-protocolokfopen-knowledge-formatpersistent-memory
Website: https://okf-memory.dev
Stars: ★796
Language: Go
Last updated: 2026-10-12
agent-memoryai-agentsbm25coding-agentsdeveloper-toolsgit-nativegogolangknowledge-baseknowledge-graphllm-memorymarkdownmcpmcp-servermodel-context-protocolokfopen-knowledge-formatpersistent-memory
How to install okf-agent-memory
No install config was found in this README. See the repository for setup steps, then follow our guides for Claude Desktop, Cursor or VS Code.
Featured in: Best MCP servers for long-term memory
Maintain this project? Get it featured for free during launch →
Compare with codebase-memory-mcp →
Related Databases MCP servers
codebase-memory-mcp by DeusData · ★46616
High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 langu
Databases
High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 langu
Databases
nightingale by ccfos · ★13354
Open-source, self-hosted alerting for metrics, logs, and databases. Includes a built-in AI agent and MCP server.
Databases
Open-source, self-hosted alerting for metrics, logs, and databases. Includes a built-in AI agent and MCP server.
Databases
code-graph-rag by vitali87 · ★5258
The ultimate RAG for your monorepo. Query, understand, and edit multi-language codebases with the power of AI and knowledge graphs
Databases
The ultimate RAG for your monorepo. Query, understand, and edit multi-language codebases with the power of AI and knowledge graphs
Databases
Weekly MCP digest – new and trending MCP servers in your inbox.