← Back to directory
K

Kenfold

Community
Self-hosted shared memory for AI agents.
Category
Dev Tools #11 of 751
Stars
★ 65 Popular
Transport
stdio (local process) · Streamable HTTP
Runtime
Docker
Credentials
API key / credential required
License
MIT
Last commit
Tools
6
66FMRS · C

The source documents six shared-memory MCP tools and stdio and HTTP access. Kenfold suits users prepared to self-host and manage access. Public benchmark validation remains incomplete.

Strongest · Documentation 17/20 Weakest · Reliability 9/20

Reliability
9/20
Security and permissions
16/20
Maintenance
10/20
Documentation
17/20
Setup experience
14/20
Why each score
Reliability 9/20
The material describes a broad MCP tool set, HTTP and stdio access, database migrations, health checks, and fallback behavior, and claims CI includes builds and tests. This review can only statically assess the supplied README and manifest, so it cannot verify the handshake, tool implementations, or test coverage. Public benchmark validation is also incomplete, so the score remains moderate under static calibration.
Security and permissions 16/20
The material describes API key or OAuth authentication, hashed credential storage, review for preferences and extracted memories, read-only OAuth, a loopback-restricted dashboard with CSRF protection, and TLS proxy requirements for remote deployment. Deductions reflect that every key and approved OAuth client can read all memory, `KENFOLD_AUTH=none` disables authentication, secret filtering is pattern-based, and these controls cannot be independently verified from the supplied material. No evidence of a listed red line was provided.
Maintenance 10/20
The supplied information shows an MIT license, version 0.1.7, a CI badge, upgrade instructions, and an unarchived repository status. It provides no commit history, recent release cadence, issue response, dependency update, or security response channel evidence, so sustained maintenance receives limited credit.
Documentation 17/20
The README gives substantial guidance on installation, client configuration, tool purposes, deployment, security boundaries, backups, configuration, and benchmark limitations. It discloses incomplete public benchmark validation and limits of secret detection. Deductions reflect that dependency and behavior claims are not verified against source, and troubleshooting and security response channel evidence is limited.
Setup experience 14/20
The README provides a Docker Compose quickstart, key creation, and configuration examples for Claude Code, Codex, and OpenCode, as well as remote OAuth and stdio options. Deductions reflect the Docker and database requirements, manual per-client configuration, and the need for an HTTPS tunnel or reverse proxy for remote access. Installation and end-to-end connection were not executed.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessUses the networkConnects to a database

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 and side effects

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

Setup

Before you start

Runtime:Docker

KENFOLD_CODEX_KEY requiredsecret The key used by Codex's HTTP configuration; create it with `make key AGENT=codex` and set it in Codex's startup environment.
KENFOLD_API_KEY optionalsecret The API key used by the hook and code-reference sync; create it for the agent in Kenfold.
Other optional settings (4)
KENFOLD_PUBLIC_URL optional The HTTPS address remote clients use to reach Kenfold; set it after configuring a tunnel or reverse proxy to enable OAuth.
KENFOLD_AGENT optional The agent name recorded in stdio mode; set it when the client starts the Kenfold subprocess.
KENFOLD_DATABASE_URL optional The PostgreSQL connection address; defaults to the Compose database and usually does not need to be set.
KENFOLD_EMBED_URL optional Optional URL for an OpenAI-compatible embeddings service, such as a local Ollama service.

Docker Compose is required. Run make up to start PostgreSQL 18, pgvector, and Kenfold, then run make key AGENT=codex to create a separate API key. Example Codex configuration: {"mcp_servers":{"kenfold":{"url":"http://127.0.0.1:7077/mcp","bearer_token_env_var":"KENFOLD_CODEX_KEY"}}}; ensure that variable is set in Codex's startup environment. Claude Code and OpenCode configuration examples are also documented. For stdio, build the program and configure KENFOLD_AGENT. Remote clients such as ChatGPT and claude.ai need a public HTTPS URL, KENFOLD_PUBLIC_URL, and owner approval of the OAuth client.

.mcp.json
{"mcp_servers":{"kenfold":{"url":"http://127.0.0.1:7077/mcp","bearer_token_env_var":"KENFOLD_CODEX_KEY"}}}

Shown for Claude Code. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "mcp_servers": {
    "kenfold": {
      "url": "http://127.0.0.1:7077/mcp",
      "bearer_token_env_var": "KENFOLD_CODEX_KEY"
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
{
  "mcp_servers": {
    "kenfold": {
      "url": "http://127.0.0.1:7077/mcp",
      "bearer_token_env_var": "KENFOLD_CODEX_KEY"
    }
  }
}

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Check that it works

Confirm the Kenfold tools appear in Codex's MCP tool list, then call `get_context` to verify the connection and context retrieval.

Troubleshooting

  1. Check that the Docker Compose services and database are running, and inspect /healthz and /readyz.
  2. Verify the MCP URL ends in /mcp, the API key is valid, and the key has the intended agent name.
  3. For stdio, check KENFOLD_AGENT, the database connection, and any required KENFOLD_EMBED_URL setting.
  4. For remote access, check KENFOLD_PUBLIC_URL, the HTTPS proxy, the Host allowlist, and OAuth client approval.
  5. Semantic search requires a configured embedding service; without one, the server uses full-text search.

Things to try

Once connected, you can ask your AI assistant things like:

  • Summarize this project's important conventions and save them as a memory.
  • Find our previous discussion about the login flow.
  • Record the current progress for the next agent taking over.

Tools 6

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

Use cases

Share project knowledge and preferences across AI coding tools.
Hand off work to another agent or a later session.
Search prior session summaries, project memories, and code-related facts.

Supported clients

Claude Code
Codex
OpenCode
ChatGPTPartial support
Claude DesktopPartial support

Listed from the project's documentation, not tested by this site.

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.

Similar servers

Source revision e38e10ace55d Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/kenfold.svg)](https://followmcp.com/en/servers/kenfold)