CLI for your personal Heptabase knowledge base. Search whiteboards, read cards/journals/PDFs, and write notes from the terminal.
Ported from Official Heptabase MCP via MCP Porter.
Pick one:
brew tap madeyexz/tap
brew install madeyexz/tap/heptabase-cli
heptabase --helpAfter install, use heptabase for all commands.
Current release binary target: macOS arm64.
If you are on another platform, use bunx or build from source.
mkdir -p ~/.local/bin
curl -L https://github.com/madeyexz/heptabase-cli/releases/latest/download/heptabase -o ~/.local/bin/heptabase
chmod +x ~/.local/bin/heptabase
~/.local/bin/heptabase --helpIf ~/.local/bin is not in your PATH, add it:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrcOptional system-wide install:
curl -L https://github.com/madeyexz/heptabase-cli/releases/latest/download/heptabase -o heptabase
chmod +x heptabase
sudo mv heptabase /usr/local/bin/Option 3: bunx (no install, requires Bun)
bunx heptabase-cli --helpFor agents, prefer installing heptabase on PATH.
If you use AI agents (Claude Code, Codex, etc.), install the Heptabase agent skill:
npx skills add madeyexz/heptabase-cliAgent command convention: use heptabase ... (not bunx heptabase-cli ...).
Run any command (examples below). The first run opens a browser for Heptabase OAuth.
- Tokens are cached in
~/.mcp-auth/ - Tokens auto-refresh
- Reset login with
rm -rf ~/.mcp-auth/
Examples below use installed binary heptabase.
If you use no-install mode, replace heptabase with bunx heptabase-cli.
# Search
heptabase search-whiteboards --keywords "project"
heptabase semantic-search-objects --queries "machine learning" --result-object-types card
# Read
heptabase get-object --object-id <id> --object-type card
heptabase get-journal-range --start-date 2026-01-01 --end-date 2026-02-21
# Write
heptabase save-to-note-card --content "# Title\n\nBody text"
heptabase append-to-journal --content "Some entry"List all commands:
heptabase --help
heptabase <command> --helpSupported output formats (--output): text (default), json, markdown, raw.
search-whiteboardssemantic-search-objectsget-objectget-whiteboard-with-objectsget-journal-rangesave-to-note-cardappend-to-journalsearch-pdf-contentget-pdf-pages
command not found: heptabase: usebunx heptabase-cli ...or ensure~/.local/bin(or/usr/local/bin) is in yourPATH.- Browser did not open for OAuth: copy the login URL from terminal and open it manually.
- Need to re-authenticate:
rm -rf ~/.mcp-auth/and run a command again.
npx mcp-remote@latest https://api.heptabase.com/mcp --transport http-only
npx mcporter@latest generate-cli \
--command 'npx -y mcp-remote@latest https://api.heptabase.com/mcp --transport http-only' \
--output ./heptabase-cli.ts \
--compile ./heptabase \
--description "Heptabase knowledge base CLI"- Heptabase MCP docs: https://support.heptabase.com/en/articles/12679581-how-to-use-heptabase-mcp
- This CLI is generated with mcporter + mcp-remote