# Engram

Self-hosted spaced repetition flashcards with FSRS v6 scheduling, Anki .apkg import/export and a native MCP server for AI-assisted card creation, grading and review.

Type: MCP server
Category: Other
Source: https://github.com/bestnite/engram
Version: 0.3.0
License or terms: AGPL-3.0
Author: @nite

## Installation

1. Run the container with the embedded SQLite store (single user):
docker run -d --name engram -p 8080:8080 -v engram-data:/data \
  -e SESSION_SECRET=$(openssl rand -base64 32) \
  -e ENCRYPTION_KEY=$(openssl rand -base64 32) \
  docker.io/nite07/engram:latest

2. Open http://localhost:8080/setup and create the administrator account.

3. Multi-user or production: use the docker-compose.yaml from the repository (PostgreSQL 18 plus the app). Behind a reverse proxy, set BASE_URL and TRUSTED_PROXIES.

4. Create a key in Settings -> API Keys, then add the built-in MCP server to your client: URL http://localhost:8080/mcp, transport Streamable HTTP, header Authorization: Bearer <your key>.

5. Load Anki decks from the web UI, the engram CLI, or the import_deck MCP tool.

## Manual setup

Docker, and a free host port. Go 1.27+ and Node.js are only needed for source builds. SQLite is embedded by default; PostgreSQL 18 is used for multi-user deployments.
SESSION_SECRET and ENCRYPTION_KEY are mandatory, each 32 random bytes (openssl rand -base64 32). Losing ENCRYPTION_KEY makes stored data unreadable.
Each MCP client needs its own API key, created in Settings -> API Keys once the admin account exists. The key is shown once.
Optional: an SMTP host for review reminders and weekly digests, and an OIDC issuer and client for single sign-on.
Behind a reverse proxy, BASE_URL and TRUSTED_PROXIES must be set so links, OIDC redirects and rate limiting work.

## Pricing

Free and open source under AGPL-3.0. No paid tier and no hosted offering: Engram runs on your own hardware, so the only cost is that infrastructure.
A public demo runs at https://engram.nite07.com; its shared test account is listed in the repository README. Do not store real data in the demo.

## Review

Checked the AGPL-3.0 GitHub repository and the documented Docker setup. Self-hosted; secrets are generated locally. The server was not run.
