ironscales-mcp
This MCP server connects AI assistants to Ironscales email security for phishing investigation, email classification, remediation, allowlist management, and security reporting.
Check Ironscales API connection status and list available tools.
List phishing incidents with pagination and optional status/severity filters.
Get detailed incident information by ID, including recipients, headers, threat indicators, and timeline; rendered as an interactive card in MCP Apps hosts.
Classify emails as phishing, spam, or legitimate using sender, subject, headers, body, URLs, and attachment metadata.
Execute remediation actions on incidents: quarantine, delete, block sender, mark false positive, or report to Microsoft.
Add, remove, or list sender allowlist entries for emails, domains, and IP addresses.
Retrieve company dashboard statistics over 7d, 30d, 90d, or 1y periods, including incident counts, trends, targeted users, attack types, and remediation summaries.
Ironscales MCP Server
A Model Context Protocol (MCP) server for Ironscales email security. Enables AI assistants to investigate phishing incidents, manage email classification, execute remediations, and view security statistics.
This is a Model Context Protocol (MCP) server that connects Claude (or any MCP-compatible AI) to your Ironscales environment.
Part of the MSP Claude Plugins ecosystem — a growing suite of AI integrations for the MSP stack. Built by MSPs, for MSPs.
Interactive Incident Card (MCP Apps)
ironscales_incidents_get renders as an interactive card in MCP Apps hosts
(Claude Desktop/web) showing the phishing incident's subject, status, severity,
sender, affected recipients, and threat indicators; plain-JSON behavior is
unchanged in other hosts. The card is read-only — remediation stays with the
model-driven remediation tools. It is neutral by default and 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.
Related MCP server: avanan-mcp
Installation
npm install @wyre-ai/ironscales-mcpConfiguration
Copy .env.example and set the variables below.
Variable | Required | Description |
| For stdio and | Ironscales API key |
| For stdio and | Ironscales company ID |
| No |
|
| No |
|
| Yes for HTTP | Service-to-service secret. The HTTP server logs an error and exits non-zero when this is empty or a known placeholder ( |
| No | Set to exactly |
| No | Bind address when a real |
| No | HTTP port. Defaults to |
/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. The check is verifyS2sHeader in src/s2s-verify.ts: the header value is t=<unix seconds>,v1=<hex>, where the hex is HMAC-SHA256 of the literal string t=<unix seconds> keyed with CONDUIT_S2S_SECRET (64 lowercase hex characters). The timestamp must be within 300 seconds of the server clock. A missing or invalid header is HTTP 401, before vendor credentials are read.
TS=$(date +%s)
SIG=$(printf 't=%s' "$TS" | openssl dgst -sha256 -hmac "$CONDUIT_S2S_SECRET" -hex | awk '{print $NF}')
curl -sS http://127.0.0.1:8080/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-H "X-Gateway-S2S: t=${TS},v1=${SIG}" \
-H "X-Ironscales-API-Key: $IRONSCALES_API_KEY" \
-H "X-Ironscales-Company-ID: $IRONSCALES_COMPANY_ID" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'In AUTH_MODE=gateway, /mcp also requires X-Ironscales-API-Key and X-Ironscales-Company-ID. Those headers are the only credential source for that request. AUTH_MODE=env still requires the signed X-Gateway-S2S header, then uses IRONSCALES_API_KEY and IRONSCALES_COMPANY_ID from the environment.
Usage
Running with Claude Desktop
Add to your Claude Desktop claude_desktop_config.json:
{
"mcpServers": {
"ironscales-mcp": {
"command": "npx",
"args": ["@wyre-ai/ironscales-mcp"],
"env": {
"IRONSCALES_API_KEY": "your-ironscales-api-key"
"IRONSCALES_COMPANY_ID": "your-ironscales-company-id"
}
}
}
}Running with Claude Code (CLI)
claude mcp add ironscales-mcp \
-e IRONSCALES_API_KEY=your-value \
-e IRONSCALES_COMPANY_ID=your-value \
-- npx -y @wyre-ai/ironscales-mcpDocker
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 a real S2S secret. In gateway mode, Ironscales credentials arrive on each request as headers; they are not read from the environment.
# Placeholder values are rejected at startup; generate a real secret first.
export CONDUIT_S2S_SECRET="$(openssl rand -hex 32)"
docker build -t ironscales-mcp .
docker run \
-e CONDUIT_S2S_SECRET \
-p 127.0.0.1:8080:8080 \
ironscales-mcpCompose refuses to start when CONDUIT_S2S_SECRET is unset. The gateway service sets AUTH_MODE=gateway, does not inject IRONSCALES_API_KEY or IRONSCALES_COMPANY_ID, and publishes 127.0.0.1:8080:8080:
export CONDUIT_S2S_SECRET="$(openssl rand -hex 32)"
docker compose upSingle-tenant HTTP (AUTH_MODE=env) still requires the S2S secret, then uses IRONSCALES_API_KEY and IRONSCALES_COMPANY_ID. It is separate from the gateway Compose service above.
export CONDUIT_S2S_SECRET="$(openssl rand -hex 32)"
docker run \
-e CONDUIT_S2S_SECRET \
-e AUTH_MODE=env \
-e IRONSCALES_API_KEY=your-value \
-e IRONSCALES_COMPANY_ID=your-value \
-p 127.0.0.1:8080:8080 \
ironscales-mcpLocal HTTP without a secret is development-only. It binds 127.0.0.1 and logs a warning. A non-loopback MCP_HTTP_HOST (including the image default 0.0.0.0) makes startup exit:
MCP_TRANSPORT=http MCP_HTTP_HOST=127.0.0.1 MCP_ALLOW_INSECURE_DEV=1 npm run start:httpAvailable Tools
Every tool is listed and callable immediately; there is no domain to enter first. The groupings below are documentation only.
Upgrading?
ironscales_navigateandironscales_backare removed. Call the domain tools directly.ironscales_statusstill works and now lists the available tools.
Status
ironscales_status- Connection status and the available tools
Allowlist
ironscales_allowlist_manage- Manage email allowlists and blocklists
ironscales_email_classify- Email investigation and classification
Incidents
ironscales_incidents_list- List phishing incidentsironscales_incidents_get- Get a phishing incident
Remediation
ironscales_remediation_act- Execute email remediations and quarantine
Stats
ironscales_stats_company- Security statistics and reporting
Development
# Clone the repository
git clone https://github.com/WYRE-AI/ironscales-mcp.git
cd ironscales-mcp
# Install dependencies
npm install
# Build
npm run build
# Run tests
npm testContributing
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.
Available Tools
7 toolsironscales_allowlist_manageB
Add or remove entries from the sender allowlist. Allowlisted senders are never flagged as phishing threats. Supports email addresses, domains, and IP addresses.
Inputs: operation (required), value, reason, entry_type.
ironscales_email_classifyA
Classify an email as phishing, spam, or legitimate using Ironscales AI analysis. Provide raw email headers and/or body content for analysis.
Inputs: sender (required), urls, headers, subject, +5 more.
ironscales_incidents_getB
Get detailed information about a specific phishing incident by its ID, including affected recipients, email headers, threat indicators, and timeline.
Inputs: incident_id (required).
ironscales_incidents_listB
List phishing incidents. Returns a paginated list of incidents with their status, severity, and summary information.
Inputs: limit, offset, status, severity.
ironscales_remediation_actB
Take a remediation action on a phishing incident. Actions include quarantining emails, blocking senders, deleting messages from all mailboxes, or marking as false positive.
Inputs: action (required), incident_id (required), reason, notify_users.
ironscales_stats_companyA
Get dashboard statistics for the company, including incident counts, threat trends, top targeted users, most common attack types, and remediation summary over a time period.
Inputs: period.
ironscales_statusA
Check Ironscales API connection status and list the available tools.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool targets a distinct resource+action pair: connection status, incident list, incident detail, email classification, remediation, company stats, and allowlist management. The boundary between incidents_list/incidents_get and stats_company is clear, and remediation_act is unmistakably the write path for incidents.
All tools share a consistent ironscales_ prefix and snake_case, mostly following a resource_verb pattern (incidents_list, email_classify, allowlist_manage). The lone outlier is ironscales_status, which omits a verb, and the verb position varies (noun_verb vs verb_noun is not mixed, so this is minor).
Seven tools is well within the sweet spot for a phishing-response integration, and each one covers a meaningful slice of the workflow. No tool looks redundant or tacked on.
Core lifecycle is covered: detect (list/get), analyze (classify), act (remediate), report (stats), and tune (allowlist). Gaps remain around blocklist/denylist management and explicit incident lifecycle operations like assignment, notes, or close/resolve beyond the false-positive flag.
Maintenance
Related MCP Connectors
Email safety MCP server. Detects phishing, prompt injection, CEO fraud for AI agents.
Hosted MCP server for MuntuAI outreach campaigns, leads, senders, domains, and analytics.
Cybersecurity MCP server for URL scanning, threat intelligence, and domain reputation.
MCP Server for an Agent Task Marketplace
Related MCP Servers
- Apache 2.0
- AlicenseAqualityBmaintenanceMCP server for Checkpoint Harmony Email & Collaboration (Avanan). Enables AI assistants to manage email security, anti-phishing, anti-malware, and threat detection via the Avanan API.131Apache 2.0
- AlicenseBqualityBmaintenanceMCP server for KnowBe4 — security awareness training, phishing simulation, and user risk management API integration30Apache 2.0
- AlicenseBqualityBmaintenanceMCP server for Proofpoint Email Protection - email security, threat intelligence, TAP (Targeted Attack Protection), and email filtering API integration406Apache 2.0