brains

mcp
Guvenlik Denetimi
Basarisiz
Health Uyari
  • License — License: AGPL-3.0
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 5 GitHub stars
Code Basarisiz
  • rm -rf — Recursive force deletion command in .github/workflows/release.yml
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

Self-hosted AI knowledge agent — TypeScript, Bun, MCP. Own your data, run your own brain.

README.md

brains

A self-hosted AI knowledge agent that reads and writes your markdown.

brains lets you run an AI assistant around files you own. Your notes, posts, pages, images, and profile data live as markdown in a local brain-data/ folder. The running brain can search that content, update it, expose it to tools like Claude or Cursor, and publish a static website from the same source.

Status: 0.2.0 alpha; stable nomination is pending final authoring, live/eval, and deployment evidence. It works today, but APIs outside the documented 0.2 candidate surface may still change before 1.0. See the roadmap and STABILITY.md.

Who this is for

Use brains if you want to:

  • keep your knowledge in markdown instead of a hosted app
  • run a personal or site-focused AI assistant on your own machine or server
  • connect that assistant to Claude Desktop, Cursor, or other MCP clients
  • publish a website from the same content the assistant uses
  • customize behavior with plugins when the defaults are not enough

It is not a hosted SaaS, a Notion/Obsidian clone, or a stable third-party plugin platform yet.

Quickstart

Install Bun first, then:

bun add -g @rizom/brain
brain init mybrain --recipe personal
cd mybrain
cp .env.example .env
# edit .env and set AI_API_KEY
brain start

This creates a new brain instance with:

  • brain.yaml — main configuration
  • .env.example and .env.schema — environment/secrets reference
  • package.json — pins the runtime package
  • tsconfig.json, .gitignore, and a local README.md
  • brain-data/ — created/seeded on first run when file sync is active

On first start, site-enabled instances print a one-time /setup URL. Open it locally, register a passkey, and use that passkey for browser and OAuth-based MCP access. Auth state is stored in ./data/auth; keep it when deploying or backing up.

For the full walkthrough, see Getting Started.

Connect Claude, Cursor, or another MCP client

MCP is the protocol many AI apps use to connect to external tools and data.

For local stdio MCP, point the client at your brain directory:

{
  "mcpServers": {
    "mybrain": {
      "command": "brain",
      "args": ["start"],
      "cwd": "/absolute/path/to/mybrain"
    }
  }
}

For HTTP MCP, use:

http://localhost:8080/mcp

or, after deployment:

https://your-domain.com/mcp

OAuth-capable clients can use the built-in browser/passkey login. MCP_AUTH_TOKEN still exists as a legacy fallback for clients that cannot use OAuth.

How it works

A brain has three main pieces:

  1. Content — markdown files in brain-data/
  2. Definition + bundles — one ordered catalog with eight capability bundles and the policy-only team bundle
  3. Runtime — the brain process that resolves selection, indexes content, serves tools, and optionally builds a site
brain.yaml + brain-data/
  → brain start
  → running AI knowledge agent
     ├─ content tools
     ├─ MCP endpoint
     ├─ optional web dashboard / site
     └─ optional integrations like Discord

Recipes and postures

  • headless — core
  • personal — core + media + web + chat
  • professional — core + media + automation + web + chat + site + publishing + federation
  • team — core + media + automation + web + chat + site + team, plus docs

If you are trying brains for the first time, use brain init --recipe personal. Recipes expand to explicit YAML and have no runtime meaning.

Documentation

Start here:

Deeper topics:

Repository map

This is mainly useful if you are developing the framework itself:

packages/brain-cli/    canonical definition, recipes, assets, and @rizom/brain CLI/runtime
packages/brains-ops/   operator CLI for fleets: @rizom/ops
shell/                 core runtime and services
plugins/               built-in service plugins
entities/              built-in content/entity plugins
interfaces/            built-in interfaces: MCP, web, Discord, etc.
shared/                shared utilities, UI, themes, site engine
sites/                 site packages
deploy/                deployment templates and helper scripts
docs/                  documentation and plans
apps/                  local development / legacy instance directories

Requirements

Requirement Support
Bun >= 1.4.0
Runtime Bun only
OS macOS, Linux, Windows via WSL2

Contributing

This project is currently maintainer-led. Bug reports, documentation fixes, and focused patches are welcome. See CONTRIBUTING.md.

License

This repository uses a split licensing model:

  • Core — the runtime, brain models, agents, interfaces, plugins, the @rizom/brain CLI, deploy tooling, and apps — is licensed under AGPL-3.0-only.
  • SDK and contract packages — @rizom/site, @rizom/theme-default, @rizom/theme-rizom-ai, @brains/contracts, and @brains/atproto-contracts — are licensed under Apache-2.0 (see the LICENSE file in each package directory).

Plugins, themes, and site packages built against the Apache-licensed interfaces are not considered derivative works of the runtime and may be licensed however their authors choose. In particular, importing types and interfaces from @rizom/brain for the purpose of authoring a plugin, theme, or site package does not, by itself, make the resulting work a derivative of the AGPL-licensed runtime.

Copyright © Rizom B.V.

The Rizom name and logo are trademarks; see TRADEMARKS.md.

Yorumlar (0)

Sonuc bulunamadi