Bietet einen gemeinsamen lokalen Speicher für Coding-Agents mittels SQLite, semantischer Suche und verknüpften Entitäten, um den Projektkontext über verschiedene Sessions hinweg beizubehalten.
Auch bekannt als sonic182/graphmem, @sonic182/graphmem
- Stars
- 9
- Tools
- —
- Downloads, 30 Tage
- —
- Neueste Version
- 0.15.2
- Letzter Commit
- 8. Nov. 2026
- Lizenz
- MIT
Was ist Graphmem MCP?
Bietet einen gemeinsamen lokalen Speicher für Coding-Agents mittels SQLite, semantischer Suche und verknüpften Entitäten, um den Projektkontext über verschiedene Sessions hinweg beizubehalten.
Zusammenfassung generiert aus dem README des Projekts
Über Graphmem MCP server
Graphmem bietet ein System für gemeinsamen lokalen Speicher, das speziell dafür entwickelt wurde, dass Coding-Agents den Projektkontext über verschiedene Sessions und Tools hinweg beibehalten können. Es nutzt SQLite-Storage und lokale semantische Suche, um verknüpfte Entitäten zu speichern, wodurch mehrere MCP clients wie Claude Code, Codex, OpenCode und pi auf denselben Datenspeicher zugreifen können. Dieses Setup stellt sicher, dass Entscheidungen, die während einer Coding-Session getroffen wurden, dauerhaft gespeichert und später wieder abrufbar bleiben.
Nutzer können den Server via npm oder durch Herunterladen plattformspezifischer Binaries installieren. Das System nutzt standardmäßig das aktuelle Git-Repository für das Memory-Scoping, unterstützt aber auch einen globalen Scope. Entwickler können Memories über ein CLI oder via MCP tools verwalten. Der Server speichert alle Daten im Verzeichnis ~/.graphmem, sofern die Umgebungsvariable GRAPHMEM_HOME nicht geändert wurde.
Neben dem Memory-Management enthält der Server optionale Tools zur Code-Navigation. Diese Tools erlauben es Agents, Symbol-Definitionen zu finden, Datei-Imports aufzulisten, Code-Outlines zu generieren und Symbole über verschiedene Git-Revisionen hinweg zu vergleichen. Diese spezifischen Code-Features funktionieren direkt auf Git-Checkouts, ohne dass ein Embedding-Modell benötigt wird.
Was du damit machen kannst
- 1Projektentscheidungen persistierenWeise einen Agent an, eine spezifische Coding-Convention zu speichern, damit sie in zukünftigen Sessions berücksichtigt wird.
- 2In vergangene Kontexte suchenFrage die KI nach spezifischen Informationen oder früheren Anweisungen, die im lokalen Memory gespeichert sind.
Geschrieben aus dem README des Projekts. Jeder Use Case wurde gegen ein Zitat daraus geprüft.
So installierst du Graphmem MCP
Formate geprüft am 10. Nov. 2026Zu Cursor hinzufügenZu Goose hinzufügenGraphmem MCP in Claude Code installieren
$ claude mcp add graphmem -- npx -y @sonic182/graphmemGraphmem MCP in Cursor installieren
~/.cursor/mcp.json
{
"mcpServers": {
"graphmem": {
"command": "npx",
"args": [
"-y",
"@sonic182/graphmem"
]
}
}
}Graphmem MCP in VS Code installieren
.vscode/mcp.json
{
"servers": {
"graphmem": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@sonic182/graphmem"
]
}
}
}Graphmem MCP in VS Code CLI installieren
$ code --add-mcp '{"name":"graphmem","type":"stdio","command":"npx","args":["-y","@sonic182/graphmem"]}'Graphmem MCP in Claude Desktop installieren
claude_desktop_config.json
{
"mcpServers": {
"graphmem": {
"command": "npx",
"args": [
"-y",
"@sonic182/graphmem"
]
}
}
}Graphmem MCP in Codex installieren
$ codex mcp add graphmem -- npx -y @sonic182/graphmemGraphmem MCP in Codex config.toml installieren
~/.codex/config.toml
[mcp_servers.graphmem] command = "npx" args = ["-y", "@sonic182/graphmem"]
Graphmem MCP in Gemini CLI installieren
$ gemini mcp add -s user graphmem npx -- -y @sonic182/graphmemGraphmem MCP in Gemini settings.json installieren
~/.gemini/settings.json
{
"mcpServers": {
"graphmem": {
"command": "npx",
"args": [
"-y",
"@sonic182/graphmem"
]
}
}
}Automatisierte Checks
Geluften am 13. Nov. 2026Vollständiger Bericht →Unsere automatisierten Checks bestanden. Das ist kein Security-Audit: Lies den Code und gib dem Server nur den minimal notwendigen Zugriff. Wie die Checks funktionieren
- Source Repository verknüpft und erreichbarsonic182/graphmem is public and reachablegithub.com/sonic182/graphmem ↗Bestanden
- Paket nennt dieses Repository als Quelle@sonic182/graphmem names sonic182/graphmem as sourcenpmjs.com/package/@sonic182/graphmem ↗Bestanden
- Build-Provenienz (Sigstore-Attestierung)No build attestation published for this releaseNicht geprüft
- Open Source Lizenz (OSI)MITspdx.org/licenses/MIT.html ↗Bestanden
- Commit oder Release im letzten JahrLast commit or release 2026-11-09github.com/sonic182/graphmem ↗Bestanden
- OpenSSF ScorecardNicht geprüft
- Package-Name ähnelt keinem populären PackageNo popular package one edit away from @sonic182/graphmemBestanden
- Keine kritischen Advisories im Paket oder seinen Abhängigkeiten1 resolved dependencies checked; no critical advisoryosv.dev ↗Bestanden
- Keine versteckten Anweisungen an das Modell0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersBestanden
- Destruktive Tools sind markiertNicht geprüft
- Remote-Endpoint beantwortet den MCP-HandshakeNicht geprüft
README
Auf GitHub ansehenGraphmem

Shared, local memory for coding agents. Keep project decisions across sessions and tools with SQLite storage, local semantic search, and linked entities. Claude Code, Codex, OpenCode, pi, and other MCP clients can share the same store.
Optional code tools find definitions, outline files, list imports, and compare symbols between Git revisions.
Install
npm install --global @sonic182/graphmem
gmem-install
gmem version
The npm package contains launchers. gmem-install explicitly downloads and
verifies the matching CPU binary, or reuses a working native gmem on your
PATH. Package installation itself downloads no binary. After upgrading the
package, run gmem-install again; separately installed binaries are not replaced.
MCP clients that launch servers with npx can run npx -y @sonic182/graphmem mcp.
The graphmem command downloads and verifies the binary on its first run; gmem
never downloads anything on its own.
Alternatively, download your platform's archive from
GitHub Releases, verify
it against SHA256SUMS, and put the extracted executable on your PATH.
Linux releases require glibc 2.39 and OpenSSL 3. For other systems or CUDA,
build from source.
Use it with your coding agent
Plugins include MCP registration, skills, and guidance to recall context before work and save durable decisions afterward.
| Agent | Install |
|---|---|
| Claude Code | claude plugin marketplace add sonic182/graphmem, then claude plugin install graphmem@graphmem |
| Codex | codex plugin marketplace add sonic182/graphmem, then codex plugin add graphmem@graphmem |
| OpenCode | opencode plugin @sonic182/graphmem --global |
| pi | pi install npm:@sonic182/graphmem |
Claude Code and Codex need gmem and Node.js on PATH. In Codex, trust the
Graphmem hooks in /hooks and start a new thread. Pi offers binary setup on first
startup; OpenCode prints an installer command if needed.
See plugin setup and troubleshooting.
For another MCP client, configure it to launch your installed binary:
{
"mcpServers": {
"graphmem": {
"command": "/absolute/path/to/gmem",
"args": ["mcp"]
}
}
}
CLI
gmem remember "Use nextest for integration tests" \
--type convention --scope repo:/absolute/path/to/project
gmem search "integration tests"
gmem tokens --over-limit # memories the embedding model truncates
gmem tui
gmem mcp
Memories default to the current Git repository; git must be on PATH.
Outside a repository, the default scope is global. Reads always include global
memories; explicitly select other projects with --scope (CLI) or scopes (MCP).
Writes are limited to the current repository and global, including updates and
deletions. The MCP list_scopes tool discovers scopes and their write permissions;
list pages through the memories of a selection.
Data lives in ~/.graphmem; set GRAPHMEM_HOME to use another directory.
CLI reference · MCP tool reference
Code navigation (optional)
Release binaries include these tools; source builds need --features code.
| MCP tool | Purpose |
|---|---|
find_symbol |
Find a definition and its source range |
code_outline |
List a file's definitions and nesting |
code_imports |
List declared imports |
code_diff |
Compare symbols between Git revisions |
gmem code find CodeService
gmem code outline src/application/code.rs
gmem code imports src/application/code.rs
gmem code diff origin/master
These tools work on Git checkouts without an embedding model. They index
definitions, not call sites or references; use ast-grep for those.
Set GRAPHMEM_CODE=off to disable code tools.
Options and supported languages · Benchmark results and limitations
Configuration
No config file is required. To customize embeddings, retrieval, or code indexing,
create ~/.graphmem/config.toml. See the configuration reference.
Build
See source builds and CUDA setup.
Development
just verify
Runs formatting checks, compilation, Clippy, and tests. Design · Schema evolution
To preview the documentation site, run hugo server --source site.
See site setup.
License
MIT.
Graphmem MCP Fragen
Wie füge ich Graphmem MCP zu Claude Code hinzu?
Führe claude mcp add graphmem -- npx -y @sonic182/graphmem in deinem Terminal aus. Füge --scope user hinzu, damit der Server in jedem Projekt verfügbar ist.
Wie füge ich Graphmem MCP zu Cursor hinzu?
Öffne ~/.cursor/mcp.json und füge den Server unter mcpServers hinzu, mit der Cursor-Config aus dem Installationsabschnitt oben.
Wie installiere ich Graphmem für die Nutzung mit einem MCP client?
Du kannst es via npm mit npm install --global @sonic182/graphmem installieren und anschließend gmem-install ausführen, oder npx -y @sonic182/graphmem mcp nutzen, falls dein Client npx unterstützt.
Wo werden die Memory-Daten gespeichert?
Die Daten werden lokal im Verzeichnis ~/.graphmem gespeichert. Du kannst dies jedoch ändern, indem du die Umgebungsvariable GRAPHMEM_HOME setzt.
Kann ich Graphmem nutzen, um meinen Code zu navigieren?
Ja, optionale Code-Tools ermöglichen es dir, Symbol-Definitionen zu finden, Datei-Outlines zu erstellen, Imports aufzulisten und Symbole zwischen Git-Revisionen zu vergleichen.
Benötigt Graphmem eine Config-Datei?
Standardmäßig ist keine Config-Datei erforderlich, aber du kannst eine ~/.graphmem/config.toml erstellen, um Embeddings, Retrieval oder das Code-Indexing anzupassen.