# khive

khive — an MCP server for Claude Code connects agents to a persistent knowledge graph and task memory. It records typed entities, notes, and dependencies across sessions.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 34 repo stars
- Author: ohdearquant
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/ohdearquant/khive
- Updated: 2026-11-16
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/khive

## What it does

The server maintains agent memory through a local SQLite database or a hosted endpoint. It divides data into three layers: typed graph entities, observation notes with salience scoring, and an immutable event log. Retrieval pairs SQLite FTS5 full-text indexing with vector RRF and breadth-first search graph traversals.

The MCP interface exposes a single `request` tool that dispatches 163 operations grouped into 14 packs. These packs cover GTD task flows, code tools, and Git modifications like commits or branch merges. Compiling the local `kkernel` binary requires a Rust toolchain and builds about 330 crates.

## Requirements
- Needs: a prebuilt binary from the repository releases
- Remote server: `https://khive.ai/v1/mcp`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http khive https://khive.ai/v1/mcp
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add khive --url https://khive.ai/v1/mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "khive": {
            "url": "https://khive.ai/v1/mcp"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "khive": {
            "type": "http",
            "url": "https://khive.ai/v1/mcp"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http khive https://khive.ai/v1/mcp
```

## When to use it
- retain project knowledge and context across coding sessions
- link entities with typed edges and dependency graphs
- retrieve notes using hybrid full-text and vector ranking
- track tasks and assignments with GTD verbs

## Example prompts
- Search the khive knowledge graph for entities linked to the auth module
- Record an architectural decision note about switching to SQLite in khive
- List all pending GTD tasks in the current namespace

## Similar
- [shodh-memory](https://affpapa.org/en/nevibecode/mcp/shodh-memory.md) — MCP server · ★ 322 repo stars
- [NeuroDock Cognitive Graph](https://affpapa.org/en/nevibecode/mcp/neurodock-cognitive-graph.md) — MCP server · ★ 20 repo stars
- [Waggle-mcp](https://affpapa.org/en/nevibecode/mcp/waggle-mcp.md) — MCP server · ★ 46 repo stars
- [yantrikdb-mcp](https://affpapa.org/en/nevibecode/mcp/yantrikdb-mcp.md) — MCP server · ★ 25 repo stars
- [kairn](https://affpapa.org/en/nevibecode/mcp/kairn.md) — MCP server · ★ 13 repo stars
- [alaya-mcp](https://affpapa.org/en/nevibecode/mcp/alaya-mcp.md) — MCP server · ★ 20 repo stars

---
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
