# Keel

Keel turns product events into a tenant-specific context graph that agents can share. Use it when several agents need to read and update the same context.

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

## What it does

Keel builds a context graph for each tenant from structured product events. A tenant can represent a customer, household, or team. Facts retain their source and time details; agents access context, history, search, relationships, and annotations through five MCP tools.

A cartridge describes the domain, including its ontology, event catalog, and memory policies. You can run the server with `uvx keel-context`; setup takes values for `KEEL_DB` and `KEEL_AGENT`. Without those values, the installation command lacks its database and agent configuration.

## Requirements
- Needs: Python and uv (commands run via uvx)
- Environment variables: `KEEL_DB`, `KEEL_AGENT` — 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 --env KEEL_DB=<KEEL_DB> --env KEEL_AGENT=<KEEL_AGENT> --transport stdio keel -- uvx keel-context
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from keel-context <command>

### Codex

**Platform CLI**
```bash
codex mcp add keel --env KEEL_DB=<KEEL_DB> --env KEEL_AGENT=<KEEL_AGENT> -- uvx keel-context
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from keel-context <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "keel": {
            "command": "uvx",
            "args": [
                "keel-context"
            ],
            "env": {
                "KEEL_DB": "<KEEL_DB>",
                "KEEL_AGENT": "<KEEL_AGENT>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from keel-context <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "keel": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "keel-context"
            ],
            "env": {
                "KEEL_DB": "<KEEL_DB>",
                "KEEL_AGENT": "<KEEL_AGENT>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from keel-context <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e KEEL_DB=<KEEL_DB> -e KEEL_AGENT=<KEEL_AGENT> keel uvx keel-context
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from keel-context <command>

## When to use it
- share product context across multiple agents
- inspect how a fact changed over time
- find entities by text, attributes, or meaning
- trace connections between entities up to three hops
- store an agent's conclusion with evidence and scope

## Example prompts
- Show the current context for `unit:MXK-4821`.
- Find how information about `unit:MXK-4821` changed and when it was recorded.
- Save this conclusion with its evidence and scope.

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