The-Brain
by Activi-AI
Overview
A server providing a memory store and audit log for AI agents like Claude Desktop and Claude Code, designed to store and search company decisions, notes, and code snippets.
Installation
npm startEnvironment Variables
- BRAIN_PORT
- SQLITE_PATH
Security Notes
The HTTP API relies on `x-org-id`, `x-user-id`, `x-user-role`, and `x-project-id` headers for multi-tenancy context. If these headers are missing, hardcoded default values (`org-001`, `user-admin-001`, `admin`, `proj-001`) are used. This header-based authentication/authorization is highly susceptible to spoofing if the API is exposed to untrusted networks, allowing unauthorized access to data across different tenants or users. The `requireAdmin` function similarly relies solely on a header value. While prepared statements prevent SQL injection, the lack of robust authentication/authorization for multi-tenancy makes it unsafe for public deployment without an external security layer. The STDIO server uses fixed default context, acceptable for local desktop use but not for exposed scenarios. CORS is enabled globally without specific origin restrictions, posing a risk if deployed publicly. Error messages could potentially leak internal details.
Similar Servers
mcp-memory-keeper
Provides persistent context management for Claude AI coding assistants, ensuring work history, decisions, and progress are preserved across sessions and context limits.
claude-memory-mcp
Provides local, persistent, and searchable memory for AI assistants like Claude Desktop, enabling them to store and recall information efficiently.
memcord
A privacy-first, self-hosted MCP server for organizing chat history, summarizing messages, and searching past conversations using AI, particularly for Claude interactions.
claude-conversation-memory-mcp
Provides long-term memory for AI coding agents by indexing conversation history, tracking decisions and mistakes, and enabling semantic search across projects.