Best for
- Individuals or teams that want local or self-hosted cross-session memory for Go agents.
- Users who want persistent memory through an MCP client and can manage a local data store.
GrayMatter is a local-first persistent memory MCP server distributed as a single binary, with a Go library also available. It supports cross-session fact memory, hybrid retrieval, revisions, and an optional knowledge graph; users manage its configuration and local data. The project publishes token-efficiency and inference-cost benchmarks, but those results are not guarantees for every workload.
Strongest · Documentation 16/20 Weakest · Reliability 10/20
Static review · not runReviewed 2026-11-29
Read the FMRS scoring method →Runtime:Prebuilt binary
OPENAI_API_KEY
Optional OpenAI embeddings API key; obtain it from your OpenAI account.
VOYAGE_API_KEY
Optional Voyage AI embeddings API key; obtain it from Voyage AI.
The README shows installation with go install github.com/angelnicolasc/graymatter/cmd/graymatter@latest, followed by graymatter init to configure supported clients, or graymatter mcp serve to start the MCP server over stdio. It also documents prebuilt binaries and package manager options.
Confirm GrayMatter’s memory tools appear in your MCP client’s tool list. Ask it to remember a fact, then search for that fact to confirm the connection works.
Once connected, you can ask your AI assistant things like:
Listed from the project's documentation, not tested by this site.
GrayMatter is a single Go binary that can run as an MCP server or be used as a Go library to store and retrieve agent memories across sessions. It supports hybrid retrieval, memory revisions, a knowledge graph, and a terminal workbench. The project reports up to 90% fewer context tokens per query after 100 sessions.
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 c1b9b77cfa40 Data synced 2026-12-05 Read the FMRS scoring method Markdown