Back to Browse

Burrow MCP Server

Developer ToolsLow Risk10.0MCP RegistryLocal
Free

Server data from the Official MCP Registry

Read, search and edit LeafWiki pages with your own account, without overwriting others.

About

Read, search and edit LeafWiki pages with your own account, without overwriting others.

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (0 strong, 2 medium validity signals). No known CVEs in dependencies. Imported from the Official MCP Registry. Trust signals: trusted author (3/3 approved).

5 files analyzed ยท No issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

HTTP Network Access

Connects to external APIs or services over the internet.

What You'll Need

Set these up before or after installing:

Wiki root, e.g. https://wiki.example.com (https only, except localhost)Optional

Environment variable: LEAFWIKI_URL

Your LeafWiki username or email; empty when the wiki has no sign-inOptional

Environment variable: LEAFWIKI_USERNAME

Its passwordRequired

Environment variable: LEAFWIKI_PASSWORD

true offers only the read_ toolsOptional

Environment variable: BURROW_READ_ONLY

How to Install

Install command not verified. See the repository for install instructions.

View repository

Documentation

View on GitHub

From the project's GitHub README.

burrow ๐ŸฆŠ

CI Release MCP Registry Platforms License: MIT

burrow MCP server

An MCP server for LeafWiki: your AI assistant reads, searches, writes and organizes wiki pages, signed in with your own LeafWiki account.

Tested against LeafWiki v0.15.0. Releases are listed in CHANGELOG.md.

โœจ Why burrow

  • ๐Ÿชถ One small program. No Node.js or other runtime; about 8 MB of memory while it runs.
  • ๐Ÿ‘ค Your account, your name. burrow signs in as you, so every change shows up under your name with your permissions.
  • ๐Ÿ›ก๏ธ No lost updates. It never overwrites a change someone else made since your last read; the answer says who changed the page.
  • ๐Ÿงญ Pages by path or id. docs/runbooks/deploy works as well as an id, and missing parent pages can be created in one call.
  • ๐Ÿ” Simple permissions. Every tool name starts with its tier (read_, write_, delete_), so one rule per tier covers them all; a read-only mode hides the rest.

๐Ÿš€ Quick start

  1. ๐Ÿ‘ค Have a LeafWiki account that signs in with a username and password alone (no two-factor codes). Export them in your shell profile: export LEAFWIKI_USERNAME=... and export LEAFWIKI_PASSWORD=...
  2. ๐Ÿ“ฆ Install burrow: Linux and macOS curl -fsSL https://raw.githubusercontent.com/RedFoxxo/burrow/main/install.sh | sh, Windows (PowerShell) irm https://raw.githubusercontent.com/RedFoxxo/burrow/main/install.ps1 | iex.
  3. ๐Ÿ”Œ Connect your client: for Claude Code, run the command under Claude Code with your wiki's URL. Other clients are listed under Connect your client.

Then ask your assistant "what's in the wiki about deployments?".

A viewer account can use only the read_ tools; changing pages needs an editor or admin.

๐Ÿ“ฆ Install

WayFor
Install scriptLinux, macOS, Windows: the usual way
Claude Desktop bundleClaude Desktop, nothing else to install
By handDownloading the file yourself
From sourceRust users, or a Docker image

Install script

# Linux and macOS
curl -fsSL https://raw.githubusercontent.com/RedFoxxo/burrow/main/install.sh | sh
# Windows, in PowerShell
irm https://raw.githubusercontent.com/RedFoxxo/burrow/main/install.ps1 | iex

The script downloads the file for your system from the latest release, checks it against the release's SHA256SUMS, and installs burrow in ~/.local/bin (Windows: %LOCALAPPDATA%\Programs\burrow). If that folder isn't on your PATH, it adds it: to ~/.profile (and ~/.zprofile on macOS), or to your user PATH on Windows. Log out and back in (Windows: open a new terminal), then check with burrow --version.

๐Ÿ”„ Update: run the same line again.

โš™๏ธ Options, set for the script:

VariableEffect
BURROW_VERSIONInstall a given release, e.g. BURROW_VERSION=2.0.5
BURROW_INSTALL_DIRInstall into another folder
BURROW_NO_MODIFY_PATH=1Leave your PATH alone

For example curl -fsSL โ€ฆ/install.sh | BURROW_VERSION=2.0.5 sh, or in PowerShell $env:BURROW_VERSION = '2.0.5' before irm โ€ฆ | iex.

Claude Desktop

Download burrow.mcpb from the latest release and open it, or drag it into Settings โ†’ Extensions. Claude Desktop asks for the wiki URL, your username and your password (kept in the system's secure storage), and runs burrow from the bundle.

By hand

Download the file for your system from the latest release into a folder on your PATH and rename it to burrow (burrow.exe on Windows):

SystemFile
๐Ÿง Linux x64burrow-linux-x64
๐Ÿง Linux arm64burrow-linux-arm64
๐ŸŽ macOS, Apple siliconburrow-macos-arm64
๐ŸŽ macOS, Intelburrow-macos-x64
๐ŸชŸ Windows x64, also Windows on ARMburrow-windows-x64.exe

On Linux and macOS, make it executable: chmod +x burrow. On macOS, a file downloaded with a browser also needs xattr -d com.apple.quarantine burrow once.

From source or Docker

  • ๐Ÿฆ€ With Rust: cargo install burrow-mcp --locked (the crate is burrow-mcp; the program is burrow), or cargo install --git https://github.com/RedFoxxo/burrow --tag v2.0.5 --locked.
  • ๐Ÿณ Docker: docker build -t burrow . in a clone, then docker run -i --rm -e LEAFWIKI_URL -e LEAFWIKI_USERNAME -e LEAFWIKI_PASSWORD burrow.

โš™๏ธ Settings

burrow reads its settings from environment variables, which your MCP client passes to it:

VariableRequiredPurpose
LEAFWIKI_URLโœ…Wiki root, e.g. https://wiki.example.com (a base path like /wiki is fine, no /api). https only, except for localhost, 127.0.0.1 and [::1]
LEAFWIKI_USERNAMEwhen the wiki has sign-inYour LeafWiki username or email
LEAFWIKI_PASSWORDwhen the wiki has sign-inIts password. Never logged
BURROW_READ_ONLYtrue registers only the read_ tools (default false)

๐Ÿ”’ Keep the password out of config files: export LEAFWIKI_USERNAME and LEAFWIKI_PASSWORD in your shell profile and let the client pass them through, as the examples below do.

๐Ÿ”‘ How burrow signs in:

  • It signs in on the first tool call and keeps the session alive the way the web app does.
  • It sends your password and session cookies only to LEAFWIKI_URL and never follows a redirect.
  • If LeafWiki rejects the password, burrow stops trying until it is restarted, so it never runs into LeafWiki's protection against repeated wrong passwords (a slowdown of up to 15 minutes; older versions locked the account).

๐Ÿ”Œ Connect your client

Claude Code

Register burrow once for all your projects. ${LEAFWIKI_USERNAME} and ${LEAFWIKI_PASSWORD} are read from your environment when the server starts, so the password isn't stored in the config:

claude mcp add-json burrow --scope user '{
  "type": "stdio",
  "command": "burrow",
  "env": {
    "LEAFWIKI_URL": "https://wiki.example.com",
    "LEAFWIKI_USERNAME": "${LEAFWIKI_USERNAME}",
    "LEAFWIKI_PASSWORD": "${LEAFWIKI_PASSWORD}"
  }
}'

Then add the permission rules to ~/.claude/settings.json:

{
  "permissions": {
    "allow": ["mcp__burrow__read_*"],
    "ask": ["mcp__burrow__write_*", "mcp__burrow__delete_*"]
  }
}

The server name must be burrow for these rules to match (Claude Code names tools mcp__<server>__<tool>). Check the connection with claude mcp get burrow, or /mcp inside a session.

opencode

Add the server and the permission rules to opencode.json (global: ~/.config/opencode/opencode.json):

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "servers": {
      "burrow": {
        "type": "local",
        "command": ["burrow"],
        "environment": {
          "LEAFWIKI_URL": "https://wiki.example.com",
          "LEAFWIKI_USERNAME": "{env:LEAFWIKI_USERNAME}",
          "LEAFWIKI_PASSWORD": "{env:LEAFWIKI_PASSWORD}"
        }
      }
    }
  },
  "permissions": [
    { "action": "burrow_read_*", "resource": "*", "effect": "allow" },
    { "action": "burrow_write_*", "resource": "*", "effect": "ask" },
    { "action": "burrow_delete_*", "resource": "*", "effect": "ask" }
  ]
}

The server name must be burrow for these rules to match (opencode names tools <server>_<tool>, e.g. burrow_read_page). Restart opencode after changing the file; opencode mcp list shows whether it connected.

Other MCP clients

Any client that starts local (stdio) servers works. Most accept an mcpServers block like this one (Cursor, Claude Desktop without the bundle, ...):

{
  "mcpServers": {
    "burrow": {
      "command": "burrow",
      "env": {
        "LEAFWIKI_URL": "https://wiki.example.com",
        "LEAFWIKI_USERNAME": "your-username",
        "LEAFWIKI_PASSWORD": "your-password"
      }
    }
  }
}

If the client can't find burrow (some desktop apps don't see your shell's PATH), give the full path instead, e.g. "C:\\Users\\you\\AppData\\Local\\Programs\\burrow\\burrow.exe" on Windows. Then map the three tiers to the client's permission system.

๐Ÿงฐ Tools

Pages are named by id or by path (docs/runbooks/deploy).

๐Ÿ” Permission tiers

Every tool name starts with its tier, so one rule per tier covers every tool, including ones added later. Every tool also carries MCP annotations: reads are marked read-only, deletions destructive.

TierWhat it doesSuggested rule
๐ŸŸข read_Reads onlyallow
๐ŸŸก write_Creates, changes, moves and copies pages and filesask
๐ŸŸ  delete_Deletes pages and filesask

๐Ÿ“š Tool list

Your client sends every listed tool to the model with each request:

SetupToolsCost per request
Default39about 5,100 tokens
BURROW_READ_ONLY=true20 (reads only)about 2,200 tokens

read_wiki, read_tree, read_page, read_lookup_path, read_find_title, read_search, read_search_status, read_tags, read_pages_by_tags, read_properties, read_pages_by_property, read_links, read_broken_links (admins only), read_revisions, read_revision, read_compare_revisions, read_favorites, read_assets, read_slug, read_refactor_preview

write_create_page, write_ensure_path, write_update_page, write_edit_text, write_append, write_tags, write_properties, write_move, write_sort, write_pin, write_favorite, write_convert, write_copy, write_refactor, write_restore_revision, write_upload_asset, write_rename_asset

delete_page, delete_asset

๐Ÿ“ Rules burrow enforces

  • ๐Ÿ›ก๏ธ No lost updates. write_update_page, write_edit_text, write_refactor and delete_page need the version from your last read. If someone changed the page since, nothing is sent and the answer says who changed it. The other write tools change the latest version, and only the part they name: tags, properties and appended text merge with what is there.
  • ๐Ÿ—‘๏ธ No surprise deletes. delete_page refuses a page with children unless recursive: true.
  • ๐Ÿ“Ž No local files. write_upload_asset takes base64 data (a data: URL is fine); burrow never reads your disk.

โš ๏ธ Limitations

  • Accounts with two-factor codes (TOTP) can't sign in through burrow. LeafWiki's API keys are still experimental and not supported yet.
  • Revision history and link refactoring are LeafWiki options (--enable-revision, --enable-link-refactor); read_wiki says which are on. Without them, the revision and refactor tools fail.
  • write_move and write_rename_asset don't rewrite links to the old location; write_refactor does, for pages.
  • Admin screens (users, backups, snapshots, branding, API keys, import) are left out on purpose.

โฌ†๏ธ Upgrading from 1.x

burrow 1.x ran through npx from the npm package @redfoxxo/burrow, which gets no new versions.

  1. Install burrow as above.
  2. In your client's config, change "command": "npx", "args": ["-y", "@redfoxxo/burrow@1"] to "command": "burrow".
  3. Tools, settings and permission rules stay the same.

๐Ÿ› ๏ธ Development

Building from source, running the tests and releasing are described in DEVELOPMENT.md.

๐Ÿ“„ License

MIT

Reviews

No reviews yet

Be the first to review this server!