Skip to main content
Glama
brain-mcp
by ladvoy

brain-mcp

MIT MCP adapter for the Ladvoy brain. The brain returns structured context blocks; the client LLM writes the natural answer.

Hermes / Cursor  --stdio-->  brain-mcp  --HTTP-->  brain /v1

Tools

Tool

Brain call

get_context

POST /v1/projects/{id}/context

get_portrait

GET /v1/projects/{id}/cards/{slug}

propose_memory

POST …/cards/{slug}/facts (pending without source)

search_audit

GET …/audit

Related MCP server: andish-mcp

Setup

npm install
npm run build

Environment:

Var

Required

Meaning

BRAIN_BASE_URL

no (default http://127.0.0.1:8080)

Brain origin

BRAIN_PROJECT_ID

yes

Project slug

BRAIN_CONTEXT_TOKEN

yes

Query-plane token

BRAIN_ADMIN_TOKEN

for portrait / propose / audit

Privileged token

BRAIN_PRINCIPAL

yes

Principal slug for this MCP process

Hermes / Cursor

Copy examples/mcp.rebecca.json or examples/mcp.rose.json into your MCP config (replace tokens and cwd). One process per principal in v0 — run two server entries for two-role dogfood.

Dogfood (isolation)

With brain running and Carter imported into the project:

export BRAIN_BASE_URL=http://127.0.0.1:18080
export BRAIN_PROJECT_ID=carter
export BRAIN_CONTEXT_TOKEN=…
export BRAIN_PRINCIPAL=rebecca   # required by config loader; overridden per role in the script
npm run dogfood

Asserts: rebecca gets child interpretation (no urologist); rose gets the original health fact.

License

MIT — see LICENSE.

Available Tools

4 tools
get_contextA

Use this when the user asks about family members, relatives, gifts, health, plans, household, school, or tastes in the Ladvoy project memory. Do NOT use for general knowledge, coding, or topics unrelated to the family's stored memory. Returns a structured context block (facts + audit) — never a finished natural-language answer; you compose the reply.

Inputs: query (required), intent_hint, budget_tokens, include_history.

get_portraitA

Use this when the user asks to see a person's or subject's full portrait card (slug) from family memory. Do NOT use for assembling an answer to a free-form question — prefer get_context.

Inputs: slug (required).

propose_memoryA

Use this when the user (or you on their behalf) wants to suggest a new memory fact for a card. The fact is stored as pending until the owner confirms. Do NOT invent facts the user did not ask to store. Prefer omitting source so the fact stays pending.

Inputs: card (required), text (required), source_ref, source_type.

search_auditA

Use this when the owner asks what was included/excluded in assemblies or which mutations happened. Do NOT use for answering family questions — prefer get_context.

Inputs: kind, actor, since.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: context retrieval, portrait retrieval, memory proposal, and audit search. The descriptions explicitly steer agents away from overlapping uses, such as preferring get_context over get_portrait for free-form questions.

    Naming Consistency5/5

    All four tools follow a consistent snake_case verb_noun pattern: get_context, get_portrait, propose_memory, search_audit. The naming is predictable and easy to scan.

    Tool Count5/5

    Four tools is well-scoped for a focused family-memory server covering read, proposal, and audit operations. Each tool has a distinct role and none feels redundant.

    Completeness3/5

    The surface covers reading context, reading portraits, proposing pending memory facts, and searching audit records. However, there is no tool to confirm, reject, update, delete, or list pending memory proposals, which leaves the proposal lifecycle incomplete.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      This MCP server provides governed read access to the Analytos Brain knowledge graph, enabling content and GTM agents to retrieve approved entities and relationships with access control and citations.
      2
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables MCP-compatible clients to search and query a team knowledge graph, retrieve document context, upload files for indexing, explore entities and connections, and monitor workspace usage and server health.
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Provides AI agents with durable, searchable project memory, session notes, skills, and bounded context packs over MCP while leaving orchestration to the client.
      15
      MIT