Skip to main content
Glama

Engraphis

PyPI version PyPI downloads Coding-Dev-Tools/engraphis MCP server GitHub stars License

Your coding agent forgets decisions between sessions. Engraphis gives MCP-capable coding agents one local memory store with receipts.

Engraphis stores scoped project knowledge in SQLite, keeps temporal history instead of silently overwriting it, and returns bounded context with citations, or abstains when the evidence is weak. The local core is Apache-2.0 and works offline.

Watch the demo · Open the interactive demo · See how it compares

Star the repo so other coding-agent users can find it.

Install and connect an agent in three commands

The MCP server and [all] extras need Python 3.10 or newer. The NumPy-only core still supports Python 3.9+.

python -m pip install "engraphis[mcp]"
engraphis-init
claude mcp add engraphis -- engraphis-mcp

engraphis-init writes a local config, generates an API token, and prints ready-to-paste setup for Claude Code, Codex, Cursor, Cline, Zed, and Windsurf. Use the exact command it prints for your machine, including the database path. Restart your agent, then ask it to remember a project decision and recall it in a new session.

If your client times out while the local embedding model loads, run engraphis-init --prefetch once.

For Cursor, Cline, Zed, or Windsurf, paste the JSON block printed by engraphis-init into the client's MCP configuration. Read the agent setup guide for the full setup.

python -m pip install "engraphis[all]"
engraphis-dashboard

The dashboard opens at http://127.0.0.1:8700. The [all] extra adds the embedding model, document import, and transcription dependencies. Most coding-agent users only need [mcp]. Local use needs no cloud account or API key.

Related MCP server: mcp-ai-brain

Use the Python service directly

from engraphis.service import MemoryService

memory = MemoryService.create("engraphis.db")
memory.remember("Auth migrated from JWT to PASETO.", workspace="acme", repo="api")
hit = memory.recall("Why did we change auth?", workspace="acme", repo="api")
print(hit["context"])

What it provides

  • Continuity: Organize memories by workspace, repository, and session, with a last-session handoff.

  • Useful recall: Combine vector, lexical, graph, and code-aware retrieval, then pack results to a hard context budget.

  • Grounded answers: Preserve provenance and temporal history; cite support or abstain when it is insufficient.

  • Temporal history: Timeline can select known versions whose validity has ended before result limits. The dashboard uses closed_only=true on GET /api/timeline for “Only superseded versions.” Closed history prioritizes lexical matches (the literal query and up to 32 expanded terms, using the final ranker's Unicode lowercasing) before scoring at most 500 eligible candidates; semantic-only matches outside that window can be omitted. SQLite may scan and sort more rows than this candidate cap.

  • Spec Studio: Inspect prompt specifications and scoped memory clusters with deterministic coverage, ambiguity, and conflict checks; review suggestions before changing memory.

  • Operator control: Keep the core local and offline-capable, with explicit controls for hosted services and external LLM providers.

  • Included AI LLM & Jev on paid and trial plans: Pro and Team automatically include up to 100 free OpenRouter AI LLM calls per person per day (for automatic structured fact and entity extraction, cited context synthesis, grounded Q&A, and structured consolidation) plus up to 250 managed Jev decision calls per person per day, with no personal provider keys.

Why upgrade to Pro or Team

The local core stays free and offline-capable. Pro and Team add automatic AI enhancements and hosted workflows the moment you start a free trial or subscribe:

  • Automatic AI memory enhancement (100 calls/day included): Connect your Pro or Team account (paid or trial) and Engraphis automatically activates its included zero-cost OpenRouter AI LLM with zero API key setup. Unstructured session notes are automatically distilled into clean atomic facts, entities, and knowledge-graph relations on ingest, proactive context briefings and grounded Q&A gain citation-backed synthesis, and consolidation produces sharper structured facts. If offline or at the daily limit, Engraphis seamlessly falls back to deterministic local processing with zero lost memories and zero overage charges.

  • See memory health: Analytics surfaces growth, retention, and decay forecasts so you can review what is becoming stale before it affects recall.

  • Keep memory maintained: Schedule Auto Consolidation and Auto Dreaming. They produce proposals for you to review, and local governance still decides what changes.

  • Sync across machines: Opt into encrypted Cloud Sync for eligible workspaces with a key you hold. Sync and readable managed processing are separate choices.

  • Give a team an operating picture: Named seats, admin/member/viewer roles, scoped credentials, and a 30-day account activity log visible to owners and admins. Shared hosted Team memory and hosted MCP are not yet available.

  • Add judgment with Jev (250 calls/day included): Pro and Team automatically include up to 250 managed Jev calls per person per day: typed, advisory checks for risky commands, contradictory memories, evidence support, and completion claims. No personal TypeSafe key or overage charge. Jev helps an agent separate safe from risky actions, contradictory from reinforcing memories, supported from unsupported answers, and complete from unfinished work, while permissions and tests stay in charge.

Pro is $10/month or $100/year for one owner. Team is $20/seat/month or $200/seat/year. Both start with an email-confirmed, no-card trial (7 active days for Pro, 14 active days for Team) with full access to the 100/day AI LLM and 250/day Jev allowances from day one. After copying a device connect token from your account portal, connect and verify both allowances in one command: engraphis connect --token <CONNECT_TOKEN> --verify. Compare plans &middot; Start a Pro trial &middot; Start a Team trial.

Benchmarks

The current registered artifact contains three deterministic offline fixture runs. It separates context size, retrieval quality, and grounded decision checks; these small fixtures do not establish general task performance.

Fixture

Result

Quality check

Structure-aware chunking

Mean retrieved top-5 context: 740.3 → 214.3 tokens per question (71.1% lower, 18 questions)

Recall@5 = 1.000 in both modes

Recall payload proxy

JSON-shape proxy: 24,590 → 11,138 tokens (54.71% lower, 26 samples; 260 timed recalls)

Candidate and packed Recall@5, Hit@5, and answer-token recall are each 1.000

Grounded decisions

5/5 answerable queries grounded; 6/6 abstention queries rejected, including 1/1 quarantined-evidence check

11/11 decisions correct

The payload figure is a serialized JSON-shape estimate, not an MCP transport measurement or provider billing total. See the Benchmark methodology for artifact identity, counting methods, reproduction commands, external-evaluation boundaries, and limitations.

Optional Jev assistance

Jev is included free with every paid plan: Pro and Team. Every legitimate Pro user and each eligible Team named seat, including paid viewers, with an active paid, trial, or test entitlement receives managed Jev at no additional customer charge and without a personal provider key. Local advisory decisions stay free for everyone; BYOK, a personal TypeSafe key, is optional for non-paid or direct use and its provider charges may apply. Managed Jev is available for paid plans; the hosted control service enables it with its provider key.

Each paid individual receives up to 250 Jev calls per person per day, free, plus up to 100 AI LLM calls per person per day via OpenRouter's free tier, active automatically on both paid subscriptions and free trials. Usage is per person, not pooled across a Team and not monthly. Each evaluated call counts once, including a batched request; calls beyond the daily maximum are not served. Admitted attempts that fail or are interrupted remain counted, and no overage is charged. The account portal reports that member's remaining calls for the current day.

Use Review with Jev in the local dashboard for evidence-support and contradiction checks; the MCP decision tool covers command and completion reviews. Remote calls need per-call consent plus a public or internal classification, and Jev cannot write memories, change grounded-recall requirements, authorize commands, or certify completion.

Recall route selection is experimental and BYOK-only: engraphis_recall_context with allow_remote=true, or classic MCP with planning="auto" and jev_assisted=true. On 40 public synthetic tasks it changed no retrieval quality, so no retrieval-quality improvement is claimed.

See hosted plans and Jev details.

Guides

License

Engraphis is licensed under Apache-2.0. The license does not grant trademark rights. See LICENSE, NOTICE, and the licensing guide. The hosted control plane and managed services are private services.

Available Tools

9 tools
engraphis_conflict_reviewA
Read-onlyIdempotent

Read-only review of pending/quarantined/conflicting memories.

Scope and personal-folder authorization apply. Bodies stay hidden; only approved conflicts may expose a short excerpt.

Inputs: repo, limit, workspace.

engraphis_discover_actionsB
Read-onlyIdempotent

Return exact schemas for matching advanced actions.

Inputs: task (required), limit, intent, category.

engraphis_execute_actionB
Destructive

Run a discovered write/admin/destructive action under its authorization rules.

Inputs: arguments (required), capability_id (required), schema_digest (required).

engraphis_execute_readB
Read-onlyIdempotent

Run a discovered read-only, idempotent action.

Inputs: arguments (required), capability_id (required), schema_digest (required).

engraphis_get_memoryA
Read-onlyIdempotent

Return one governed memory record (content, provenance, scope, and time).

Read-only; never reinforces. Pending/quarantined bodies stay hidden; only prompt-eligible content reaches the agent.

Inputs: memory_id (required), repo, workspace.

engraphis_recall_contextC

Return bounded cited context; allow_remote opts this call into Jev planning.

Inputs: query (required), k, repo, format, +7 more.

engraphis_rememberC

Store a fact; check prompt_eligible and review_state before recall.

Inputs: content (required), repo, mtype, workspace, +6 more.

engraphis_sessionC

Manage sessions and explicit handoffs.

Inputs: goal, repo, agent, action, +7 more.

engraphis_update_memoryA
Idempotent

Edit metadata only (title/type/importance). Identical retries are atomic no-ops. Content uses governed correction to preserve history; secrets are rejected and provenance/trust/ sensitivity cannot be edited.

Inputs: memory_id (required), repo, actor, mtype, +3 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 9 tools

    Disambiguation4/5

    The read/write split is explicit (recall_context vs get_memory vs execute_read vs execute_action), and remember vs update_memory are clearly separated by intent. Minor overlap remains between recall_context (bounded multi-record context) and get_memory (single governed record), and between execute_read and the dedicated read tools, since discovered read actions could cover similar ground.

    Naming Consistency3/5

    All names share the engraphis_ prefix and snake_case, but the verb conventions are mixed: verb_noun (recall_context, get_memory, update_memory, discover_actions, execute_read/execute_action), bare verb (remember), bare noun (session), and noun_noun (conflict_review). Readable, but not a single predictable pattern.

    Tool Count5/5

    Nine tools is well within the sweet spot for a governed memory server. Each tool maps to a distinct lifecycle concern (session, recall, store, discover/execute, inspect, edit, review) with no filler.

    Completeness4/5

    Create (remember), read (recall_context/get_memory), and metadata update are covered, and the discover/execute pair provides an extensibility path for anything else. Gaps exist: no explicit forget/delete operation and conflict_review is read-only, so conflict resolution depends on discovered actions rather than a first-class tool.

    Maintenance

    ActivityActive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Governed memory for coding agents with trust lifecycle, conflict detection, staleness tracking, and health scoring. SQLite + FTS5, zero infrastructure. Works with Claude Code, Cursor, Codex, Windsurf.
      13
      6
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Local-first memory engine for AI-agent teams: private/team/project ACL, associative recall, and federated sync across nodes. One SQLite file, no LLM required.
      12
      9
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Local-first, source-grounded memory for AI agents, with citations, bitemporal history, review-gated corrections, and MCP tools for search and recall.
      4
      Apache 2.0