agentbrain

Docs

Connect an agent

agentbrain is a remote MCP server with OAuth 2.1 (PKCE, dynamic client registration). Any client that supports remote MCP with browser auth connects in one step.

Claude Code

claude mcp add --transport http agentbrain https://agentbrain.lukaloehr.com/mcp

Then run /mcp inside Claude Code, pick agentbrain and choose Authenticate. Your browser opens, you approve with a passkey (or you are already signed in), done.

Codex CLI

codex mcp add agentbrain --url https://agentbrain.lukaloehr.com/mcp
codex mcp login agentbrain

Claude.ai, Claude Desktop, Cursor, ChatGPT

Add a custom connector / MCP server with the URL https://agentbrain.lukaloehr.com/mcp. The OAuth flow is the same.

Headless machines

Create a personal access token in Settings and pass it as a bearer header:

claude mcp add --transport http agentbrain https://agentbrain.lukaloehr.com/mcp --header "Authorization: Bearer abp_…"

The model

A project is a scope (a codebase, a client, a domain). The global project applies everywhere. A memory is one node in the graph: a title, a summary an agent can act on, an optional markdown body, tags, importance and confidence. Relations are directed edges between memories.

Memory types

Relations

Tools

get_contextBoot pack for a project: global memories, project memories by type and importance, stale items, recent activity.
list_projects / create_project / update_projectManage scopes.
search_memoryRanked full-text search across title, summary, body and tags.
list_memoriesBrowse with filters, sort and paging.
get_memoryFull body plus relations, optionally two hops and version history.
explore_graphBreadth-first walk from a memory, filtered by relation and direction.
rememberCreate a memory (with links, upsert by slug).
update_memory / forgetVersioned updates; archive, mark stale, or delete.
link_memories / unlink_memoriesManage relations.
list_activityWhat every agent changed, and when.
whoamiAccount, client, scopes and totals.

Resources: agentbrain://projects, agentbrain://projects/{slug}/context, agentbrain://memory/{id}. Prompt: bootstrap.

Security and residency