io.github.labacacia/banyan-memory
OfficialClick on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@io.github.labacacia/banyan-memoryRemember that the user prefers concise answers."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
English | δΈζη
π³ Banyan Brain Lite
Stable 1.5.1 β an offline-first, governed memory and knowledge node for AI agents, backed by SQLite.
Banyan Brain Lite is an event-sourced memory store that agents can Remember(), Search(), Update(), and Forget() against. It speaks the NPS-3 Memory Node surface through NPS.NWP, uses Ed25519 NIDs issued by a local or remote NIP CA, and provides an OLS/OIDC operator identity track for human administrators.
The current source tree is the stable 1.5.1 Banyan governed memory and knowledge release.
What is in 1.5.1
Hybrid retrieval β BM25 / FTS5 + ONNX vector search + RRF fusion. When
sqlite-vecis available, vector search uses ANN; otherwise it falls back to in-memory cosine.Offline semantic embeddings β pluggable
IEmbedder,bge-small-zh-v1.5ONNX support, and a hashing fallback for fully offline operation.Event-sourced memory β immutable write/update/forget log plus a current snapshot table for fast reads.
NPS Memory Node compatibility β
banyan serveexposes/.nwm,/.schema, andPOST /api/memory/querythrough the NWP Memory Node middleware.NID authentication β
Authorization: NID <base64(IdentFrame)>, withanonymous-allowed,writes-required, andall-requiredmodes.Embedded NIP Mini-CA β local certificate issuance, verification, revocation, and NPS-3 Β§8 compatible HTTP routes.
Remote CA support β a Lite node can verify identities issued by a remote
nip-ca-serverusing--trusted-issuerand--ocsp-url.Operator identity β OLS/OIDC-backed admin setup, login, JWT, and SQLite-backed identity stores.
Web UI β memory and Wiki search/write UI using the shared packable Governance component library, with real detail drawers, lifecycle and access summaries, permission-filtered provenance traces, responsive narrow-screen layout, agent and CA operations, first-run admin setup, and login enforcement.
MCP server β stdio MCP via
banyan mcpand Streamable HTTP MCP at/mcpwhen runningbanyan web.Governed Wiki β editable tree-structured knowledge with strong ETags, SQLite FTS, source-version lineage, policy bindings, and authorization-before-body reads.
Governance reconciliation β bounded body-free scans report current objects without governance and materialized governance without objects as hash-only repair items; scoped file-backed Pack mounts are included.
Source authorization contracts β file/Pack snapshots, revalidation, live-source checks, Pro Pool groups, and Ent Enterprise IAM share a fail-closed gate for narrowing, TTL, group changes, and adapter outages.
Audited policy simulator β canonical
policy.evaluaterequires Admin visibility, reads body-free descriptors, never mutates policy, and withholds explanations if its hash-only audit cannot be persisted.Optional disclosure grounding β a default-off quality stage can annotate or further filter already-authorized claims; it cannot grant access or restore policy-filtered content.
Explicit retention and purge β durable archive/purge jobs are epoch-bound and leased; purge removes bodies, indexes, and last-reference governance blobs before writing a body-free receipt and tamper-evident audit.
Knowledge packs β
.banyanpackv2 signing, mount trust through the NID/CA chain, in-pack vector recall, and pack version pin / upgrade / rollback.Observability and audit β Lite OpenTelemetry wiring, memory-operation metrics, and tamper-evident local audit records.
Single-binary CLI β installable as a .NET tool with memory, CA, agent, embedder, web, MCP, and NWP commands.
Related MCP server: Awareness Local
Try MCP in 5 minutes
For a local L0 evaluation, no model download, CA, admin account, or separate server is required:
dotnet tool install -g Banyan.Mcp.Server --version 1.5.1
banyan-mcpThe public MCP-only tool has a closed public NuGet dependency graph. It creates
~/.banyan/memory.db, uses the offline hashing embedder, and prints a
ready-to-paste mcpServers block for Claude Desktop and Cursor.
The MCP client can immediately call remember, then search, through the same
governed Application pipeline used by the other Lite transports.
Windows users can instead open
banyan-memory-1.5.1-win-x64.mcpb from the GitHub release for one-click Claude
Desktop installation. The same server is published as
io.github.labacacia/banyan-memory in the official MCP Registry.
Quick mode is intentionally local and trusted. Move to the full setup below
when you need ONNX retrieval, NID agent identity, browser administration, or
Ivy Hub integration. OpenTelemetry distinguishes the paths with
banyan.lite.mcp_starts{mode="quick|standard"}.
Full governed setup
# 0. Install the full Banyan Brain Lite 1.5.1 Windows or Debian release,
# then verify the CLI.
banyan --version
# 1. Pull the embedder model and sqlite-vec extension (~24 MB)
banyan embedder download
# 2. Bootstrap the embedded NID CA
export BANYAN_NIP_CA_PASSPHRASE='your-passphrase'
banyan ca init
# 3. Create an admin account from CLI, or use the browser setup flow later
banyan init --admin-username admin --admin-password 'change-me-now'
# 4. Issue an agent certificate
banyan agent issue --id summarizer-01 --cap memory.read,memory.write \
--key-out ~/.banyan/agents/summarizer-01.key
# 5. Start the Web UI
export BANYAN_EMBEDDER=onnx
banyan web
# Open http://localhost:5180Release artifacts include a per-user Windows installer with an Add/Remove
Programs uninstaller (banyan-lite-1.5.1-setup.exe) and a Debian package
(banyan-lite_1.5.1_amd64.deb).
When upgrading a legacy 1.1.x machine-wide Windows installation, setup requests
elevation to remove the old Program Files copy before continuing with the
current per-user installation.
Back up memory.db together with memory.db.claim-kek. Stop Banyan before a
filesystem copy, or use SQLite's online backup API to produce a consistent WAL
snapshot. Claim statements are envelope-encrypted; a database restored without
its matching key file is intentionally unreadable.
On startup, banyan web and banyan serve resumably backfill legacy Memory
rows as legacy_unknown provenance and legacy Wiki rows as local manual
provenance. Progress is checkpointed in SQLite after each item. Operators can
preview or bound the run with BANYAN_GOVERNANCE_BACKFILL_DRY_RUN,
BANYAN_GOVERNANCE_BACKFILL_BATCH_SIZE,
BANYAN_GOVERNANCE_BACKFILL_ITEMS_PER_SECOND, and
BANYAN_GOVERNANCE_BACKFILL_MAX_ITEMS_PER_RUN. Set
BANYAN_GOVERNANCE_BACKFILL_RESTART=true only for an intentional full rescan,
such as after running an older binary during a rollback window.
Disclosure quality is disabled by default and therefore performs no supporting
body load. Set BANYAN_DISCLOSURE_QUALITY_MODE=advisory to retain authorized
claims with a bounded quality assessment, or required to keep only claims
reported as supported. BANYAN_DISCLOSURE_QUALITY_TIMEOUT_MS defaults to 2000
(100..30000), and BANYAN_DISCLOSURE_GROUNDING_MIN_COVERAGE defaults to
0.8 (0..1). Lite currently wires the local lexical evaluator, which receives
only the redacted claim and a claim-bounded signal derived from authorized
content, not the full supporting body. It is a low-cost grounding signal rather
than a semantic entailment authority. All modes run after authorization and can
only narrow output. The timeout is a hard wait boundary even when a custom
loader or evaluator ignores cancellation; enabled modes fail at startup when
either dependency is missing.
To run as a pure NWP Memory Node without the web UI:
banyan serve --allow-anon
# GET /.nwm
# GET /.schema
# POST /api/memory/queryTo register the same governed actions with Ivy Hub through
Ivy.ActNode.Sdk 0.2.12-alpha, enable the SDK runtime on the banyan serve
process. Lite's configured tenant/workspace must remain _local/default unless
the node governance scope is changed with the matching host options.
export IVY_ACT_NODE_ENABLED=true
export IVY_ACT_NODE_HUB_URL=http://127.0.0.1:17880
export IVY_ACT_NODE_ACCESS_TOKEN='<node-access-token>'
export IVY_ACT_NODE_TENANT_ID=_local
export IVY_ACT_NODE_WORKSPACE_ID=default
banyan serve --nid-auth writes-requiredThe SDK owns registration, WebSocket reconnect, catalog updates, heartbeat, and
invocation decoding. /api/act remains the separate NPS HTTP Action endpoint.
To require NID authentication for writes:
banyan web --nid-auth writes-required
banyan serve --nid-auth writes-requiredTo verify certificates from a remote CA instead of using the embedded CA:
banyan web --no-ca \
--trusted-issuer "urn:nps:ca:<ca-nid>=ed25519:<ca-pubkey>" \
--ocsp-url http://your-ca-host:17435/ocspTo connect Codex to Banyan's native Web MCP endpoint:
codex mcp add banyan-lite --url http://localhost:5180/mcpUse as agent memory
import requests
def recall(query: str, user_id: str, threshold: float = 0.50) -> list[str]:
r = requests.get(
"http://banyan-host:5180/api/memory/search",
params={"q": query, "mode": "hybrid", "k": 5, "namespace": f"user-{user_id}"},
timeout=2,
)
return [hit["content"] for hit in r.json()["hits"] if hit["score"] > threshold]
def remember(fact: str, user_id: str, agent_nid: str | None = None) -> None:
requests.post(
"http://banyan-host:5180/api/memory",
json={"content": fact, "namespace": f"user-{user_id}", "agentNid": agent_nid},
timeout=2,
)Recommended pattern: recall before each agent turn, and write only on explicit signals such as "remember this", user corrections, durable preferences, or decisions. See docs/recipes/agent-memory.md for namespace design, thresholds, write triggers, NID-attested mode, failure recovery, and anti-patterns.
Project structure
src/
βββ Banyan.ActNode # shared Ivy Act Node SDK lifecycle host
βββ Banyan.Core # IMemoryStore, IEmbedder, request/response records
βββ Banyan.Lite # SQLite memory store, BM25, vector search, RRF
βββ Banyan.Embedders # HashingEmbedder, OnnxEmbedder, EmbedderFactory
βββ Banyan.Auth # Embedded NIP CA, SQLite CA store, RemoteNipCaClient
βββ Banyan.Identity # OLS/OIDC human identity on SQLite
βββ Banyan.Web # ASP.NET Core Web UI + memory/agent/identity/CA REST APIs
βββ Banyan.Mcp # MCP tools and transport integration
βββ Banyan.Mcp.Server # public zero-config MCP-only .NET tool
βββ Banyan.Node # NWP Memory Node host
βββ Banyan.Cli # banyan .NET tool
tests/
βββ Banyan.Core.Tests
βββ Banyan.Lite.Tests
βββ Banyan.Auth.Tests
βββ Banyan.Identity.Tests
βββ Banyan.Node.TestsDocumentation
Document | Description |
Release notes and verification status for Banyan Brain Lite 1.5.1 | |
Historical release notes for Banyan Brain Lite 1.5.0 | |
Release notes and operational checklist for Banyan Brain Lite 1.1.0 | |
Historical release notes for Banyan Brain Lite 1.0.0 | |
Portable client profile for switching between Lite, Pro, and Ent | |
Governed Lite Wiki records, canonical API routes, ETags, and provenance | |
Claude Desktop / Claude Code MCP integration | |
Connecting an agent to Banyan through HTTP | |
Public Lite integration and capability profile | |
Canonical Pool scope, membership, and edition boundaries | |
SQLite memory, identity, and CA storage layout | |
How Banyan maps to NPS-3 NCP / NWP / NIP | |
Dual-track identity: NID for machines, OLS/OIDC for humans |
Edition boundary
This repository is the Lite distribution. Lite is Apache-2.0, single-node, SQLite-backed, and suitable for local agent memory, small deployments, demos, and embedded/offline workloads.
Commercial editions and enterprise deployment options are maintained separately. For commercial licensing or enterprise deployment, contact INNO LOTUS PTY LTD.
Built on
LabAcacia.NPS.{Core,NIP,NWP} β Neural Protocol Suite stack
labacacia/nip-ca-server β remote NIP CA server
InnoLotus.Root.{Core,Authentication,Authorisation,Oidc} β human-side identity stack
Microsoft.ML.OnnxRuntime + Microsoft.ML.Tokenizers β ONNX inference and WordPiece tokenization
Xenova/bge-small-zh-v1.5 β multilingual sentence embeddings
asg017/sqlite-vec β SQLite vector index
License
Apache-2.0. Copyright Β© 2026 INNO LOTUS PTY LTD.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityBmaintenanceAn MCP-native, local-first memory server that gives AI agents persistent, structured memory across sessions and tools, enabling them to maintain identity and context without reconfiguration.Last updated3MIT
- Alicense-qualityDmaintenanceA local-first MCP memory server that gives AI coding agents persistent memory with hybrid semantic and keyword retrieval, working fully offline.Last updated235215MIT
- Flicense-qualityDmaintenanceAn MCP server for managing persistent AI memory using hybrid search (keyword + semantic vector) with SQLite storage and offline-first local embeddings.Last updated
- Alicense-qualityDmaintenanceZero-knowledge, self-hostable MCP server providing encrypted durable memory for AI agents, with tools to save, recall, search, list, and delete memories.Last updated40MIT
Related MCP Connectors
User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.
Person-owned, portable AI memory as a remote MCP server, readable and writable by any MCP client.
Local-first RAG engine with MCP server for AI agent integration.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/labacacia/banyan-brain-lite'
If you have feedback or need assistance with the MCP directory API, please join our Discord server