explaingit

alexlabs-ai/brain-concierge

0JavaScriptAudience · developerComplexity · 3/5ActiveLicenseSetup · moderate

TLDR

MCP retrieval layer that takes an agent's task description, expands it into several semantic queries against a GBrain vector index, and returns a synthesized briefing with sources.

Mindmap

mindmap
  root((brain-concierge))
    Inputs
      Task description from agent
      Optional role and depth
      GBrain vector index
    Outputs
      Synthesized briefing
      Source pages with slugs
      KB index stats
    Use Cases
      Brief a sales agent before a renewal call
      Prepare an engineer for an auth migration
      Research a new market from a corpus
    Tech Stack
      Node.js
      MCP
      GBrain
      Anthropic

Things people build with this

USE CASE 1

Hand an AI agent a task description and get back a focused briefing with source slugs

USE CASE 2

Replace single-query semantic search with a task-first expand-and-synthesize pattern

USE CASE 3

Restrict retrieval to specific slug prefixes when the knowledge base is partitioned by topic

USE CASE 4

Swap the synthesis model via SYNTHESIS_MODEL to test Sonnet, Opus, or another provider

Tech stack

Node.jsMCPGBrainAnthropic

Getting it running

Difficulty · moderate Time to first run · 30min

Needs Node 18+, a running GBrain server, an Anthropic API key, and an MCP client like Claude Desktop, OpenClaw, or Cursor.

MIT: do almost anything with the code as long as you keep the copyright notice.

In plain English

Brain Concierge is a retrieval layer that sits between an AI agent and a knowledge base. The README opens with the problem it is built around: an agent searching for a single phrase like 'refund policy' will never think to also search for 'VIP exceptions' or 'January outage compensation', because it does not know those concepts are in the corpus. Standard search puts the burden on the asker to phrase the right query. The pattern is task-first rather than search-first. Instead of sending a keyword, the agent describes what it is about to do, optionally including a role like 'account executive' or 'backend engineer'. Brain Concierge then expands that description into several semantic queries, runs them in parallel against a GBrain vector index, deduplicates and re-ranks the results, and asks an LLM to synthesize a briefing focused on the task. Every response comes back in three parts: the briefing itself, the source pages that fed it with slugs for traceability, and a small KB index showing corpus stats and the exact queries that were run. The README gives concrete examples. A sales agent preparing for a renewal call describes the customer situation and goal; an engineering agent about to migrate from session auth to JWT describes the change and the risk it is worried about; a market analyst writes a brief about entering a healthcare compliance market. There are optional parameters for depth (standard or deep) and for restricting results to specific slug prefixes when the knowledge base is partitioned by topic. Installation needs Node.js 18 or newer, a running GBrain server, an Anthropic API key for the synthesis step, and an MCP-compatible client such as OpenClaw, Claude Desktop, or Cursor. You clone the repo, install, fill in .env, and start the MCP server on port 7351. By default it uses claude-sonnet-4-6 for synthesis, and the model can be swapped via the SYNTHESIS_MODEL environment variable. The repository ships Promptfoo eval configs, with a candid note that benchmarking task-first retrieval against query-first retrieval has a structural limit because anyone writing test queries already knows the corpus. The project is MIT licensed, version 1.1.0, and built on top of GBrain by Garry Tan.

Copy-paste prompts

Prompt 1
Install brain-concierge as an MCP server in Claude Desktop and walk me through the .env values
Prompt 2
Show me an example MCP call where a sales agent asks brain-concierge to prep for a renewal call
Prompt 3
Swap the default claude-sonnet-4-6 synthesis model in brain-concierge for claude-opus-4-7 and explain the trade-off
Prompt 4
Run the Promptfoo evals shipped with brain-concierge and explain what each test case measures
Open on GitHub → Explain another repo

Generated 2026-05-22 · Model: sonnet-4-6 · Verify against the repo before relying on details.