home / mcp / brainbrainbrains (bbb) — mcp server
Provides persistent memory and intelligent context for AI-assisted development via a local-first MCP server.
Configuration
View docs{
"mcpServers": {
"aiaiohhh-bbb-mcp-server-core": {
"command": "npx",
"args": [
"bbb-mcp-server",
"--project",
"my-project"
]
}
}
}BrainBrainBrains (BBB) MCP Server provides persistent memory and a contextual layer for AI-assisted development tools, exposed via the MCP protocol. It enables you to store decisions, conventions, architecture patterns, and business rules locally and access them across your development tools and IDEs.
You install BBB MCP Server and run it as an MCP endpoint that your AI coding tools can connect to. Once connected, you can store memories (decisions, conventions, constraints), artifacts (ADR, API contracts, PRDs), tasks, and codebase context. BBB automatically assembles relevant context for your current task, searches memories with full-text relevance, and lets you snapshot or rehydrate sessions across different tools. Use it to keep your project’s knowledge base synchronized across your entire development workflow.
Prerequisites: ensure you have Node.js and npm installed on your machine. You can verify by running node -v and npm -v in your terminal.
Option 1: run BBB MCP Server directly with npx (recommended) by starting a project. This runs the server without any local setup beyond having Node and npm.
Option 2: configure a client to start BBB from your MCP settings. See the Quick Start steps for common editors.
npx bbb-mcp-server --project my-projectBBB runs locally and stores all data in a SQLite database under your home directory, keeping data private to your machine.
To use BBB from a compatible MCP client, add an MCP server configuration that points to the BBB executable. The simplest form uses npx to launch the server for your project.
{
"mcpServers": {
"bbb": {
"command": "npx",
"args": ["bbb-mcp-server", "--project", "my-project"]
}
}
}Attach BBB to your MCP client following your editor’s standard MCP configuration flow. You can start BBB in a dedicated project folder and then connect your editor or IDE to that local endpoint. There are no API keys or cloud accounts required; everything runs locally on your device.
BBB exposes a suite of tools to manage memories, artifacts, tasks, and context.
# Start a project (server side action)
# This step is shown for illustration; actual start is via the MCP client connection
# The server stores data in ~/.bbb/data/my-project.db
# Create a memory entry
memory_store {
category: "decision",
title: "Use PostgreSQL for primary database",
content: "Chose PostgreSQL over MySQL for JSONB support and full-text search.",
tags: ["database", "infrastructure"]
}
# Create an artifact entry
artifact_store {
type: "adr",
title: "ADR-001: Event-driven architecture",
content: "## Context\nWe need async processing...",
tags: ["architecture"]
}If you encounter issues connecting with a client, ensure the BBB MCP Server process is running and the client is configured to point to the correct local endpoint. There are no external services or accounts required. If you change the project name, the underlying SQLite database location will be ~/.bbb/data/<project>.db.
BBB consists of a common core and a dedicated MCP server that exposes 17 tools for memories, artifacts, tasks, and context management. It stores data locally using SQLite with full-text search for rapid context assembly.
Store a new memory such as a decision, convention, constraint, or other project knowledge.
Search memories by full-text query with optional filters to surface relevant context.
List memories with pagination and filtering to browse past decisions and notes.
Update an existing memory and create a new version that supersedes the previous one.
Delete a memory by its ID from the local store.
Store a structured artifact such as ADRs, PRDs, API contracts, or design docs.
Retrieve an artifact by ID or search by type/title.
List artifacts with optional filters to understand project decisions and specifications.
Create a task with dependencies and acceptance criteria for structured progress tracking.
Update a task's status or fields to reflect current progress.
Get all tasks as a dependency graph to visualize work relationships.
Assemble relevant context for a development task by combining memories, artifacts, and codebase context.
Initialize BBB for a new project and prepare local storage.
Auto-ingest context from a repository directory by indexing READMEs, docs, and source files.
Capture the full session state for later rehydration in another tool.
Restore a previously captured session snapshot into a target tool.
Perform full-text search across all memories to locate relevant decisions and notes.