CompanyBrain NLEN Sign in
Technical

Shared memory, technical

This page is for anyone who wants to know how the connection with your own AI works. CompanyBrain offers the memory as an MCP server. An AI that supports MCP can use it to search the memory, read conversations and store notes.

Connecting

The server lives at the /mcp address of CompanyBrain. You add that address as a connection in your AI. Then you sign in with your Microsoft or Google work account. Signing in runs through OAuth 2.1 with PKCE (S256) and dynamic client registration, so an AI can register itself without anyone having to copy a key.

An access token is valid for one hour. A refresh token is valid for 60 days. If an organization's payment has lapsed, the connection is paused.

Tools

ToolWhat it doesKind
startGives the company rules, the list of topics and recent activity at the start of a conversation.read
open_contextOpens a topic: the description, the memory and the recent conversations.read
searchSearches by keyword. All words must occur, in titles, name, project and platform in the journal, and in the descriptions and the memory.read
read_conversationReads a complete conversation from the storage.read
write_fileSaves a text file (.md or .txt) to a topic.write
rememberPuts a fact or way of working into the memory of a topic.write
logPuts a short line about the turn into the journal.write

What is in your storage

contexts/<onderwerp>/README.md
contexts/<onderwerp>/memory.md
contexts/<onderwerp>/journal/JJJJ-MM.md
contexts/_org/rules.md
contexts/_inbox/

A line in the journal holds the date, the name of the employee, the platform, the title, the project and the path to the raw conversation. The content of the conversation is not in it. The company rules are in rules.md. The inbox is for administrators only.

A topic is visible to the whole organization or limited to a group. Administrators see everything. Conversations are put under a topic with rules on keyword or project, optionally per platform.

Security and limits

  • Fetched files come back in a wrapper marked as data, so an AI does not read them as instructions.
  • A limit of 120 requests per 60 seconds applies.
  • Writing is recorded. Only .md and .txt are allowed, not in the journal folder, up to 200,000 characters.
  • CompanyBrain uses no language model of its own and does not keep the content on its own disk. Everything is read from your storage at the moment of the question.

What it does not do: the search is by keyword and not by meaning. Gemini conversations are in the archive but not in the shared memory. Whether an AI follows the company rules is up to that AI.