HQBase
Provides a self-hosted shared email workspace with team access controls, multi-domain support, drafts, audit history, and an OAuth-protected MCP server, all running on your own Cloudflare infrastructure.
README
<p align="center"> <a href="https://hqbase.io/"> <img src="public/logo.svg" alt="HQBase" width="118"> </a> </p>
<h1 align="center">HQBase</h1>
<p align="center"> <strong>Your team's email workspace. On your infrastructure.</strong> </p>
<p align="center"> An open-source shared email workspace that runs in your Cloudflare account and keeps mail and credentials in infrastructure you control. </p>
<p align="center"> <a href="https://hqbase.io/">Website</a> · <a href="https://hqbase.io/docs/">Documentation</a> · <a href="https://github.com/HQBase/hqbase/releases">Releases</a> · <a href="https://hqbase.io/docs/maintainers/contributing/">Contributing</a> </p>
<p align="center"> <a href="https://github.com/HQBase/hqbase/actions/workflows/ci.yml"> <img src="https://github.com/HQBase/hqbase/actions/workflows/ci.yml/badge.svg?branch=main" alt="CI status"> </a> <a href="https://github.com/HQBase/hqbase/releases/latest"> <img src="https://img.shields.io/github/v/release/HQBase/hqbase?display_name=tag&sort=semver" alt="Latest release"> </a> <a href="LICENSE"> <img src="https://img.shields.io/github/license/HQBase/hqbase" alt="AGPL-3.0-only license"> </a> <a href="https://discord.gg/U67PB663nf"> <img src="https://img.shields.io/badge/Discord-Join%20the%20community-5865F2?logo=discord&logoColor=white" alt="Join the HQBase Discord"> </a> </p>
<p align="center"> <a href="https://deploy.workers.cloudflare.com/?url=https%3A%2F%2Fgithub.com%2FHQBase%2Fhqbase%2Ftree%2Fdeploy"> <img src="https://deploy.workers.cloudflare.com/button" alt="Deploy to Cloudflare"> </a> </p>
About HQBase
<p align="center"> <img src="public/hqbase-desktop-screenshot.png" alt="HQBase shared inbox interface"> </p>
HQBase gives teams one place to work with shared mailboxes while keeping the application, mail, and Cloudflare credentials in customer infrastructure. It includes:
- Shared mailboxes and team access controls.
- Multi-domain setup, drafts, and audit history.
- Installation, update, backup, and recovery operations.
- An OAuth-protected remote MCP server.
See the product documentation for installation, daily use, architecture, and operations.
Made by the community
We love seeing people build around HQBase. Independent clients give you more ways to use your workspace:
- Herald — A native macOS email client for HQBase.
HQBase has tested Herald for compatibility. It is made and maintained by independent community developers, so its releases, support, and behavior remain in their care rather than HQBase's. Please review the project and decide whether it is right for your workspace.
Develop locally
Start the application
pnpm install
pnpm db:migrate:local
pnpm db:seed:local
pnpm dev
Before you run the optional seed command, add these values to .dev.vars:
BETTER_AUTH_SECRETHQBASE_LOCAL_SEED_PASSWORDwith 8 to 128 characters
The seed command writes only to local D1 and does not contact Cloudflare OAuth. Open
http://127.0.0.1:5173/ and sign in as owner@hqbase.test with that
password. Vite serves the frontend with live reload on port 5173 and proxies API requests to the
Wrangler Worker on port 8787.
To use the first-run setup flow, omit the seed command and open http://localhost:5173/setup.
Reset local data
To discard all local D1 data, rebuild the schema, and recreate the demo workspace:
pnpm db:reset:local
pnpm db:seed:local
The reset command is destructive and local only. It does not change a deployed database.
Preview the setup interface
For presentation-only onboarding work:
pnpm dev:setup-ui
Open http://127.0.0.1:5173/__ui/setup.
Verify changes
Run the full local quality gate:
pnpm check
pnpm deploy:dry-run
Run pnpm cf:typegen after you change wrangler.jsonc.
Pushes to main run the same quality gate and deployment dry-run. Deployed staging is manual and
also runs inside the signed release workflow. A release stays in draft until the previous stable
version upgrades to the exact signed candidate and passes its checks. Customer installations and
updates verify the signed manifest and artifact digest before deployment.
Documentation
hqbase.io/docs is the public source for user and operator guides, product specifications, and maintainer procedures.
Contributing
Read the contribution guide before you open a pull request.
Security
To report a vulnerability, follow the private process in the security policy.
License
HQBase is available under the GNU Affero General Public License v3.0 only.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.