What dnotitia/akb MCP server does
dnotitia/akb MCP server exposes an organizational knowledge base through the Model Context Protocol. Its main unit of organization is the vault, which also serves as the boundary for access control. Vaults contain collections and Markdown documents, alongside structured tabular content and attached files. Documents can reference one another through an explicit URI graph.
PostgreSQL is the primary store for document text, metadata, revisions, and BM25 search data. Dense embeddings are kept in a derived vector index. The architecture supports pgvector by default, with additional vector-store drivers for Qdrant and Seahorse deployments. A lost vector index can be rebuilt from PostgreSQL.
How it works
Agents communicate either directly with the MCP endpoint over Streamable HTTP or through the akb-mcp stdio proxy. Direct clients authenticate with a Bearer token; the proxy handles the local MCP connection and forwards requests to the backend. The server supports modern and legacy MCP protocol adapters, while keeping tool and authorization behavior in a shared core.
Search combines dense semantic retrieval and BM25 lexical matching, fused with reciprocal rank fusion. Source-level deduplication is applied, and agents can narrow results to individual sections with akb_drill_down or use literal grep when exact text matters. PostgreSQL revisions preserve document history, while explicit relations represent links such as depends_on, related_to, and implements.
Writes produce structured events in the PostgreSQL outbox. Deployments configured with Redis can publish those events to the akb:events stream for external consumers such as synthesis, auditing, or document-maintenance jobs. Consolidation and summarization workflows are intended to run outside the core server.
Setup and configuration
The published akb-mcp package can be run with npx akb-mcp. Configure the proxy with the AKB deployment endpoint and a Personal Access Token, then add it to an MCP client. Custom agents can call the backend directly with HTTP POST /mcp/ and a Bearer token.
AKB supports Claude Code, Claude Desktop, Cursor, Windsurf, Cline, Continue, and integrations exposed through VS Code or JetBrains. It also includes agent plugins for Claude Code and Codex. The plugins provide higher-level workflows for importing sources, capturing coding sessions, and connecting Claude Code lifecycle events to a memory vault.
For local-file operations, akb_put_file requires access to the proxy-side filesystem. akb_put_image handles validated inline Markdown images when used with an akb-mcp version supporting that operation. Self-hosted deployments can use Docker Compose or Kubernetes. The public demo is intended for disposable testing: it is wiped and reseeded weekly, and writes should be treated as public and temporary.
Tools and capabilities
akb_list_vaults and akb_create_vault manage vaults.
akb_put, akb_get, akb_update, and akb_delete provide document operations with revision and indexing behavior.
akb_put_file adds file attachments through the proxy; akb_put_image validates inline Markdown images.
akb_create_table stores tabular content associated with documents and supports SQL-oriented access.
akb_browse traverses collections and documents as a tree.
akb_search performs hybrid semantic and BM25 retrieval or literal grep.
akb_drill_down retrieves matching sections rather than only whole documents.
akb_relations reads the knowledge graph represented by document links.
akb_edit supports in-place changes, diffs, and revision history.
akb_grant defines user, organization, and public permission boundaries.
akb_publish publishes content for public access.
Limitations and notes
The demo environment is unsuitable for confidential or durable data. File operations depend on the proxy having access to the relevant local filesystem. AKB provides a read/write storage contract, but recurring summarization, cleanup, or knowledge-gardening behavior must be implemented by external consumers of its event stream. PostgreSQL ACLs enforce vault isolation for SQL access, including cross-vault permission failures.