The Heptabase MCP server enables AI assistants to interact with Heptabase backup data through multiple functions:
Backup Management: Configure paths, list available backups, and load specific backups
Search Operations: Find whiteboards and cards using queries, filters, tags, and date ranges
Data Retrieval: Access whiteboard and card data, including cards within specific areas
Export Functions: Export content to Markdown, JSON, and HTML formats
Analysis Tools: Analyze card relationships, compare backups, and evaluate graph metrics
Summaries: Generate whiteboard summaries
Debugging: Access server state information for troubleshooting
@heptabase/mcp
A Model Context Protocol (MCP) service for interacting with Heptabase backup data. This service allows AI assistants like Claude to search, retrieve, analyze, and export Heptabase whiteboards and cards.
Features
š Search whiteboards and cards
š Automatic backup file management
š Export to multiple formats (Markdown, JSON, Mermaid)
š Analyze card relationships
š Generate whiteboard summaries
ā” Smart caching for performance
Related MCP server: Supabase MCP Server
Quick Start
Installation and Setup
Clone and install:
git clone <repository-url> cd heptabase-mcp npm installConfigure using environment variables:
cp .env.example .env # Edit .env with your actual pathsBuild the project:
npm run buildTest locally (optional):
npm start
Using with Claude Desktop
Configure Claude Desktop to use your local build:
Edit your Claude Desktop config file:
macOS:
~/Library/Application\ Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Add this configuration:
Important:
Replace
/path/to/nodewith your Node.js path (find withwhich node)Replace
/path/to/your/heptabase-mcpwith your actual project pathSet
HEPTABASE_BACKUP_PATHto your Heptabase backup directory
See QUICK_START.md for detailed setup instructions.
Configuration
This project uses a privacy-safe configuration system:
Example files (safe for git):
claude-config-example.json,.env.examplePersonal files (gitignored):
claude-config-*personal*.json,.env
See CONFIG.md for detailed configuration instructions.
Basic Usage
Available Tools
Backup Management
configureBackupPath- Set backup directorylistBackups- List available backupsloadBackup- Load a specific backup
Search Operations
searchWhiteboards- Search whiteboards by name or contentsearchCards- Search cards across all whiteboards
Data Retrieval
getWhiteboard- Get complete whiteboard datagetCard- Get card content in multiple formatsgetCardContent- Get card content as resource (bypasses size limits)getCardsByArea- Find cards by position on whiteboard
Export Functions
exportWhiteboard- Export to Markdown, JSON, HTML formatssummarizeWhiteboard- Generate AI-powered summaries
Analysis Tools
analyzeGraph- Analyze card relationships and connectionscompareBackups- Compare different backup versions
Debug Tools
debugInfo- Get system status and diagnostics
Development
Project Structure
Testing
Building
Documentation
š Complete Specification - Detailed API and architecture
š Quick Start Guide - Get up and running fast
āļø Configuration Guide - Safe configuration practices
š Claude Desktop Setup - Local development setup
Privacy & Security
This project follows privacy-by-design principles:
ā Personal paths are never committed to git
ā Backup data stays local on your machine
ā Configuration templates use safe placeholders
ā Gitignore protects sensitive files
Requirements
Node.js 18+
Heptabase with backup exports enabled
Claude Desktop (for MCP integration)
Troubleshooting
Common Issues
"No backups found" - Check your
HEPTABASE_BACKUP_PATHpoints to the correct directory"Command not found" - Ensure Node.js is installed and paths are correct
Claude doesn't see tools - Restart Claude Desktop completely after config changes
Build errors - Run
npm installandnpm run buildbefore using
Debug Mode
Use the debugInfo tool to check system status:
Contributing
Contributions are welcome! Please:
Fork the repository
Create a feature branch
Make your changes
Add tests for new functionality
Ensure all tests pass
Submit a pull request
See SPECIFICATION.md for architecture details.
License
MIT License - see LICENSE file for details.
Support
š Bug reports: GitHub Issues
š¬ Questions: GitHub Discussions
š§ Security issues: Please report privately
Made with ā¤ļø for the Heptabase community