Self-hosted MCP memory server: a typed knowledge graph on Postgres 16 and pgvector.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
One-click editor setup isn’t available for this listing yet — we don’t have a confirmed install command, and we’d rather show nothing than point your editor at the wrong package or host. Follow the project’s own setup instructions, linked above.
An MCP server giving AI agents associative memory, modelled on the human mind.
Quickstart · Documentation · Tool reference · Design set · Contributing
The name comes from engraphy, an old term from memory science for the process of laying down an engram, the trace a memory leaves in the brain. Engraphy does that for agents: it checks each new memory against what it already knows before the write lands, merging restatements, linking genuinely new facts, and never silently overwriting. Nothing is deleted, so history stays walkable.
Engraphy is self-hosted. It stores what an agent learns as a typed knowledge graph on Postgres + pgvector: writes deduplicate themselves against existing memory, retrieval fuses semantic and lexical search, isolation between users is enforced by the database, and the whole shape of memory is declared per application as a pack.
It exists to replace the reference MCP memory server's flat-JSON, single-user, stdio model with something that survives concurrency, paraphrase, duplicates, and years of accumulated memory. It speaks the Model Context Protocol, so any MCP client (a VS Code extension, a desktop app, another agent) can use it over HTTP.
Source-available. Licensed under the Business Source License 1.1: read it, run it, build on it, and use it in production for your own product. Offering Engraphy itself as a hosted or managed service to third parties is reserved to the Licensor until the Change Date, when it converts to Apache-2.0. See License.
fact, decision,
person, event, …) joined by typed edges (involves, references,
supersedes, …). The types, their attribute schemas, and the rules for which
edges may connect which types are declared per space in a pack and enforced
in Postgres.search fuses a vector leg (cosine over embeddings) and a
lexical leg (Postgres full-text) with Reciprocal Rank Fusion, and traverse
walks the edges. Attribute values are folded into the searchable surface, so a
fact stored only in a typed attribute is still findable.NOBYPASSRLS role.scope_guide tool returns that routing manifest so an
agent can decide where a new memory belongs before it writes.A write is embedded, banded by similarity into merge / merge-link / pending /
new, and committed under the caller's identity. A read (search, get,
traverse, briefing) runs under RLS so a caller only ever sees the scopes they
were granted. A pack declares the node types, edge types, attribute schemas,
and session-start briefing for a space, so one engine serves many differently
shaped memory applications. The architecture overview
walks the full write and read paths.
Requirements: Docker (with Compose). The cloud profile brings up Postgres, runs migrations, provisions the app role, and starts the server in one command.
The server is now on 127.0.0.1:8000 (put a TLS-terminating reverse proxy in
front to expose it). Point any MCP client at it with the bearer token. The
setup guide covers the local, no-Docker path as well.
up.sh and provision.sh (with up.ps1 / provision.ps1 as Windows
equivalents) wrap exactly the sequence above, and add the waiting that a
copy-paste quickstart cannot:
up.sh polls /healthz rather than compose's health status, because on first
boot compose reports starting for as long as the model cache takes to seed,
which looks identical to a crash-loop from the outside. A 200 is the real signal.
Both scripts are safe to re-run: an existing .env is never overwritten, and an
existing space or an already-applied pack is skipped rather than treated as an
error, so a re-run still mints a fresh token.
Everything is parameterised, with defaults that work unchanged:
| default | override | |
|---|---|---|
| space id | default | ./provision.sh myspace or -Space myspace |
| principal | me | ./provision.sh myspace alice or -Principal alice |
| client name | my-client | third positional arg, or -ClientName |
| pack | /app/packs/starter/pack.yaml | ENGRAPHY_PACK or -Pack |
| host port | 8000 | ENGRAPHY_HOST_PORT in .env, or -Port |
| health timeout | 1800s up, 600s provision | ENGRAPHY_WAIT_SECS or -WaitSeconds |
The token is printed once and never written to disk by the scripts; the server
stores only its SHA-256. If you lose it, re-run provision.sh for a new one.
Engraphy is an MCP server, so a client connects and calls tools:
| Tool | What it does |
|---|---|
write | Dedup-banded write; returns the node or a duplicate-check verdict plus a resonance report. |
search | Hybrid semantic + lexical retrieval across one scope or all. |
traverse | Recursive graph walk from a starting node. |
get | Full nodes plus edge summaries, by id. |
briefing | Pack-declared session-start sections (due commitments, relevant notes, …). |
scope_guide | The routing manifest: every writable scope and what it governs. |
scope_list / scope_create | List readable scopes / create a private one. |
link · update · supersede · resolve_duplicate | Edit the graph and settle pending verdicts. |
pending_list · stats · inbox_review | Inspect pending writes, usage metrics, and the capture inbox. |
admin_* | Space administration (members, tokens, grants, visibility). |
See the tool reference for parameters, returns, and
an example per tool. A first-party VS Code extension lives in
vscode-extension/.
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/engraphy)<a href="https://allmcps.com/mcp/engraphy"><img src="https://allmcps.com/api/badge/engraphy?style=directory" alt="Engraphy on AllMCPs" /></a>