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.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Why decisions get broken
Most engineering decisions live outside the repository, in Slack threads, pull request comments, design docs, and tickets. A coding agent editing a file only sees the code and comments in git. If a constraint was agreed in a pull request or a Slack channel, the agent doesn't know about it, and tests only fail if someone wrote a test for that constraint.
Related MCP server: MCPDocSearch
How it works
DocBrain connects those decisions to the files they affect, checks whether the facts they depend on are still true, and shows them before the file changes:
Read-only connectors pull decisions from Slack, GitHub, GitLab, Confluence, Jira, PagerDuty, and custom plugins. In an editor session, you can also say "capture this" and approve the draft before anything is saved.
Between sessions, DocBrain checks each decision's premises against its source (for example,
cert-manager is pinned to chart version 1.21.1) and records when a value changes.Before an edit and on every pull request, DocBrain shows the decisions and broken-premise warnings for the touched files. It warns by default and blocks when you configure it to. Active records sync to
.knowledge/as plain Markdown so checks also run offline.
State | Meaning |
| the source still matches the premise |
| the source changed; includes the new value and the date |
| the source couldn't be read on the last check |
| checks are paused for this premise |
When a source can't be read, DocBrain marks the premise uncheckable instead of broken so a network error doesn't produce a false alert.
Quickstart
1. Start the server
git clone https://github.com/docbrain-ai/docbrain.git && cd docbrain
./scripts/setup.sh./scripts/setup.sh configures your model provider (local Ollama with no API key, or any of 14 cloud providers), generates keys, creates your account, and starts the web app and API at http://localhost:3001. For manual Docker Compose or Kubernetes setup, see the quickstart and Kubernetes guide.
2. Connect your coding agent
claude plugin marketplace add docbrain-ai/docbrain --scope project && claude plugin install docbrain@docbrain --scope project
claude mcp add --transport http --scope project docbrain http://localhost:3001/api/v1/mcpRun /mcp in Claude Code, pick docbrain, and click Allow in your browser. Add these lines to CLAUDE.md or AGENTS.md so the agent checks DocBrain before editing:
Before editing files you have not worked in before, call docbrain_context
with their repo-relative paths and read what comes back first.For Cursor, VS Code, or stdio setup, see coding agents and examples/mcp-configs/.
Architecture
DocBrain runs a Rust server, PostgreSQL, OpenSearch, and Redis behind a single origin. On Kubernetes, the default Helm chart requests 500m CPU and 2 GiB of memory for PostgreSQL and a few hundred megabytes each for the server and web app; the optional learning trainer is capped at 8 GiB.
Everything runs in your network and reads your connected sources without writing to them. Confluence restrictions, Slack channel membership, and repository visibility apply to queries, and API keys are hashed with Argon2. Client and verification code in crates/ and tools/ is MIT licensed; see architecture, access control, and THREAT_MODEL.md.
Navigate
Task | Start here |
Run locally with Ollama or cloud models | |
Deploy on Kubernetes with SSO and permissions | |
Wire up Claude Code, Cursor, VS Code, or the CLI | Coding agents, MCP configs, Claude Code plugin, CLI reference |
Connect Slack, GitHub, Confluence, or custom tools | Ingestion guide (13 built-in sources), Connector SDK |
Inspect | |
Audit security, data retention, and open client crates | |
Use cited Q&A, Slack, doc drafting, or the REST API | API reference, MCP tools, Slack, Knowledge intelligence, Autopilot, Generate, Governance, Reviews, Style policy, Learning |
See it in action
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 |
Contributing and license
Code pull requests are welcome in crates/, plugins/, and helm/, and bug reports, configuration fixes, and documentation improvements are welcome across the repository. Read the contributing guide, security policy (don't file public issues for vulnerabilities), and code of conduct. For questions or feedback, open a GitHub Issue, start a Discussion, or email hello@docbrainapi.com.
This repository is MIT licensed. DocBrain server binaries and container images are distributed under the Business Source License 1.1, which permits production use except offering DocBrain as a hosted service; for alternative licensing, email licensing@docbrainapi.com.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Shared markdown docs for people and AI agents, kept as plain files in your team's GitHub repo.
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…
Train your team's AI on what your team knows, with no fine-tuning.
Related MCP Servers
- AlicenseBqualityDmaintenanceTransform your non-existent or unreadable docs into an intelligent, searchable knowledge base that actually answers those 'basic questions' before they're asked.1134MIT
- AlicenseNot gradedqualityNot gradedmaintenanceCrawls documentation websites and provides semantic search capabilities over the content through vector embeddings, enabling natural language queries of technical documentation.2MIT
- 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.MIT