# Kenfold

> Self-hosted shared memory for AI agents.

- **URL**: https://followmcp.com/en/servers/kenfold
- **Category**: Dev Tools
- **Origin**: Community
- **Stars**: 65
- **FMRS Score**: 66/100 (Grade C)
- **Source**: https://github.com/jeonjw85/kenfold
- **Transports**: stdio (local process), Streamable HTTP
- **Runtimes**: Docker
- **Auth**: API key / credential required

## Overview
Kenfold is a self-hosted MCP server for shared memory across Claude Code, Codex, OpenCode, ChatGPT, and local models. It uses PostgreSQL and pgvector and supports provenance, code references, agent handoffs, hybrid search, and optional session-summary extraction. The documentation says public benchmark validation is incomplete.

## Best for
- Individuals or teams who want self-hosted memory shared across agents.
- Developers willing to maintain Docker Compose, PostgreSQL, and access credentials.

## Not for
- Users who need a managed memory service or a ready-to-use public endpoint.
- Users who require completed public benchmark validation.

## Required permissions
- HTTP MCP access requires an API key; remote OAuth clients require owner approval and can be granted read-only or read-write access.
- Every approved API key and OAuth client can read all memory; the service has a single-owner model.
- When session hooks are enabled, Claude Code or Codex hooks load repository context and record a local session log for summarization.

## Risks
- Memories are plain text; exports include memory history and provenance and should be protected like the database.
- Remote exposure requires an HTTPS tunnel or TLS reverse proxy; Kenfold does not provide TLS itself.
- The pattern-based secret filter cannot catch every credential. Automatic extraction adds risk from session content; preferences still require review.
- Each service key or approved client can read all memories. Protect credentials and revoke them when no longer needed.

## Client config (JSON)
```json
{"mcp_servers":{"kenfold":{"url":"http://127.0.0.1:7077/mcp","bearer_token_env_var":"KENFOLD_CODEX_KEY"}}}
```

## Tools (6)
- `get_context`: Load preferences, a pending handoff, recent session summaries, project knowledge, and relevant memories.
- `remember`: Store a durable memory, optionally superseding an older one.
- `recall`: Search shared memory in natural language.
- `handoff`: Leave a note for the next agent or session.
- `resume`: Pick up the latest handoff and record who resumed it.
- `forget`: Soft-delete a memory.
