Mimecast

io.github.WYRE-AI由 GitHub 帳號 WYRE-AI 發布v1.3.9更新於 Oct 25, 2026

MCP server for Mimecast email security: message queue, held messages, domains, and threats.

已驗證STDIO僅桌面溝通與協作安全與監控

概覽

AI 產生的概覽

一個本機 MCP 伺服器,將 AI 助理接入 Mimecast 郵件安全,用於郵件追蹤、滯留郵件處理、佇列狀態與威脅資料查詢。

可以做什麼
尋找並檢視郵件:查詢郵件並查看投遞狀態、寄件者、收件者、垃圾郵件分數與退信詳情,在 MCP Apps 主機中以唯讀卡片呈現。管理滯留郵件:將郵件設為滯留並釋放。查看郵件佇列狀態。檢視威脅:列出威脅事件,並依 URL、附件與冒名防護類型查詢 TTP 記錄。讀取稽核事件,未提供時間範圍時預設查詢最近 7 天。
適用情境
適合在 Mimecast 中工作的郵件或安全管理員,讓助理追蹤可疑郵件、釋放滯留郵件、檢查佇列健康狀態,或取得威脅與稽核資料而不必切換主控台。
執行需求
透過 stdio 在本機執行,通常使用 npx 或已發佈的容器映像。需要一個具備自訂管理員角色的 Mimecast API 2.0 應用程式,以 MIMECAST_CLIENT_ID 與 MIMECAST_CLIENT_SECRET 提供,另可選 MIMECAST_REGION。HTTP 模式還需 CONDUIT_S2S_SECRET 與 X-Gateway-S2S 標頭;閘道模式從請求標頭讀取 Mimecast 憑證。
安裝前請注意
需要可存取郵件安全資料的 Mimecast API 憑證,應只授予各工具所需權限。滯留與釋放工具會改變滯留郵件的狀態。稽核歷史僅保留 60 天。未設定 CONDUIT_S2S_SECRET 的 HTTP 模式僅供開發使用,並拒絕非回送位址。切勿提交真實密鑰。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Mimecast,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Mimecast MCP Server

[License] [Node.js]

A Model Context Protocol (MCP) server for Mimecast email security. Enables AI assistants to track messages, investigate threats, manage email queues, and access threat intelligence data.

This is a Model Context Protocol (MCP) server that connects Claude (or any MCP-compatible AI) to your Mimecast environment.

Part of the MSP Claude Plugins ecosystem — a growing suite of AI integrations for the MSP stack. Built by MSPs, for MSPs.

Installation

bash
npm install @wyre-ai/mimecast-mcp

Configuration

Copy .env.example and set the variables below.

VariableRequiredDescription
MIMECAST_CLIENT_IDFor stdio and AUTH_MODE=envMimecast API 2.0 client ID
MIMECAST_CLIENT_SECRETFor stdio and AUTH_MODE=envMimecast API 2.0 client secret
MIMECAST_REGIONNoTenant grid label: us (default), eu, de, au, za, ca, offshore, or je. API 2.0 client-credentials calls all use https://api.services.mimecast.com. Regional hosts such as eu-api.mimecast.com are API 1.0 only and do not accept this server's OAuth flow.
MCP_TRANSPORTNostdio (default) or http
AUTH_MODENogateway (Docker image and Compose default) or env. Gateway mode requires X-Mimecast-Client-ID and X-Mimecast-Client-Secret on each /mcp request and never falls back to MIMECAST_*. env uses those variables only after S2S auth succeeds.
CONDUIT_S2S_SECRETYes for HTTPService-to-service secret. The HTTP server logs an error and exits non-zero when this is empty. Compose will not start without it. Never commit a real value.
MCP_ALLOW_INSECURE_DEVNoSet to 1 only for local development to start HTTP without CONDUIT_S2S_SECRET. The process logs a warning and does not enforce X-Gateway-S2S. Startup is refused unless MCP_HTTP_HOST is loopback (127.0.0.1, localhost, or ::1).
MCP_HTTP_HOSTNoBind address when MCP_TRANSPORT=http. Defaults to 127.0.0.1. The container image sets 0.0.0.0.
MCP_HTTP_PORTNoHTTP port. Defaults to 8080.

/health and /healthz stay unauthenticated and do not read credentials. The stdio transport does not use CONDUIT_S2S_SECRET.

HTTP authentication

With MCP_TRANSPORT=http and CONDUIT_S2S_SECRET set, every /mcp request must include X-Gateway-S2S (t=<unix seconds>,v1=<hex hmac-sha256 of t=...>). A missing or invalid header returns 401.

In AUTH_MODE=gateway, /mcp also requires X-Mimecast-Client-ID and X-Mimecast-Client-Secret (X-Mimecast-Region is optional). Those headers are the only credential source for that request.

Usage

Running with Claude Desktop

Add to your Claude Desktop claude_desktop_config.json:

json
{  "mcpServers": {    "mimecast-mcp": {      "command": "npx",      "args": ["@wyre-ai/mimecast-mcp"],      "env": {        "MIMECAST_CLIENT_ID": "your-mimecast-client-id",        "MIMECAST_CLIENT_SECRET": "your-mimecast-client-secret",        "MIMECAST_REGION": "us"      }    }  }}

Running with Claude Code (CLI)

bash
claude mcp add mimecast-mcp \  -e MIMECAST_CLIENT_ID=your-value \  -e MIMECAST_CLIENT_SECRET=your-value \  -e MIMECAST_REGION=your-value \  -- npx -y @wyre-ai/mimecast-mcp

Docker

The image listens on 0.0.0.0 inside the container (MCP_HTTP_HOST) and defaults to AUTH_MODE=gateway. Publish the port on loopback and pass the S2S secret. In gateway mode, Mimecast credentials arrive on each request as headers; they are not read from the environment.

bash
docker build -t mimecast-mcp .docker run \  -e CONDUIT_S2S_SECRET=your-s2s-secret \  -p 127.0.0.1:8080:8080 \  mimecast-mcp

Compose refuses to start when CONDUIT_S2S_SECRET is unset, defaults AUTH_MODE to gateway, and publishes 127.0.0.1:8080:8080:

bash
CONDUIT_S2S_SECRET=your-s2s-secret docker compose up

Single-tenant HTTP (AUTH_MODE=env) still requires the S2S secret, then uses MIMECAST_CLIENT_ID and MIMECAST_CLIENT_SECRET:

bash
docker run \  -e CONDUIT_S2S_SECRET=your-s2s-secret \  -e AUTH_MODE=env \  -e MIMECAST_CLIENT_ID=your-value \  -e MIMECAST_CLIENT_SECRET=your-value \  -e MIMECAST_REGION=us \  -p 127.0.0.1:8080:8080 \  mimecast-mcp

Local HTTP without a secret is development-only. It binds loopback (127.0.0.1 unless MCP_HTTP_HOST is localhost or ::1) and logs a warning. A non-loopback MCP_HTTP_HOST makes startup exit:

bash
MCP_TRANSPORT=http MCP_ALLOW_INSECURE_DEV=1 npm run start:http

API application permissions

Create an API 2.0 application in the Mimecast Administration Console (Services → API and Platform Integrations) and assign it a custom administrator role. The client id and client secret from that application are MIMECAST_CLIENT_ID and MIMECAST_CLIENT_SECRET. API 1.0 applications (application id, application key, access key, and secret key with HMAC signing) are not accepted.

Grant only the permissions each tool calls. A permissions error from mimecast_get_queue_status or mimecast_get_threat_incidents means the role is missing the row below. An empty list from audit or TTP logs means the call was authorized and nothing matched the window.

ToolPermission on the application role
mimecast_find_message, mimecast_get_message_infoGateway | Tracking | Read
mimecast_hold_message, mimecast_release_messageAccount | Monitoring | Held | Edit
mimecast_get_queue_statusAccount | Dashboard | Read
mimecast_get_threat_incidentsServices | Threat Remediation | Read
mimecast_get_ttp_logs (type=url)Monitoring | URL Protection | Read
mimecast_get_ttp_logs (type=attachment)Monitoring | Attachment Protection | Read
mimecast_get_ttp_logs (type=impersonation)Monitoring | Impersonation Protection | Read
mimecast_get_audit_eventsAccount | Logs | Read

mimecast_get_audit_events also requires a start and end. When the caller omits them, the server queries the last 7 days. Mimecast only keeps 60 days of audit history, and category filters must be codes such as account_logs or policy_logs (omit categories to search every log). Basic Administrator includes the read permissions in Mimecast's own integration guides; Threat Remediation and Held Edit are separate and must be added explicitly.

Available Domains

Messages

Message tracking and investigation

Queue

Email queue management

Threats

Threat intelligence and detection data

Interactive Message Card (MCP Apps)

mimecast_get_message_info renders as an interactive, read-only card in MCP Apps hosts (Claude Desktop/web) showing delivery status, sender/recipients, spam score, and rejection details; plain-JSON behavior is unchanged in other hosts. The card is neutral by default, brandable via window.__BRAND__ injection or MCP_BRAND_* env vars (MCP_BRAND_NAME, MCP_BRAND_LOGO_URL, MCP_BRAND_PRIMARY_COLOR, MCP_BRAND_ACCENT_COLOR, MCP_BRAND_BG, MCP_BRAND_TEXT) — no rebuild needed.

Development

bash
# Clone the repositorygit clone https://github.com/WYRE-AI/mimecast-mcp.gitcd mimecast-mcp
# Install dependenciesnpm install
# Buildnpm run build
# Run testsnpm test

Contributing

Contributions are welcome! Please see CONTRIBUTING.md if present, or open an issue to discuss changes.

License

Licensed under the Apache License, Version 2.0. See LICENSE for details.

來源:README.md,提交 f66fb71

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

4
  1. v1.3.9最新Oct 10, 2026
  2. v1.3.8Oct 9, 2026
  3. v1.3.7Oct 8, 2026
  4. v1.3.6Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分