# akb

akb gives AI agents a Git-backed knowledge base with hybrid search, documents, tables, files, and links between stored objects.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 163
- Author: dnotitia
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/dnotitia/akb
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/mcp/akb

## What it does

akb is an MCP server for shared agent memory. It uses a PostgreSQL-native revision store for documents, tables, and files, then combines semantic retrieval with keyword search. A URI graph records relations between objects, so an agent can follow linked context as well as search terms.

The server exposes operations for writing, finding, browsing, and inspecting relations. The repository also ships plugins for Claude Code and Codex: `akb-wiki` imports sources and answers from the vault with citations, `akb-sessions` turns a coding session into structured notes, and `akb-claude-code` connects session hooks to AKB memory. Setup requires `AKB_MCP_URL` and `AKB_PAT`; without the server URL and token, the client cannot be configured.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `AKB_MCP_URL`, `AKB_PAT` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add akb -e AKB_MCP_URL=<AKB_MCP_URL> -e AKB_PAT=<AKB_PAT> -- npx -y akb-mcp
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add akb --env AKB_MCP_URL=<AKB_MCP_URL> --env AKB_PAT=<AKB_PAT> -- npx -y akb-mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "akb": {
            "command": "npx",
            "args": [
                "-y",
                "akb-mcp"
            ],
            "env": {
                "AKB_MCP_URL": "<AKB_MCP_URL>",
                "AKB_PAT": "<AKB_PAT>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "akb": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "akb-mcp"
            ],
            "env": {
                "AKB_MCP_URL": "<AKB_MCP_URL>",
                "AKB_PAT": "<AKB_PAT>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e AKB_MCP_URL=<AKB_MCP_URL> -e AKB_PAT=<AKB_PAT> akb npx -y akb-mcp
```
Replace <…> with your own values

## When to use it
- store project documents and files in a shared knowledge base
- retrieve notes with semantic and keyword search
- connect related records through a URI graph
- capture coding sessions as reports and follow-up tasks
- import content from a local file or external source

## Example prompts
- Search the knowledge base for authentication decisions and show the related documents.
- Save this coding session as a report with decisions, ideas, and follow-up tasks.
- Import `README.md` into the vault and answer questions from it with citations.

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47392
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
