Summary
Mimecast email security and archive from any AI agent: track messages through the gateway, search and read the email archive and its Smart Tags, see held messages and queues, URL, attachment and impersonation protection logs, DLP logs, audit events, rejections, blocked sender policies and threat events. Releasing or rejecting held mail and blocking senders are switched off.
Guided setup
Connect Mimecast to Claude in 2 minutes
Start a free trial on AnythingMCP Cloud, connect Mimecast in the guided setup, then add your MCP URL to Claude. No code and no server to run.
No credit card · 7-day trial · Self-host alternative available
AnythingMCP is listed in Claude's connector directory: add it to Claude in one click (opens in a new tab), then sign in and choose which MCP servers Claude may use.
Try asking
Example prompts for Mimecast
Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.
Claude is AI and can make mistakes. Please double-check responses.
💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → Mimecast, paste your credentials, mint an MCP API key and you're done. No Docker, no
git clone, no local server.
Mimecast + Claude
Mimecast email security and archive from any AI agent: track messages through the gateway, search and read the email archive and its Smart Tags, see held messages and queues, URL, attachment and impersonation protection logs, DLP logs, audit events, rejections, blocked sender policies and threat events. Releasing or rejecting held mail and blocking senders are switched off.
Prerequisites
See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:
MIMECAST_API_URL, MIMECAST_CLIENT_ID, MIMECAST_CLIENT_SECRET
Step 1 — Get credentials
Setting up takes about 10 minutes. You need the Mimecast administrator.
- Sign in to the Mimecast Administration Console with a role that has Manage Application Roles.
- Go to Integrations, API and Platform Integrations (the Integrations Hub), accept the API terms if asked, and on the Mimecast API 2.0 tile click Generate keys (Configure New). Do not use a legacy API 1.0 application.
- Give the application a name, choose the products it may use, and select a role. The role decides what the connector can read; see the permissions below. Enter a technical contact and save.
- Copy the Client ID into
MIMECAST_CLIENT_IDand the Client Secret intoMIMECAST_CLIENT_SECRET. The secret is shown once; if it is lost, open the application in the Integrations Hub and reset the keys. MIMECAST_API_URL: keep Global unless your data must stay in one country (United Kingdom or United States instance).
Authentication: OAuth 2.0 client credentials. The connector posts the client ID and secret to /oauth/token, receives a bearer token valid for about 30 minutes and renews it on its own. No access key, secret key or request signing as in API 1.0.
Permissions the role needs (Account, Roles in the console; each tool answers 403 without its permission)
- Account, Dashboard, Read:
mimecast_get_account,mimecast_list_held_messages,mimecast_get_email_queues,mimecast_decode_url. - Archive, Search, Read:
mimecast_search_archive,mimecast_list_archive_messages. Archive, Search Content View:mimecast_get_archive_message. Archive, Read:mimecast_get_archive_message_part,mimecast_get_archive_file. - Smart Tags (
mimecast_list_smart_tags,mimecast_search_smart_tag_messages,mimecast_add_messages_to_smart_tag) need the Data Retention product on the application, a Super Administrator role and a Cloud Archive subscription with Smart Tags. - Gateway, Tracking, Read:
mimecast_search_messages,mimecast_get_message_info. - Account, Monitoring, Held:
mimecast_get_held_summary(Held Summary, Read);mimecast_release_held_messageandmimecast_reject_held_messages(Edit). Monitoring, Held, Read:mimecast_get_held_release_logs. Monitoring, Rejections, Read:mimecast_get_rejection_logs. - Monitoring, URL Protection, Read:
mimecast_get_ttp_url_logs. Monitoring, Attachment Protection, Read:mimecast_get_ttp_attachment_logs. Monitoring, Impersonation Protection, Read:mimecast_get_ttp_impersonation_logs. Monitoring, Data Leak Prevention, Read:mimecast_get_dlp_logs. - Account, Logs, Read:
mimecast_get_audit_events,mimecast_list_audit_categories. - Gateway, Policies, Read:
mimecast_list_blocked_sender_policies. Gateway, Managed Senders, Edit:mimecast_permit_or_block_sender. - Security Events and Data Retrieval, Threat and Security Statistics, Read:
mimecast_list_threat_events.
Where to start
- "What happened to this email?":
mimecast_search_messageswith sender, recipient or subject (inadvanced) and a period, thenmimecast_get_message_infofor the delivery, spam and authentication details. - "Is anything stuck?":
mimecast_get_held_summary,mimecast_list_held_messagesandmimecast_get_email_queues. - "Did anyone click something bad?":
mimecast_get_ttp_url_logswith scan_result malicious; attachments and impersonation in the two sibling tools; an overview inmimecast_list_threat_events. - Old mail:
mimecast_list_archive_messagesfor one mailbox and a period, ormimecast_search_archiveacross mailboxes; thenmimecast_get_archive_messageandmimecast_get_archive_message_part(type PLAIN) to read it.
Archive search query: mimecast_search_archive takes Mimecast's XML query in one string. A query to start from: <?xml version="1.0"?><xmlquery trace="iql,muse"><metadata query-type="emailarchive" archive="true" active="false" page-size="25" startrow="0"><smartfolders/><return-fields><return-field>attachmentcount</return-field><return-field>status</return-field><return-field>subject</return-field><return-field>size</return-field><return-field>receiveddate</return-field><return-field>displayfrom</return-field><return-field>displayto</return-field><return-field>id</return-field><return-field>smash</return-field></return-fields></metadata><muse><text>invoice</text><date select="last_month"/><sent/><docs select="optional"/><route/></muse></xmlquery>. Put the words to find into the text element. The date element takes select values such as today, yesterday, this_week, last_week, last_month and last_year. Page with the page-size and startrow attributes. Mimecast's guide "Building Search Queries" on the developer portal lists every element.
Dates and paging: the API 1.0 style calls (paths starting with /api/) take dates as 2026-11-16T14:49:18+0000 and page with page_size and page_token; the next token is meta.pagination.next in the answer. The newer calls (Smart Tags, policies, threat events) take ISO 8601 with Z and return their own next-page token.
Switched off at install: mimecast_release_held_message, mimecast_reject_held_messages and mimecast_permit_or_block_sender change what is delivered. An administrator can enable them per connector; even then, confirm each action with the user. mimecast_add_messages_to_smart_tag is on: it only labels archived messages.
Privacy: the archive holds the content of everyone's mail. Read message bodies and attachments only when the question needs them, and quote no more than necessary.
Limits and errors: Mimecast rate-limits each application and answers 429 with X-RateLimit-Reset; wait and retry. Many calls answer 200 with a fail list instead of an error status: the connector reports those as errors with Mimecast's code and message. 401 means the client ID or secret is wrong or the keys were reset. 403 means the application's role lacks the permission for that call, or the account does not have the product. Message tracking, the hold queue and the queues exist only on accounts that route mail through the Mimecast gateway.
Step 2 — Install the adapter
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
Step 3 — Add the connector in Claude
Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (
https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide showsYOUR_SERVER_ID.
Recommended path: works on claude.ai web without editing any config file.
- In Claude, open Plugins (older menu: Customize → Connectors → + Add).
- Click Add, then Add custom connector.
- Enter a name, e.g.
Mimecast, and the remote MCP server URLhttps://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID, then click Continue, keep the detected settings and click Continue again. - Choose Sign in now, click Add and sign in to AnythingMCP (OAuth) to allow access.
All tools below appear in your chat: start typing prompts.
Available tools
| Tool | What it does |
|---|---|
mimecast_get_account | Get the summary of the Mimecast account the API application belongs to: accountCode, accountName, region, type, the packages and whether… |
mimecast_search_archive | Search the Mimecast archive with an XML query. Returns data[0].items (one object per message with the return fields the query asks for… |
mimecast_list_archive_messages | List the archived messages of one mailbox, received (INBOX) or sent (SENT), in a period. Each message has id, subject, from, to, received… |
mimecast_get_archive_message | Get the details of one archived message: subject, envelopeFrom, to, cc, replyTo, headerDate, received and processed times, headers, a… |
mimecast_get_archive_message_part | Get the body of one archived message: as plain text, as HTML, or the whole message in RFC 822 format. Use PLAIN to read what a message… |
mimecast_get_archive_file | Get one attachment of an archived message by its id (the attachments list of mimecast_get_archive_message). Returns the file, or links to… |
mimecast_list_smart_tags | List the Smart Tags of the archive: folder-like labels that group archived messages for eDiscovery, compliance review and delegated access.… |
mimecast_search_smart_tag_messages | List the archived messages that carry one Smart Tag, optionally limited to a period. Returns messages (each with its id) and meta.nextPage.… |
mimecast_add_messages_to_smart_tag | Put archived messages under a Smart Tag, as tagging them in the Administration Console does. People with access to the tag can then see… |
mimecast_search_messages | Track messages through the gateway (Message Tracking): find what happened to an email by sender, recipient, subject, sender IP, message id… |
mimecast_get_message_info | Get everything the gateway recorded about one tracked message: status, recipientInfo with sender, recipients, subject, route and… |
mimecast_list_held_messages | List the messages Mimecast is holding for review. Each has id, subject, from, fromHeader, to, dateReceived, route, reason, reasonCode… |
mimecast_get_held_summary | Count the messages currently held, per hold reason: each row has policyInfo (the policy or definition name) and numberOfItems. A quick view… |
mimecast_release_held_message | Release one held message so that it is delivered to its recipient. Installed switched off: a held message may be malicious, and a release… |
mimecast_reject_held_messages | Reject held messages so that they are never delivered, optionally telling the sender. Installed switched off: a rejection cannot be undone |
mimecast_get_email_queues | Get the size of the inbound and outbound email queues over a period: inboundEmailQueue and outboundEmailQueue, each a list of date and… |
mimecast_get_ttp_url_logs | Get the URL Protect click logs: every protected link a user clicked, with userEmailAddress (who clicked), fromUserEmailAddress (the… |
mimecast_get_ttp_attachment_logs | Get the Attachment Protect logs: every attachment sandboxed, with senderAddress, recipientAddress, subject, fileName, fileType, fileHash… |
mimecast_get_ttp_impersonation_logs | Get the Impersonation Protect logs: messages flagged as impersonation attempts, with senderAddress, recipientAddress, subject, definition… |
mimecast_get_dlp_logs | Get the Data Leak Prevention logs: messages that triggered a content policy, with senderAddress, recipientAddress, subject, policy, action… |
mimecast_decode_url | Turn a link rewritten by Mimecast URL Protect (it starts with a protect or url host of mimecast.com) back into the original URL. Returns… |
mimecast_get_audit_events | Get the audit log of the Mimecast account: administrator and user actions such as logons, policy and account changes, archive searches and… |
mimecast_list_audit_categories | List the audit event categories of Mimecast, each with code, id and name. The code is what the categories filter of… |
mimecast_get_rejection_logs | Get the messages Mimecast rejected at the gateway before accepting them (spam, invalid recipient, blocked sender, failed checks), with… |
mimecast_get_held_release_logs | Get the log of held messages that were released or rejected, and by whom: operator, fromEnv, fromHdr, to, subject, heldReason, policy… |
mimecast_list_blocked_sender_policies | List the Blocked Senders policies of the account: id, description, option (block_sender or no_action), fromPart, the from and to targets… |
mimecast_permit_or_block_sender | Add a managed sender entry for one recipient: block rejects every email from that sender to that recipient, permit lets it bypass the spam… |
mimecast_list_threat_events | List threat events of the last 90 days: messages rejected, blocked or held as malware, phishing, spam, suspicious or unwanted, with… |
Example prompts
- "What happened to the email from [email protected] to [email protected] yesterday?"
- "Is anything stuck in the hold queue right now?"
- "Did anyone click a malicious link this week?"
- "Show the impersonation protection hits of the last 7 days."
- "Find archived emails about the Q3 invoice from last month."
FAQ
Does it work with Claude Code as well as Claude Desktop? Yes, point both at https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID.
Where do the credentials come from? A Mimecast administrator with Manage Application Roles opens Integrations, API and Platform Integrations in the Administration Console and generates keys on the Mimecast API 2.0 tile. The role chosen there decides what the connector can read; each tool answers 403 without its permission. A legacy API 1.0 application does not work.
What does it cover? Message tracking and delivery details, the email archive with search, message content and Smart Tags, held messages and queues, URL, attachment and impersonation protection logs, DLP logs, audit events, rejections, blocked sender policies and threat events. The archive holds everyone's mail, so the AI reads message bodies only when the question needs them.
Which tools install switched off? mimecast_release_held_message, mimecast_reject_held_messages and mimecast_permit_or_block_sender, because they change what is delivered. Switch them on on the connector page only if the AI should use them.
Next steps
- Connector landing page
- Connect to ChatGPT
- Connect to Cursor
- Connect to Gemini
- Connect to Meta Muse
- Connect to Microsoft Copilot
Was this guide helpful?