# Engraphy [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/devon-clarkk/engraphy  
**GitHub Stars:** 1  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/engraphy

## Description
Self-hosted MCP memory server: a typed knowledge graph on Postgres 16 and pgvector.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/devon-clarkk/engraphy), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Configure:

```sh
cp deploy/.env.example .env   # then edit, or:
```

2. Start the server:

```sh
docker compose up -d          # the embedding model ships baked into the image
```

3. Configure:

```sh
docker compose --profile admin run --rm admin \
  engraphy-admin space create --id personal --display-name "My Memory" --principal me
```

4. Configure:

```sh
docker compose --profile admin run --rm admin \
  engraphy-admin pack apply packs/starter/pack.yaml --space personal
```

5. Sign in:

```sh
docker compose --profile admin run --rm admin \
  engraphy-admin token create --space personal --principal me \
    --client-name my-editor --role readwrite
```

6. Start the server:

```sh
./up.sh          # writes .env with random passwords, starts the stack,
```

## Documentation

## What Engraphy MCP server does

Engraphy MCP server stores agent memory as a typed graph rather than a flat collection of text records. Nodes can represent facts, decisions, people, events, and other application-defined types. Typed edges connect related nodes, while packs declare the permitted types, attributes, and relationships for each space.

Writes are checked against existing memory before they are committed. Near-duplicate content can be merged, a new but related fact can be stored and linked, and uncertain matches can be returned as pending duplicate decisions. The write response includes a resonance report describing the memory it affected. Existing records are not silently overwritten, and the design keeps historical relationships walkable.

## How it works

The server runs with FastMCP and stores graph data in Postgres 16 with the pgvector extension. An embedding model, `nomic-embed-text-v1.5`, supports vector comparison. Retrieval combines cosine-based vector search with PostgreSQL full-text search using Reciprocal Rank Fusion. Values held in typed attributes are included in the searchable surface.

Clients connect over HTTP and send a bearer token. Reads and writes run under the caller’s identity. Postgres Row-Level Security separates spaces and principals, with the application connecting through a role configured not to bypass those policies. A client can search, fetch nodes, follow edges, or request a pack-defined briefing while seeing only granted scopes.

A pack also supplies descriptions for scopes. The `scope_guide` tool exposes those descriptions so an agent can select an appropriate destination before writing. This lets one server support different memory shapes across spaces instead of imposing one fixed schema.

## Setup and configuration

The supported quickstart uses Docker Compose. Copy `deploy/.env.example` to `.env`, set `POSTGRES_PASSWORD` and `ENGRAPHY_APP_ROLE_PASSWORD`, then start the stack. The cloud profile starts Postgres, runs migrations, provisions the application role, and launches the server. The embedding model is included in the image.

After startup, use the admin container to create a space, apply a pack, and mint a read-write client token. The default endpoint is `127.0.0.1:8000`; a TLS-terminating reverse proxy is needed when exposing it externally. The token is printed once, while only its SHA-256 hash is stored by the server.

The repository also provides `up.sh` and `provision.sh`, with PowerShell equivalents. They wait for `/healthz`, preserve an existing `.env`, and skip already completed space or pack setup. Configuration can change the pack, host port, health-check timeout, space, principal, and client name. A local setup without Docker is documented separately in the repository.

## Tools and capabilities

Engraphy MCP server exposes tools for:

- Writing, searching, fetching, and traversing memory nodes.
- Linking, updating, superseding, and resolving duplicate decisions.
- Listing and creating scopes, plus retrieving scope-routing guidance.
- Requesting pack-defined briefings.
- Reviewing pending writes, capture inbox items, and usage statistics.
- Managing space members, tokens, grants, and visibility through administration tools.

The `search` tool can operate within one scope or across all accessible scopes. `traverse` performs recursive graph walks from a starting node, while `get` returns complete node data with edge summaries.

## Limitations and notes

Engraphy MCP server is self-hosted and requires Postgres 16 with pgvector, application credentials, and an embedding model supplied by the deployment image or local setup. Its database isolation depends on connecting through the configured non-superuser role. The project is source-available under Business Source License 1.1: production use for a product is permitted, but offering Engraphy itself as a hosted or managed service to third parties is reserved to the licensor until the stated change date, when the license converts to Apache-2.0.

_Full upstream README: https://allmcps.com/mcp/engraphy/readme_

