{"id":51042197,"url":"https://github.com/lobrzut/brain","last_synced_at":"2026-06-22T11:32:56.719Z","repository":{"id":365513242,"uuid":"1272402613","full_name":"lobrzut/brain","owner":"lobrzut","description":"Portable second brain: Ollama, vault, RAG, MCP. Windows + Linux. Article: https://dev.to/lobrzut/self-hosted-second-brain-with-mcp-59d4","archived":false,"fork":false,"pushed_at":"2026-06-17T17:45:33.000Z","size":3103,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-17T18:10:14.866Z","etag":null,"topics":["claude","cursor","fastapi","homelab","linux","mcp","ollama","python","rag","second-brain","self-hosted","windows"],"latest_commit_sha":null,"homepage":"https://github.com/lobrzut/brain#readme","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lobrzut.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-17T15:17:54.000Z","updated_at":"2026-06-17T17:46:28.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/lobrzut/brain","commit_stats":null,"previous_names":["lobrzut/brain"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/lobrzut/brain","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lobrzut%2Fbrain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lobrzut%2Fbrain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lobrzut%2Fbrain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lobrzut%2Fbrain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lobrzut","download_url":"https://codeload.github.com/lobrzut/brain/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lobrzut%2Fbrain/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34647748,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-22T02:00:06.391Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["claude","cursor","fastapi","homelab","linux","mcp","ollama","python","rag","second-brain","self-hosted","windows"],"created_at":"2026-06-22T11:32:55.442Z","updated_at":"2026-06-22T11:32:56.707Z","avatar_url":"https://github.com/lobrzut.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# Brain AI Hub\n\n[![Dashboard demo](docs/screenshots/dashboard-demo.gif)](https://github.com/lobrzut/brain)\n\nPortable **personal AI platform** — local LLM, knowledge vault, RAG, transcript distillation, and MCP integration for Claude Code, Cursor, and other agents.\n\nWrite-up: [Self-hosted second brain with MCP](https://dev.to/lobrzut/self-hosted-second-brain-with-mcp-59d4) (DEV Community)\n\n| Edition | Target | Install |\n|---------|--------|---------|\n| **Windows** | Portable folder, USB-copyable, AMD ROCm / Vulkan | `Install.bat` → `Start.bat` |\n| **Linux** | Homelab server, LAN MCP gateway (SSE) | `curl …/linux/bootstrap.sh \\| sudo bash` |\n\nInstall scripts support **Polish** and **English** (`locale.env`: `LANG=pl` or `LANG=en`).\n\n---\n\n## What Brain does\n\n1. **Local LLM** — Ollama (qwen2.5, nomic-embed). OpenAI-compatible API at `:11434/v1`.\n2. **Knowledge store** — vault (Markdown/Obsidian), library (PDF/EPUB/DOCX), semantic RAG (sqlite-vec), knowledge graph.\n3. **Agent bridge** — MCP servers (`brain-vault`, `brain-library`, `brain-rag`) + one-click deploy to Claude Desktop, Claude Code, Cursor, VS Code, Antigravity.\n\n**Pipeline:** transcript distillation from Claude/Cursor/Antigravity → vault notes, redistill, dedupe, code index, scheduled background jobs.\n\n**Dashboard** (`:7860`): service control, chat widget, agent workflow prompts, API key vault, GPU/VRAM monitor.\n\n---\n\n## Screenshots\n\n| Dashboard | Brain (vault / graph) |\n|-----------|------------------------|\n| ![Dashboard home](docs/screenshots/dashboard-home.png) | ![Brain tab](docs/screenshots/dashboard-brain.png) |\n\n| Pipeline |\n|----------|\n| ![Pipeline tab](docs/screenshots/dashboard-pipeline.png) |\n\n---\n\n## Quick start — Windows\n\n```\ngit clone https://github.com/lobrzut/brain.git\ncd brain\nInstall.bat    # first time — Python embed + Ollama + pip deps\nStart.bat      # tray icon + dashboard\n```\n\nOpen **http://127.0.0.1:7860**\n\n| File | Action |\n|------|--------|\n| `Install.bat` | Download runtime, install deps, create `config.json` |\n| `Start.bat` | Launch tray + Ollama + dashboard |\n| `Stop.bat` | Stop all Brain processes |\n| `windows/Locale.ps1` | PL/EN strings for scripts |\n\nCopy the whole folder to another PC — run `Install.bat` there (models re-pull separately).\n\n---\n\n## Quick start — Linux server\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/lobrzut/brain/main/linux/bootstrap.sh | sudo bash\n```\n\nDefault paths:\n- Code: `/opt/brain`\n- Data: `/var/lib/brain`\n- Dashboard: `http://\u003chost\u003e:7860`\n- MCP SSE gateway: `http://\u003chost\u003e:7862` (for remote Cursor/Claude)\n\nRemote Cursor config example: [`linux/docs/cursor-mcp-remote.json`](linux/docs/cursor-mcp-remote.json)\n\n```bash\n# Optional: language for install messages\necho 'LANG=en' | sudo tee /opt/brain/locale.env\n```\n\n---\n\n## Repository layout\n\n```\nbrain/\n├── Install.bat / Start.bat / Stop.bat   # Windows entrypoints\n├── windows/          # install.ps1, start.ps1, stop.ps1, Locale.ps1 (PL/EN)\n├── linux/            # bootstrap.sh, install.sh, systemd, MCP gateway\n├── dashboard/        # FastAPI backend + static UI\n├── pipeline/         # distill, RAG, agents, scheduler, skills runner\n├── skills/           # Brain agentic workflows (SKILL.md)\n├── data/             # templates only in git — your vault/library stay local\n├── config.example.json\n└── CONNECT.md        # integration guide (MCP, proxy, backup)\n```\n\n---\n\n## Ports\n\n| Port | Service |\n|------|---------|\n| `7860` | Dashboard (FastAPI) |\n| `7862` | MCP SSE gateway (Linux server edition) |\n| `11434` | Ollama |\n\n---\n\n## MCP — connect your IDE\n\n**Windows (stdio, local):** Dashboard → TOOLS → deploy MCP to Cursor / Claude Code.\n\n**Linux (SSE, LAN):** Point `~/.cursor/mcp.json` at your server — see `linux/docs/cursor-mcp-remote.json`.\n\nThree servers:\n- `brain-vault` — read/write vault markdown\n- `brain-library` — PDF/EPUB library files\n- `brain-rag` — semantic search, skills, code index, user profile\n\n---\n\n## Security notes\n\n- `data/api-keys.json` is **gitignored** — never commit API keys.\n- `data/vault/` is **your private knowledge** — excluded from git.\n- Linux dashboard binds to `0.0.0.0` by default — use firewall/VPN for LAN-only access.\n- Dashboard has no built-in auth (single-user homelab design).\n\n---\n\n## Hardware\n\n- **Windows:** AMD RX 6800+ with Vulkan/ROCm, or NVIDIA with CUDA drivers. CPU-only works but distillation is slow.\n- **Linux:** Ollama via official install script; GPU auto-detected by Ollama.\n\n---\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n\n---\n\n## PL — szybki start\n\n**Windows:** `Install.bat` → `Start.bat` → http://127.0.0.1:7860\n\n**Linux:** `curl -fsSL https://raw.githubusercontent.com/lobrzut/brain/main/linux/bootstrap.sh | sudo bash`\n\n**Język skryptów:** utwórz `locale.env` w katalogu brain z linią `LANG=pl` lub `LANG=en`.\n\nSzczegóły integracji MCP i proxy: [CONNECT.md](CONNECT.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flobrzut%2Fbrain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flobrzut%2Fbrain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flobrzut%2Fbrain/lists"}