Best for
- Individuals or teams who want self-hosted memory shared across agents.
- Developers willing to maintain Docker Compose, PostgreSQL, and access credentials.
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
Static review · not runReviewed 2026-11-29
Read the FMRS scoring method →Runtime:Docker
KENFOLD_CODEX_KEY
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
The API key used by the hook and code-reference sync; create it for the agent in Kenfold.
KENFOLD_PUBLIC_URL
The HTTPS address remote clients use to reach Kenfold; set it after configuring a tunnel or reverse proxy to enable OAuth.
KENFOLD_AGENT
The agent name recorded in stdio mode; set it when the client starts the Kenfold subprocess.
KENFOLD_DATABASE_URL
The PostgreSQL connection address; defaults to the Compose database and usually does not need to be set.
KENFOLD_EMBED_URL
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_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.
{
"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).
{
"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).
Confirm the Kenfold tools appear in Codex's MCP tool list, then call `get_context` to verify the connection and context retrieval.
Once connected, you can ask your AI assistant things like:
No matching tools
Listed from the project's documentation, not tested by this site.
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.
Connect code, docs, and infrastructure in a local knowledge graph.
Docker's official MCP gateway CLI plugin for managing and running MCP servers.
Fast, low-cost structured judgments for agents.
Local call graphs and structural analysis for Go repositories.
Source revision e38e10ace55d Data synced 2026-12-05 Read the FMRS scoring method Markdown