# GrayMatter

> Local persistent memory for AI agents.

- **URL**: https://followmcp.com/en/servers/graymatter
- **Category**: Dev Tools
- **Origin**: Community
- **Stars**: 490
- **FMRS Score**: 66/100 (Grade C)
- **Source**: https://github.com/angelnicolasc/graymatter
- **Transports**: stdio (local process)
- **Runtimes**: Prebuilt binary
- **Auth**: No credential needed

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

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

## Not for
- Users who need a hosted memory service or cross-project memory federation; the README lists federation as planned work.
- Users who need a general-purpose knowledge-base UI or automatic repository code analysis; the README says GrayMatter is not a knowledge-base UI and does not read source code.

## Required permissions
- Needs read and write access to its configured data directory for the memory database and related local data.
- The MCP client must be able to launch the configured `graymatter mcp serve` command and communicate over stdio.
- If an external embedding provider is configured, its credentials may be needed; keyword-only mode does not require those services.

## Risks
- Memory facts can become stale; the project documents a default 30-day half-life for unpinned facts, while revised or retired records remain as tombstones until pruned.
- Recalled memories are untrusted input and should not be treated as instructions.
- Token savings and inference cost figures are project-reported benchmark results and may vary by task and configuration.
