Skip to main content
Glama

@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

The easiest way to use this MCP service is with Claude Desktop via npx:

{ "mcpServers": { "heptabase": { "command": "npx", "args": ["@heptabase/mcp"], "env": { "HEPTABASE_BACKUP_PATH": "/path/to/your/heptabase/backups", "HEPTABASE_AUTO_EXTRACT": "true", "HEPTABASE_WATCH_DIRECTORY": "true" } } } }

See CLAUDE_DESKTOP_NPX.md for detailed setup instructions.

Local Development

  1. Install dependencies:

    npm install
  2. Configure using environment variables. Create a .env file:

    HEPTABASE_BACKUP_PATH=/path/to/your/heptabase/backups HEPTABASE_AUTO_EXTRACT=true HEPTABASE_WATCH_DIRECTORY=true
  3. Start the MCP server:

    npm start

Basic Usage

// Configure backup path await mcpClient.callTool({ name: "configureBackupPath", parameters: { path: "/Users/stanley/Documents/Heptabase-auto-backup" } }); // List available backups const { backups } = await mcpClient.callTool({ name: "listBackups" }); // Search for whiteboards const { whiteboards } = await mcpClient.callTool({ name: "searchWhiteboards", parameters: { query: "Project Planning" } });

Available Tools

Backup Management

  • configureBackupPath - Set backup directory

  • listBackups - List available backups

  • loadBackup - Load a specific backup

Search Operations

  • searchWhiteboards - Search whiteboards

  • searchCards - Search cards

Data Retrieval

  • getWhiteboard - Get whiteboard data

  • getCard - Get card data

  • getCardsByArea - Get cards by position

Export Functions

  • exportWhiteboard - Export to various formats

  • summarizeWhiteboard - Generate summaries

Analysis Tools

  • analyzeGraph - Analyze relationships

  • compareBackups - Compare versions

Development

Project Structure

heptabase-mcp/ β”œβ”€β”€ src/ β”‚ β”œβ”€β”€ index.ts # MCP server β”‚ β”œβ”€β”€ config/ # Configuration β”‚ β”œβ”€β”€ services/ # Core services β”‚ β”œβ”€β”€ tools/ # MCP tools β”‚ └── types/ # TypeScript types β”œβ”€β”€ tests/ # Test files β”œβ”€β”€ package.json └── tsconfig.json

Testing

npm test

Building

npm run build

Documentation

For detailed documentation, see SPECIFICATION.md.

License

MIT

Contributing

Contributions are welcome! Please read our contributing guidelines before submitting PRs.

Support

For issues and feature requests, please use the GitHub issue tracker.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/LarryStanley/heptabse-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server