Guide · Internal wiki

An MCP server for your internal wiki (Confluence, Notion, markdown repos)

For teams whose knowledge lives in a wiki and who want agents to search it.

Updated

To give an agent an MCP server for your internal wiki, export your pages as markdown or HTML, sync the folder into the Brain, and connect your agent to the BrainBox MCP URL. BrainBox ingests exports and markdown repos; there is no live Confluence or Notion connector.

  • Works from a folder of md, txt, html, pdf or docx files.
  • There is no live Confluence or Notion connector; export first, then sync.
  • Subfolders become nested namespaces, and sourceKey keeps a page's identity across renames.

1. Export to a folder

Use your wiki tool's export to produce markdown or HTML files, one per page, and keep the folder structure. Subfolders become nested namespaces, so an eng/runbooks folder lands in kb/eng/runbooks when you sync with --namespace kb.

2. Sync it

Run a dry run, then the real sync. If your export includes a stable page id, put it in each file's frontmatter as sourceKey so a rename does not look like a delete and a new page.

npx -y @brainbox-labs/cli@latest sync ./wiki-export --namespace wiki --dry-run
npx -y @brainbox-labs/cli@latest sync ./wiki-export --namespace wiki

3. Connect your agent

Point the agent at the MCP URL. Claude Code and Codex get the plugin; Claude Desktop uses a custom connector. See the per-agent guides.

https://ctx.brainbox-ai.app/api/org-mcp

4. Re-sync as the wiki changes

Export again and re-run sync. Edited pages are ingested, unchanged ones are skipped, and pages missing from the export are reported as pending deletes for you to review.

How each kind of source gets in
SourceHow it gets inNote
Markdown reposync the folderLinks between pages are stored with the page
Confluence or NotionExport to markdown or HTML, then syncNo live connector
PDF or DOCXsync the folderConverted to markdown automatically; not layout-aware
JSON, CSV, other exportsConvert to markdown, then syncsync does not pick these up

FAQ

Is there a Confluence or Notion connector?
No. BrainBox ingests exports and markdown. Export your pages from the tool, put them in a folder and sync it.
Which file types does sync read?
md, markdown, txt, html, htm, pdf and docx. Convert JSON, CSV and other exports to markdown first.
How do agents search the wiki?
Through the MCP server: recall_wiki searches the full text, get_wiki_page reads a page, and list_wiki_pages lists pages by namespace.
How do I clean the export before it is ingested?
Use --transform with a small script under .brainbox/transforms to rewrite or skip files.

Give your agents a brain.

Sign in and ask your first question.

Book a Demo