原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

GrayMatter

作者:angelnicolasc版本 0.16.4i★ –i–
注册名称io.github.angelnicolasc/graymatter

安装

概览

作者提供的说明(英文原文)

Persistent agent memory as a single Go binary: knowledge graph, TUI observability, zero infra.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: –
  • 传输方式:
  • 分类: 搜索与 AI 记忆

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

作者没有在注册中心列出安装信息。请查看下方作者的 README。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 angelnicolasc 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“搜索与 AI 记忆”中的其他服务器比较i

  • 星标数多于此分类中其他 5688 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 5688 个服务器的 35% 更新
  • 基础检查结果等于或优于此分类中其他 5688 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

GrayMatter 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.16.4)于2个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。

有什么可以替代它?

同一分类中有:Context7, Codebase Memory, Exa

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Context7

Up-to-date docs for AI agents

作者:upstash广泛使用↓ 97.3万/周★ 6.4万前天更新

电脑或云端

Codebase Memory

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

作者:DeusData广泛使用↓ 1.8万/周★ 4.8万22天前更新

在你的电脑上运行

Exa

Connect AI agents to Exa for web search, content fetching, and multi-step research.

作者:exa-labs正在增长★ 52132个月前更新

在云端运行✓ exa.ai

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

GrayMatter

AI agents forget everything between sessions. GrayMatter gives them persistent memory, a self-building knowledge graph, and cuts context tokens by 90%.

One binary. Drop it in. Run it. No Docker, no databases, no config files, no cloud accounts, no bullshit.

General-purpose MCP server. Zero vendor lock-in.

Works with Claude Code, Cursor, Codex, OpenCode, Antigravity — and any MCP-compatible client.

Also a plain Go library if you don't use MCP.

Free. Offline. No account required.


Why

Every AI agent is stateless by default. Each run re-injects the full conversation history — and that history grows linearly. Two prompts in and you've already burned half of your daily quota.

That's not just a memory problem. That's a money and performance problem.

Mem0, Zep, Supermemory solve this — but they're Python/TypeScript-only and require a running server. The Go ecosystem has no production-ready, embeddable, zero-dependency memory layer for agents.

That gap is GrayMatter.

~90% reduction in context tokens — versus full-history injection.

Remembers what a sliding window forgets: facts planted 96 sessions back come back 83% of the time.

Context quality improves over time as consolidation surfaces only what matters.

No Docker. No Redis. No API key required for storage.

Drop it in once. It auto-connects to Claude Code, Cursor, Codex, OpenCode, Antigravity — any MCP-compatible client picks it up automatically.


Knowledge Graph

Your agent doesn't just remember facts — it builds a map of how they connect.

Run the daemon with --kg and every consolidation cycle extracts typed entities (person, organization, project) and links the ones that appear together. No manual tagging. No configuration. The graph builds itself from ordinary use.

Every edge carries receipts : the fact IDs that produced it.

Export to Obsidian with one command — entities become notes,

connections become wikilinks, and the whole graph renders natively.

graymatter daemon run --kg    # that's it — the graph builds itself

The graph as one self-contained page — inline force-directed SVG, zero external assets, works offline. Hover any edge to see the fact IDs that produced it:

graymatter kg render --out graph.html

graymatter kg render --out graph.dot # Graphviz, for your own layout graymatter doctor --graph --html # analytics + this render in one go

Watch it build, one frame per session:

scripts/kg-timelapse.sh    # deterministic corpus -> frames -> GIF

or anywhere: scripts/Dockerfile.kg-timelapse


Observability

You can't improve what you can't see.

graymatter tui opens a memory workbench with six views:

ViewPurpose
MemoryBrowse namespaces, filter active/retired/alias facts, inspect provenance, add, revise, retire and pin exact facts
RecallInspect ranking receipts without incrementing access counts or learning aliases
ActivityInspect harness runs and checkpoints; confirm before stopping a running session
GraphFollow connected entities and open recorded supporting facts
UsageSwitch between subscription limits and API spend, with separate session context and source status
StatusInspect memory aggregates, embedding observations and configured providers

Press 1–6 to switch views, / for the command palette, n for namespaces, f to filter, Tab to move focus, and ? for contextual controls. Memory opens first. Narrow terminals show one pane at a time; larger terminals show the list and inspector together. --theme dark|light|terminal and optional --mouse adapt the workbench to your terminal. --read-only prevents memory and session mutations; it requires an existing store and either a running daemon or explicit --no-daemon.

Usage stays available in the footer as well as its own view. Limits are reported per account and window; API costs retain currency, period, source and whether they are reported or estimated. Missing data remains unavailable, and failed refreshes keep the last observation marked stale. No account is connected automatically. See the workbench guide and Usage setup.

graymatter doctor --graph extends visibility to the knowledge graph itself: hubs by degree, articulation points, orphans, and a declared connectivity ratio — printed or emitted as JSON.


What GrayMatter gives you

Persistent memoryFacts survive across sessions. Recall by meaning, not just keyword
90% token reductionTop-8 relevant facts instead of full-history injection
Automatic hooksClaude Code injects routine recall every turn; MCP remains available for writes and focused searches (graymatter hooks install)
Receipts, not vibesrecall --explain returns why each fact ranked: per-signal ranks, fused score, provenance
Knowledge graphTyped entities and co-mention edges, auto-populated from ordinary use
Self-curationmemory_reflect lets the agent add, update, forget, and link its own memories
Context blockProjects top facts into CLAUDE.md / AGENTS.md inside a token budget (context-sync)
Free auditordoctor --audit measures tokens, duplicates, staleness, and marker conflicts in any instruction file
Deterministic decay30-day half-life; facts fade when nothing touches them. Tombstones, never deletes
Single binary~10 MB static. No Docker, no Redis, no config files, no cloud accounts

Quick start

Install and see it working in under a minute — no API keys, no Ollama:

go install github.com/angelnicolasc/graymatter/cmd/graymatter@latest

graymatter demo # offline sample store, then the workbench opens graymatter init # wire YOUR project: MCP config + memory block graymatter init --hooks # Claude Code: memory injected every turn graymatter doctor # read-only observations of local setup artifacts

Standard doctor does not write a probe, start a daemon, execute a binary on PATH, or test whether the data directory is writable. Its config checks find references in files; they do not prove which settings a client loaded. In JSON, ok means no check failed, while readiness: not_evaluated keeps readiness separate from the observations. The --health, --graph, --audit, and --embeddings modes have separate contracts; graph rendering can write HTML.

graymatter init --global still performs that normal setup in the current directory. It additionally installs the managed memory instructions in Claude Code and OpenCode's home-scoped instruction files. It does not globalize project-scoped MCP configs. If Claude's MCP server is already registered at user scope and the instructions are already available globally, you do not need to repeat local client setup in each repository. For a new user-scoped Claude MCP registration, run once:

claude mcp add --scope user --transport stdio graymatter -- graymatter mcp serve

To prepare only the current project's memory directory before a session, use graymatter init --store-only (available since v0.20.0). It creates .graymatter/MEMORY.md if needed and leaves an existing regular .graymatter/gray.db untouched. It does not write client configs, instructions or hooks, change PATH, open the database, or verify runtime health. If neither leaf is regular, symlink or other nonregular MEMORY.md/gray.db entries cause an error; use --dir to select the real data directory. You can repeat it safely:

graymatter init --store-only --quiet

For launchers that find the Git checkout or worktree root before running this command, see the Claude Code examples. Global hooks are optional (graymatter hooks install --scope global) and skip unprepared directories. MCP can itself create gray.db when it starts, even without init --store-only; this command does not prevent that behavior. Project-scoped clients still need their own MCP config. Codex is the exception in the table below because its MCP config is already home-scoped.

For a new, opt-in guarded Claude user registration, use --no-create and prepare each selected checkout before connecting:

claude mcp add --scope user --transport stdio graymatter -- graymatter mcp serve --no-create

cd /path/to/selected/project graymatter init --store-only --quiet

Reconnect the MCP client after preparation. --no-create is not added to existing entries by init; update a custom registration deliberately. It requires a regular gray.db, or a regular MEMORY.md when the database is absent. It is neither a database health check nor a read-only mode: an accepted server can create and write runtime files. Hooks and MCP reject a symlink, directory, or other nonregular gray.db even in the default eager mode. For a custom store, use the same absolute --dir for preparation, MCP, and hooks. Before downgrading to a binary without --no-create, remove the flag from the registration; an older binary rejects it instead of retrying with eager creation.

MCP stdio and hooks now select one project root per invocation. With an omitted --dir, they use that root's .graymatter directory; an explicit relative --dir is instead relative to the process working directory. If a previous process-directory store contains data at a different location, select the intended store explicitly rather than moving it automatically. See project routing and migration for worktree, hook namespace, custo

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx