</>MCP Agents Market
MCP Server

TrekMail MCP Server

by 0Updated 2026-10-02

Claude DesktopClaude Code

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

266 tools spanning domains, DNS, mailboxes, messages, contacts, calendar, Drive storage, migrations, and White Label branding
Dual-token architecture: ops tokens unlock 202 infrastructure tools, message tokens unlock 64 messaging tools, or use both simultaneously
Granular safety gates: TREKMAIL_ALLOW_DESTRUCTIVE for deletions, TREKMAIL_ALLOW_SENDING for email sends, TREKMAIL_ALLOW_MIGRATION for data imports
Two-step delete intents with time-limited confirmation tokens prevent accidental mailbox deletion
Scope-aware registration dynamically omits tools the token cannot use, reducing agent context size
Idempotent operations with deterministic keys prevent duplicate side effects during retries
Connected account support for Gmail/Outlook/IMAP with message operations across external mailboxes
Drive file management with streaming uploads, multipart chunking for large files, and public share links

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 more

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.

Related searches