Skip to content

MCP Config

Most users won’t need this page. Every modern AI client (Claude, Cursor, ChatGPT, VS Code, Windsurf, Zed) ships a GUI that adds Engram in a few clicks — see AI Integrations for the walkthrough per client.

If you’d rather edit a config file — or your client doesn’t have a GUI — there are three ways forward, easiest first: hand the setup to your AI, work through the per-client tabs, or skip OAuth entirely with an API key.

The fastest path: paste the prompt below into your AI assistant. It’ll detect which client it’s running in, edit the right config file (or run the right CLI command), and tell you what to do next.

Add Engram as an MCP server in this AI client, then teach the AI to use it.
URL: https://app.engram.page/api/mcp
Transport: HTTP
Auth: OAuth — a browser opens on first connect.
First, pick the right path for this client (CLI like `claude mcp add`, editing an mcp.json, etc.), do the setup, and tell me how to restart so the new server registers.
After that's done, add the text below to my long-lived system / global prompt for this client (e.g. ~/.claude/CLAUDE.md for Claude Code, Cursor Rules for Cursor, the personal preferences field at claude.ai/settings/general for Claude Desktop). If it's a web UI you can't edit, just tell me where to paste it:
Engram holds my personal notes — treat it as your long-term memory of me. Search it when a question depends on context I might have shared before. Before saving or updating a note, ask first.
Reference: https://engram.page/docs/mcp/manual-config/

If something goes sideways — or you’d rather drive it yourself — the per-client tabs below have the full manual recipe.

  • Cloud: https://app.engram.page/api/mcp
  • Self-host: https://your-engram-host/api/mcp

Engram speaks MCP over HTTPS. Two ways to authenticate:

  • OAuth (default) — the first time your client connects to the URL above, a browser window opens for sign-in. The client holds a token after that and reconnects silently. No keys to copy.
  • API key — for headless, scripted, or shared-vault setups. Send the key as a Bearer token in an Authorization header. See API Key Authentication below.

No env vars, no local server process either way.

Pick your client below. Each tab is a complete recipe — config, reload, first-run auth, and where to teach the AI to actually use Engram.

For self-host, swap the cloud URL for your own backend’s /api/mcp URL in any of the snippets below — see the endpoints section above for the canonical placeholders.

1. Add Engram. Use the Claude Code CLI — it handles the config edit for you:

claude mcp add --transport http --scope user engram https://app.engram.page/api/mcp

The --scope user flag makes Engram available across every project. Drop it (or use --scope project) to limit Engram to the current project’s .mcp.json.

Prefer manual? Add to ~/.claude.json (user-scoped) or .mcp.json at the project root:

{
"mcpServers": {
"engram": {
"url": "https://app.engram.page/api/mcp"
}
}
}

2. Reload. Exit your current Claude Code session and re-run claude. Run claude mcp list to confirm Engram is registered.

3. First-run auth. Claude Code won’t auto-prompt. In the new session, run /mcp, select engram (it shows △ needs authentication), then choose Authenticate. Your browser opens for OAuth — sign in to Engram, approve the connection, and Claude Code stores the token and reuses it from there on. The grant is the full mcp scope today; granular per-action scopes are on the roadmap.

4. Tell Claude to use it. Append the snippet below to ~/.claude/CLAUDE.md — your user-level instructions file, applied to every project.

Engram holds my personal notes — treat it as your long-term memory of me. Search it when a question depends on context I might have shared before. Before saving or updating a note, ask first.

OAuth is the default. Use an API key for headless or scripted access, per-connection control (writeable bot vs read-only agent), or sharing a vault without granting full sign-in. One key authenticates both MCP and the REST API. Today every key carries your account’s full access; fine-grained per-key scopes are on the roadmap.

Generate one at app.engram.page/settings/api-keys. Engram displays the full key once at creation, then only its prefix — treat it like a password and stash it somewhere safe.

Add a headers block sending the key as a Bearer token. The wrapper key (mcpServers / servers / context_servers) follows whichever client you’re configuring — use the same shape your tab above showed. For the standard mcpServers clients:

{
"mcpServers": {
"engram": {
"type": "http",
"url": "https://app.engram.page/api/mcp",
"headers": {
"Authorization": "Bearer engram_YOUR_KEY_HERE"
}
}
}
}

With an API key in place, no browser opens on first connect — the key authenticates immediately. To rotate, generate a new key in settings and replace the value in your config.

  • Client doesn’t see Engram after edit — restart the client fully, not just the window.
  • Browser never opens for auth — make sure no popup blocker is in the way; some clients pipe the OAuth window through their own browser logic, which fails silently if blocked.
  • Failed to connect — check the URL is reachable. See Troubleshooting for cross-client issues.

For client-specific GUI flows, see AI Integrations.