Engraphy
An MCP server giving AI agents associative memory, modelled on the human mind.
Power your agent
คำสั่งของผู้เผยแพร่เอง ไม่ใช่เอนด์พอยต์ของ PlugMCP
Host a copy with our keys and logs.
docker run -i --rm ghcr.io/devon-clarkk/engraphy:0.3.0Claude Code ไม่มีลิงก์ติดตั้งสำหรับคำสั่งแบบโลคัล ให้คัดลอกคำสั่งด้านล่างแล้วรันในเทอร์มินัล
ENGRAPHY_DATABASE_URL=<secret> ENGRAPHY_BIND_HOST=<value> ENGRAPHY_BIND_PORT=<value> claude mcp add io.github.devon-clarkk-engraphy -- docker run -i --rm ghcr.io/devon-clarkk/engraphy:0.3.0รันในเทอร์มินัล
{ "mcpServers": { "io.github.devon-clarkk-engraphy": { "command": "docker", "args": [ "run", "-i", "--rm", "ghcr.io/devon-clarkk/engraphy:0.3.0" ], "env": { "ENGRAPHY_DATABASE_URL": "<secret>", "ENGRAPHY_BIND_HOST": "<value>", "ENGRAPHY_BIND_PORT": "<value>" } } }}claude_desktop_config.json
URL แบบรีโมตหรือคำสั่งบนเครื่องของคุณ? การติดตั้งสองแบบต่างกันอย่างไร
รันบน PlugMCP
A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.
เปิด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.flowchart LR
C[MCP client<br/>VS Code · desktop · agent] -->|HTTP + bearer token| S[Engraphy server<br/>FastMCP]
S --> E[Embedding<br/>nomic-embed-text-v1.5]
S --> DB[(Postgres 16 + pgvector<br/>nodes · edges · scopes<br/>RLS · schema enforcement)]
P[Pack<br/>types · edges · briefing] -.declares.-> DB
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.
# 1. Configure secrets (never committed)
cp deploy/.env.example .env # then edit, or:
printf 'POSTGRES_PASSWORD=%s\nENGRAPHY_APP_ROLE_PASSWORD=%s\n' \
"$(openssl rand -hex 16)" "$(openssl rand -hex 16)" > .env
# 2. Bring up Postgres + migrate + provision + serve
docker compose up -d # the embedding model ships baked into the image
# 3. Create a space, apply the starter pack, mint a client token
docker compose --profile admin run --rm admin \
engraphy-admin space create --id personal --display-name "My Memory" --principal me
docker compose --profile admin run --rm admin \
engraphy-admin pack apply packs/starter/pack.yaml --space personal
docker compose --profile admin run --rm admin \
engraphy-admin token create --space personal --principal me \
--client-name my-editor --role readwrite
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 # writes .env with random passwords, starts the stack,
# then blocks until /healthz returns 200
./provision.sh # creates the space, applies the starter pack, mints a token,
# and prints the client settings to paste in
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:
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:
See the tool reference for parameters, returns, and
an example per tool. A first-party VS Code extension lives in
vscode-extension/.
pgvector/pgvector:pg16 image ships both).PATH for the no-Docker path).nomic-ai/nomic-embed-text-v1.5 (384-dim, on ONNX Runtime,
downloaded and cached on first boot).v0.1.0. The schema and enforcement kernel, engine behaviors (dedup, hybrid
retrieval, graph traversal, briefings), the MCP server with auth and admin, and
the operator CLI are implemented and covered by a live-Postgres test suite plus a
CI job that exercises the shipped deploy artifacts end to end. A benchmark harness
(bench/, design/09) runs the engine against public long-term-memory datasets;
it is a tool for measuring changes, not a source of marketing numbers.
bench/RUN-LOCOMO.md is the walkthrough for running LoCoMo
yourself: it needs an OpenAI-compatible base URL and key, and it pins the dataset,
the arm, the models and the judge.
Issues and pull requests are welcome. CONTRIBUTING.md covers
getting a development database up, running the suite, what the three CI jobs
check, and the house style. Security problems go through
a private advisory
rather than a public issue.
Engraphy is licensed under the Business Source License 1.1 (see
LICENSE).
Copyright (c) 2026 Devon Clark.
Self-hosted MCP memory server: a typed knowledge graph on Postgres 16 and pgvector.
{ "mcpServers": { "io.github.devon-clarkk-engraphy": { "command": "docker", "args": [ "run", "-i", "--rm", "ghcr.io/devon-clarkk/engraphy:0.3.0" ], "env": { "ENGRAPHY_DATABASE_URL": "<secret>", "ENGRAPHY_BIND_HOST": "<value>", "ENGRAPHY_BIND_PORT": "<value>" } } }}เครื่องมือ
ยังไม่มีรายการเครื่องมือ เซิร์ฟเวอร์แบบรีโมตจะได้รายการหลังการตรวจสอบสถานะครั้งแรก
FAQ
คัดลอกคอนฟิก stdio สำหรับ Cursor, Claude Desktop, Claude Code หรือ VS Code ได้ในหน้านี้ คอนฟิกนี้ใช้การติดตั้งของผู้เผยแพร่ ไม่ใช่พร็อกซีของ PlugMCP
ผู้เผยแพร่ระบุตัวแปรสภาพแวดล้อมเหล่านี้: ENGRAPHY_DATABASE_URL, ENGRAPHY_BIND_HOST, ENGRAPHY_BIND_PORT
Engraphy ทำงานแบบโลคัลผ่าน stdio
ตรวจสอบล่าสุดเมื่อ 2026-11-09 Self-hosted MCP memory server: a typed knowledge graph on Postgres 16 and pgvector.