About HQBase
HQBase is an open-source shared email workspace for teams running on their own Cloudflare infrastructure. Its OAuth-protected remote MCP server connects AI agents to shared mail workflows while keeping mail and credentials under customer control.
Key features
- 01Shared mailboxes and team access controls
- 02Multi-domain setup and drafts
- 03Audit history
- 04Installation, updates, backup, and recovery
Use cases
- 01Let AI agents work with a team's shared mail
- 02Manage shared mailboxes with team access controls
MCP support
HQBase includes an OAuth-protected remote MCP server for connecting AI agents to the workspace.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://{installation_domain}/mcpclaude mcp add --transport http hqbase-hqbase https://{installation_domain}/mcp{"mcpServers":{"hqbase-hqbase":{"type":"http","url":"https://{installation_domain}/mcp"}}}Open in Cursor{"servers":{"hqbase-hqbase":{"type":"http","url":"https://{installation_domain}/mcp"}}}Open in VS Code{"mcpServers":{"hqbase-hqbase":{"type":"http","url":"https://{installation_domain}/mcp"}}}{"mcpServers":{"hqbase-hqbase":{"serverUrl":"https://{installation_domain}/mcp"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
Tools
Details
From the project READMEHQBase
Your team's email workspace. On your infrastructure.
An open-source shared email workspace that runs in your Cloudflare account and keeps mail and credentials in infrastructure you control.
Website · Documentation · Releases · Contributing
About HQBase
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 [email protected] 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.
Review the visual system
To inspect the shared components, interactive states, product patterns, and local screen routes:
pnpm dev:ui
Open http://127.0.0.1:5173/__ui/design. The gallery uses deterministic presentation fixtures
and does not call product APIs.
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.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.