| name | heptabase-cli |
| description | Interact with user's Heptabase knowledge base from the terminal. Use when the user wants to search notes, read cards or journals, save new notes, append to journals, or work with PDFs in Heptabase. Triggers on mentions of "heptabase", "whiteboard", "journal", "note card", or "personal knowledge base". |
| argument-hint | [command] [args] |
Heptabase CLI
A CLI that wraps the Heptabase MCP server. Search, read, and write to your Heptabase knowledge base from the terminal.
Prerequisites
Tools
1. Save as a card (save-to-note-card)
Creates a new note card in your Heptabase Inbox (like the Web Clipper).
heptabase save-to-note-card --content "# Title
Body text in markdown"
- First h1 line becomes the card title
- Great for: turning AI answers into permanent notes, saving outlines/plans/summaries, capturing ideas to organize later on a whiteboard
2. Append to journal (append-to-journal)
Adds content as new blocks to today's journal. Does NOT overwrite existing content. Auto-creates today's journal if it doesn't exist.
heptabase append-to-journal --content "Some journal entry"
- Ideal for: daily reflections, quick logs ("summarize what I worked on today"), capturing ideas that belong in your daily record
3. Semantic search (semantic-search-objects)
Finds objects in your knowledge base using full-text + semantic (meaning-based) search.
heptabase semantic-search-objects --queries "machine learning,neural networks" --result-object-types "card,pdfCard"
- Use when: asking about topics you've taken notes on, rediscovering related content, needing the AI to reason using your existing knowledge
- Returns previews with titles and partial content
- Follow up with
get-object for full content, or search-whiteboards to explore related whiteboards
4. Find whiteboards (search-whiteboards)
Searches whiteboards by name and keywords.
heptabase search-whiteboards --keywords "project management,productivity"
- Helps understand how your content is organized visually
- Use when: looking for a specific project whiteboard, understanding workspace structure
- Follow up with
get-whiteboard-with-objects to see what's on them
5. Explore a whiteboard (get-whiteboard-with-objects)
Returns the full structure of a whiteboard: cards, sections, text elements, mindmaps, images, and connections between them.
heptabase get-whiteboard-with-objects --whiteboard-id <id>
- Shows how ideas are grouped and connected
- Use when: you want help understanding or reorganizing a board, need summaries based on how you've arranged things visually
- Follow up with
get-object for deeper reads on specific cards
6. Read full object content (get-object)
Retrieves complete content of a single object โ no chunk limits.
heptabase get-object --object-id <id> --object-type card
- Returns full content including transcripts for video/audio cards
- Check the
hasMore flag to know if you have all the content
- Do NOT use on pdfCard โ too large. Use
search-pdf-content + get-pdf-pages instead
- Use when: you need detailed summaries, translations, or explanations of a specific note
7. Review journals by date range (get-journal-range)
Retrieves all journal entries between two dates (inclusive).
heptabase get-journal-range --start-date 2026-01-01 --end-date 2026-03-01
- Max 92 days (~3 months) per call. For longer periods, make multiple calls
- Use when: reviewing past work, preparing retrospectives, summarizing what you wrote over a period
8. Search within a PDF (search-pdf-content)
Keyword-based search inside a specific PDF using BM25 matching (fuzzy, OR logic).
heptabase search-pdf-content --pdf-card-id <id> --keywords "gradient descent,optimization,learning rate"
- Returns up to 80 ranked chunks with surrounding context
- You must find the PDF card ID first using
semantic-search-objects
- Follow up with
get-pdf-pages to read full pages around the matches
9. Read PDF pages (get-pdf-pages)
Retrieves complete content from a specific page range.
heptabase get-pdf-pages --pdf-card-id <id> --start-page-number 1 --end-page-number 10
- Use after
search-pdf-content to pull full pages for summarization or translation
- For >100 pages, ask the user to confirm first
Common Workflows
Discover โ Read โ Save
semantic-search-objects โ find relevant notes on a topic
get-object โ read the full content
- Reason, summarize, or answer based on the content
save-to-note-card or append-to-journal โ save the output back
Explore a whiteboard
search-whiteboards โ find the whiteboard by topic
get-whiteboard-with-objects โ see all objects and connections
get-object โ deep dive into specific cards on the board
Review past journals
get-journal-range โ fetch entries for a period (split into 92-day chunks if needed)
- Summarize or analyze patterns across entries
append-to-journal โ add the summary to today's journal
Work with a large PDF
semantic-search-objects --result-object-types pdfCard โ find the PDF
search-pdf-content โ locate relevant sections by keywords
get-pdf-pages โ pull full pages for detailed reading
save-to-note-card โ save key takeaways as a new note
Output Formats
All commands accept --output <format>:
text (default) โ human-readable
json โ structured JSON, good for piping into jq
markdown โ markdown formatted
raw โ raw MCP response
Global Flags
--timeout <ms> โ call timeout (default: 30000)
--raw <json> โ bypass flag parsing, pass raw JSON arguments directly
Further Reading
For more details on Heptabase MCP tools and usage patterns, see the official Heptabase MCP documentation.