Context7
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Self-hosted MCP memory server: a typed knowledge graph on Postgres 16 and pgvector.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ENGRAPHY_DATABASE_URL, ENGRAPHY_BIND_HOST, ENGRAPHY_BIND_PORTค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"engraphy": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"ENGRAPHY_DATABASE_URL",
"-e",
"ENGRAPHY_BIND_HOST",
"-e",
"ENGRAPHY_BIND_PORT",
"ghcr.io/devon-clarkk/engraphy:0.3.0"
],
"env": {
"ENGRAPHY_DATABASE_URL": "ใส่ค่าของคุณ",
"ENGRAPHY_BIND_HOST": "ใส่ค่าของคุณ",
"ENGRAPHY_BIND_PORT": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add engraphy --env ENGRAPHY_DATABASE_URL='ใส่ค่าของคุณ' --env ENGRAPHY_BIND_HOST='ใส่ค่าของคุณ' --env ENGRAPHY_BIND_PORT='ใส่ค่าของคุณ' -- docker run -i --rm -e ENGRAPHY_DATABASE_URL -e ENGRAPHY_BIND_HOST -e ENGRAPHY_BIND_PORT ghcr.io/devon-clarkk/engraphy:0.3.0เติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"engraphy": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"ENGRAPHY_DATABASE_URL",
"-e",
"ENGRAPHY_BIND_HOST",
"-e",
"ENGRAPHY_BIND_PORT",
"ghcr.io/devon-clarkk/engraphy:0.3.0"
],
"env": {
"ENGRAPHY_DATABASE_URL": "ใส่ค่าของคุณ",
"ENGRAPHY_BIND_HOST": "ใส่ค่าของคุณ",
"ENGRAPHY_BIND_PORT": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"engraphy": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"ENGRAPHY_DATABASE_URL",
"-e",
"ENGRAPHY_BIND_HOST",
"-e",
"ENGRAPHY_BIND_PORT",
"ghcr.io/devon-clarkk/engraphy:0.3.0"
],
"env": {
"ENGRAPHY_DATABASE_URL": "ใส่ค่าของคุณ",
"ENGRAPHY_BIND_HOST": "ใส่ค่าของคุณ",
"ENGRAPHY_BIND_PORT": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ENGRAPHY_BIND_HOST envENGRAPHY_BIND_PORT envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub devon-clarkk ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใส่ค่าเหล่านี้: ENGRAPHY_DATABASE_URL
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.3.0) เข้า registry 2 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Docker ในเครื่องด้วย
ในหมวดเดียวกันมี Context7, Codebase Memory, Exa
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
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.flowchart LR
C[MCP client VS Code · desktop · agent] -->|HTTP + bearer token| S[Engraphy server FastMCP] S --> E[Embedding nomic-embed-text-v1.5] S --> DB[(Postgres 16 + pgvector nodes · edges · scopes RLS · schema enforcement)] P[Pack 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
docker compose up -d # the embedding model ships baked into the image
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,
./provision.sh # creates the space, applies the starter pack, mints a token,
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/.
pgvector/pgvector:pg16 image ships both).PATH for the no-Docker path).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.