docbrain
Ingests Confluence pages to serve as a base knowledge source for answering organizational questions.
Ingests GitHub Pull Request comments to capture the 'why' behind architectural decisions and technical discussions.
Ingests GitLab Merge Request discussions to capture the context and reasoning behind code changes.
Ingests Intercom customer signals to detect unanswered questions and areas needing better documentation.
Ingests Jira tickets to capture documented requirements, edge cases, and project history.
Ingests Notion workspace data to centralize institutional knowledge for AI-driven documentation and search.
Ingests Opsgenie incident data to analyze operational patterns and capture incident resolution knowledge.
Ingests PagerDuty incident timelines to identify resolution patterns and automatically surface successful fixes.
Ingests Slack threads to capture institutional knowledge from resolved incidents and team Q&A.
Ingests Zendesk support tickets to identify documentation gaps and common customer issues.
Project Status: client source open, server closed. The source for everything DocBrain runs on your side of the network boundary — the
docbrainCLI, the IDE MCP server, and the offline.dbevevidence verifier — is in this repo undercrates/, MIT-licensed, built and tested in public CI — as is everything else in this repository. Audit exactly what runs in your environment and what leaves it. The server ships as free production Docker images (BSL 1.1 permits production use) with full Helm charts, complete configuration, the threat model, and all the docs to self-host in production. The server source stays closed for now — we originally targeted the first half of 2026 to publish it, we missed that date, and we won't post a new date until we're certain we can hit it. If a closed server is a dealbreaker for you, that's a rational position and we respect it: how DocBrain earns trust. Contributions: code PRs for the client crates, plus documentation, configuration, and bug reports. When the server source publishes, it will be published under the Business Source License 1.1.
The Problem
Every organization runs on knowledge that never gets written down: the decision from a meeting, the fix someone found at 2am, the workaround only one person knows. It lives in PRs, chat threads, tickets, and people's heads. When that person changes teams or quits, years of context walk out the door with them.
Tools that "index your docs and add a chatbot" solve the wrong half of the problem: they retrieve your stale, incomplete wiki slightly faster. The knowledge that actually runs your organization was never captured in the first place. And it's getting worse now that AI produces code, changes, and fluent documentation faster than any human can absorb — your agents read those docs too. More documentation is easy. Documentation your organization can trust is the scarce thing.
Related MCP server: MCPDocSearch
How DocBrain Works
DocBrain captures knowledge at the source, the moment it's created:
Someone merges a change ──→ decisions, caveats, procedures extracted
A team works through chat ──→ the answer, distilled from the thread
A deploy goes out ──→ what changed and why
On-call resolves an incident ──→ the fix and the root cause
Any other system you run ──→ ingested via the Connector SDKOn day one it also reads backwards. Point it at systems you have been using for years — archived Slack channels, closed tickets, merged pull requests, the wiki nobody has opened since 2022 — and it ingests them in place, read-only. Your first answer can come from a thread nobody remembers writing. Nothing is migrated and nobody has to refile anything.
Captured fragments are confidence-scored, connected into one memory, and composed into documentation with per-claim provenance. Drafts route through human review before anything publishes. Then DocBrain keeps the result honest: freshness tracking, contradiction detection, and staleness alerts as reality changes. Ask a question, get a cited answer — or an honest "I don't know" instead of a guess.
Quickstart
git clone https://github.com/docbrain-ai/docbrain.git && cd docbrain
./scripts/setup.sh # interactive wizard: picks provider, sets keys, starts servicesOr manually:
cp .env.example .env # set LLM_PROVIDER and API keys
docker compose up -d# Get the auto-generated admin API key
docker compose exec server cat /app/admin-bootstrap-key.txt
# Open the web dashboard
open http://localhost:3001
# Or ask a question via API
curl -H "Authorization: Bearer <key>" \
-H "Content-Type: application/json" \
-d '{"question":"How do I deploy to production?"}' \
http://localhost:3001/api/v1/askFull setup guide: docs/quickstart.md
Teach Your Agent
If your team uses Claude Code or Cursor, the docbrain-mcp server already gives your agent capture tools — most teams just never tell the agent to use them. Three lines in your CLAUDE.md turn every debugging session into documentation:
When we resolve an error or discover non-obvious behavior, call
docbrain_suggest_capture for the files involved. If a gap exists, draft a
3–5 line capture and ask me to approve it before calling docbrain_annotate.Your agent fixes something, checks whether the org already knows it, and — with your approval — files what's missing into the review queue. The knowledge gets captured at the only moment it's free: seconds after the fix. Full guide, including Cursor setup and the privacy model: docs/agents.md
What You Get
Capture from 13 built-in sources — Confluence, Slack, Teams, GitHub, GitLab, Jira, PagerDuty, Linear, OpsGenie, Rootly, Zendesk, Intercom, and local files, plus a language-agnostic Connector SDK for anything else. Ingestion guide →
Ask, with citations — hybrid vector + keyword search, confidence-scored answers; low confidence asks clarifying questions instead of guessing. API →
docbrain generate— on-demand docs grounded in your own runbooks, incidents, threads, and PRs, with per-claim provenance and honestneeds_inputfor what the knowledge can't answer. Generate guide →Quality gates on every doc — structural, style (your style guide, enforced automatically), and semantic scoring; nothing unscored enters the system. Style policy →
Review workflows and ownership — multi-stage approvals, space owners, SLAs, and governance dashboards, so documentation has accountability. Governance → · Reviews →
Offline evidence bundles — export a sealed, signed, hash-chained
.dbevrecord of answers, decisions, approvals and premise verdicts that anyone verifies offline — no DocBrain, no server, no network — with an open-source verifier (a Rust binary and a dependency-free Python script, proven byte-identical) returningVALID/TAMPERED/CANNOT_VERIFY. The trust comes from the math they run themselves, not from us. Evidence bundles →Autopilot — clusters unanswered questions into gaps, drafts grounded fixes, and routes them to human review. Nothing publishes without oversight. Autopilot →
Live intelligence — reads connected systems at the moment you ask, then reconciles that with indexed history in one cited answer. Write-capable tools are dropped at discovery, so it never holds the capability to change anything. MCP tools →
Freshness and contradiction detection — stale docs flagged, conflicting docs surfaced, cascade staleness traced across dependent docs. Knowledge intelligence →
Learning pipeline (optional, off by default) — feedback on answers can fine-tune the embedding model on your corpus, so retrieval learns what "similar" means in your codebase. Versions are gated on quality before promotion and roll back automatically if they regress. Runs entirely on your infrastructure. Learning →
Predictive intelligence — onboarding-gap detection from what new joiners ask in their first 30 days, seasonal query forecasting, and code-change-triggered doc review. Knowledge intelligence →
Source-system ACL mirroring — Confluence restrictions, Slack channel membership, and repo visibility enforced at query time. Access control →
RBAC, SSO, audit logging — 4-tier roles, GitHub/GitLab/OIDC SSO, per-space isolation. RBAC →
Everywhere your team works — web dashboard, Slack commands, CLI, CI hooks, and MCP tools for Claude Code, Cursor, and any MCP-compatible editor. Slack →
Architecture
graph TB
subgraph "Capture Layer"
CI["CI/CD Pipelines"]
IDE["IDE (MCP)"]
SLACK["Slack / Teams"]
WEB["Web UI"]
CLI["CLI"]
API_EXT["External APIs"]
end
subgraph "DocBrain Server (Rust / Axum)"
FRAG["Fragment Router"]
QUAL["Quality Pipeline"]
CLUST["Clustering Engine"]
COMP["Composition Engine"]
REV["Review Workflows"]
RAG["RAG Pipeline"]
AUTO["Autopilot"]
GOV["Governance"]
EVT["Event Bus + Webhooks"]
end
subgraph "Storage"
PG["PostgreSQL"]
OS["OpenSearch<br/><i>vector + keyword</i>"]
RD["Redis"]
end
CI & IDE & SLACK & WEB & CLI & API_EXT --> FRAG
FRAG --> QUAL --> CLUST --> COMP --> REV
WEB & CLI & SLACK --> RAG
RAG & AUTO & GOV --> PG & OS
EVT --> PGRust server, PostgreSQL, OpenSearch, Redis. Full design: docs/architecture.md
Security
DocBrain runs entirely in your infrastructure, read-only against your sources. You choose where the model runs: fully local via Ollama (zero egress), your own cloud account (Bedrock, Azure, Vertex — your KMS, your audit trail), or a provider API. Documents, embeddings, and indexes never leave your network; only the query and the relevant chunks reach the LLM you chose.
API keys are Argon2-hashed, every endpoint enforces RBAC, rate limits are per-key, and admin actions are audit-logged. The client code you install is open source in crates/. The full threat model — 11 analyzed attack vectors and an operator checklist — is published: THREAT_MODEL.md
LLM providers (14): Anthropic, OpenAI, AWS Bedrock, Ollama, Google Gemini, Vertex AI, Azure OpenAI, DeepSeek, Groq, Mistral, xAI, OpenRouter, Together AI, Cohere. Provider setup →
Deployment
# Docker Compose — everything behind a single origin at localhost:3001
docker compose up -d
# Kubernetes
helm install docbrain ./helm/docbrain \
--set llm.provider=anthropic \
--set llm.anthropicApiKey=sk-ant-...Kubernetes guide → · Configuration →
Documentation
Running locally in 5 minutes | |
All environment variables and options | |
LLM and embedding provider configuration | |
System design, data flow, memory, freshness | |
Connecting the 13 built-in knowledge sources | |
Build custom connectors for any knowledge source | |
Ownership, SLAs, breach detection, dashboards | |
Multi-stage approval pipelines | |
Graph, analytics, predictive intelligence | |
Gap detection, draft generation, feedback loop | |
Grounded on-demand doc generation | |
Teaching Claude Code / Cursor to file docs via MCP | |
Offline-verifiable | |
Full REST API documentation | |
Role-based access control and SSO | |
Slash commands, message shortcuts, thread capture | |
Helm chart deployment |
See It In Action
▶ The quickstart, recorded unedited — install → ingest → cited answer → generate turning raw on-call notes into a runbook that cites its sources. 90 seconds, shipped images, 100% local models, nothing staged.
What is DocBrain?, 5-min overview | Deep Dive Podcast, 20-min deep dive |
MCP Preview, 30-sec IDE demo | Full Proof Demo, Downvote → Gap → Draft |
Independent Assessment
We opened Atlassian's own AI assistant, asked it to compare itself with DocBrain, and published the full response unedited — including where it wins.
"DocBrain's 'capture knowledge that was never written down' is solving a problem I fundamentally can't." — Rovo, answering a direct comparison prompt
Where Rovo wins: native Atlassian integration, zero setup for existing Atlassian Cloud teams, broad work execution, and 3M+ users. Full transcript →
What We Haven't Proven Yet
A project built on refusing to overclaim shouldn't overclaim about itself.
The server is closed source. The client that runs inside your network is MIT and auditable, in
crates/. The server isn't published. We targeted the first half of 2026, missed it, and won't name a new date until we're certain of it.We publish no measured accuracy benchmark. Grounding is measured internally and gates every model promotion, but no number goes in this README until it's measured across real customer corpora and we can publish the methodology with it.
Self-hosting isn't unique to us. Open-source alternatives exist and several are genuinely good at retrieval — some more permissively licensed than we are. What they don't do is capture what was never written down. Judge us on that.
Our evidence base is strongest for software teams. The mechanism generalises across support, operations and the rest of the business; the published statistics haven't been measured everywhere, and we won't imply otherwise.
Community
GitHub Issues: Bug reports and feature requests
GitHub Discussions: Questions and community conversation
Email: hello@docbrainapi.com
Contributing
We welcome contributions. The client tooling source (crates/) accepts code PRs; server-side contributions land best as documentation, configuration, and bug reports. See Contributing Guide.
Security Reports
To report a security vulnerability, see SECURITY.md. Do not file a public issue.
License
This repository is MIT licensed — the docbrain CLI, the MCP server, the Helm
charts, configuration, examples and documentation.
The DocBrain server binaries and container images are distributed under the Business Source License 1.1. Production use is permitted, except offering DocBrain as a hosted service. For alternative licensing: licensing@docbrainapi.com.
Code of Conduct
Contributor Covenant Code of Conduct. Report concerns to hello@docbrainapi.com.
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 Connectors
Versioned documentation registry and semantic search for AI tools and coding assistants.
Provide your AI coding tools with token-efficient access to up-to-date technical documentation for…
Governed, auditable knowledge your team curates for its AI assistants, self-hostable
Generate, search, and manage codebase documentation on DocuWriter.ai. 72 tools incl. Autopilot.
Related MCP Servers
- FlicenseBqualityFmaintenanceTransform your non-existent or unreadable docs into an intelligent, searchable knowledge base that actually answers those 'basic questions' before they're asked.1135
- AlicenseNot gradedqualityNot gradedmaintenanceCrawls documentation websites and provides semantic search capabilities over the content through vector embeddings, enabling natural language queries of technical documentation.2
- AlicenseAqualityDmaintenanceAutomatically analyzes codebases and generates beautiful Mintlify-style documentation with API references, code examples, and changelogs. Keeps documentation synchronized with code changes across multiple programming languages.81MIT
- AlicenseNot gradedqualityDmaintenanceAnalyzes codebases to automatically generate README, API docs, architecture diagrams, and CHANGELOG.16MIT
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/docbrain-ai/docbrain'
If you have feedback or need assistance with the MCP directory API, please join our Discord server