TrekMail MCP Server
The TrekMail MCP Server is a Model Context Protocol adapter that exposes 266 tools from the TrekMail API v1 for AI agents to manage email infrastructure, messaging, domains, DNS, contacts, calendars, and file storage. It supports dual-token architecture separating infrastructure operations (202 tools via ops token) from messaging operations (64 tools via message token), with fine-grained safety gates for destructive actions, sending, and migrations. The server acts as a thin transport layer handling authentication, retries, and safety controls while all business logic remains in the TrekMail API. Available as a hosted Community connector in Claude or deployable locally via npm/Docker for white-label dashboards and custom integrations.
Key Features
Use Cases
- 01Automate domain setup, DNS verification, and DKIM provisioning for new customer onboarding
- 02Bulk mailbox creation with dedicated storage allocations and auto-generated passwords for team provisioning
- 03Migrate email from Gmail, Outlook, or IMAP sources with folder mapping and progress monitoring
- 04Send transactional emails with AI-composed content, multi-destination forwarding, and delivery tracking
- 05Manage shared mailboxes with delegated access, send-as permissions, and native IMAP/SMTP routing
- 06Schedule future email sends with timezone-aware delivery and cancellation workflows
Related MCP Servers
View moremarkitdown
Python tool for converting files and office documents to Markdown.
firecrawl
The context API to search, scrape, and interact with the web at scale. 🔥
prompts.chat
f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.
langflow
Langflow is a powerful tool for building and deploying AI-powered agents and workflows.
TrekMail MCP Server — FAQ
What is the TrekMail MCP Server?+
It is a Model Context Protocol server that wraps the TrekMail API v1, exposing 266 tools for AI agents to manage email infrastructure, messaging, domains, DNS, contacts, calendars, and file storage. The server handles authentication, retries, and safety gates while the TrekMail API executes all business logic.
How do I connect it to Claude Desktop?+
For the hosted service, open the TrekMail connector in the Claude directory and authorize it. For local deployment, add an mcpServers entry to claude_desktop_config.json with the node command pointing to build/index.js and environment variables TREKMAIL_BASE_URL, TREKMAIL_API_TOKEN, and/or TREKMAIL_MESSAGE_TOKEN.
Which AI clients does it work with?+
It works with any Model Context Protocol client including Claude Desktop, Claude Code, and other MCP-compatible agents. The hosted version is available as a Community connector in the Claude directory.
Do I need API tokens from TrekMail?+
Yes. You need at least one token: an ops token (tm_live_ prefix) for infrastructure tools or a message token (tm_msg_ prefix) for messaging tools. You can provide both to unlock all 266 tools. Obtain tokens from your TrekMail account dashboard.
Is it free to use?+
The MCP server itself is open source. Usage depends on your TrekMail account plan and API tier. Tool availability is determined by account permissions, plan limits, and White Label entitlement where applicable.
How do safety gates prevent accidental data loss?+
Destructive operations require TREKMAIL_ALLOW_DESTRUCTIVE=true in the environment. Email sends require both TREKMAIL_ALLOW_SENDING and a per-call confirm_send=true parameter. Mailbox deletion requires a two-step flow with a time-limited delete intent that must be explicitly confirmed within 10 minutes.
How do I install TrekMail MCP Server?+
Open the source repository on GitHub and follow its README. TrekMail MCP Server is a mcp server — MCP Agents Market links you directly to the official repo.
Is TrekMail MCP Server free?+
TrekMail MCP Server is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.