Skip to content

MCP Server (AI Integration)

PhishSpot ships an MCP (Model Context Protocol) server, so an AI client such as Claude can drive PhishSpot on your behalf — using natural language, against the same data and rules as the web app. The tool surface now mirrors most of what a human can do in the admin app: browse the template library, build and schedule campaigns, upload hosted images, manage contacts/groups/courses/domains/webhooks/autopilots, and read every result and trend.

The MCP server is available at:

https://platform.phishspot.com/mcp

It speaks JSON-RPC over HTTP. Point any MCP-capable client at that URL using the HTTP transport.

The MCP server reuses PhishSpot API tokens. A token must be explicitly granted MCP access.

  1. Go to Settings → API Tokens → New Token.
  2. Give it a name and tick Allow MCP access.
  3. Copy the token value (shown once).

For Claude Code, run (replace YOUR_TOKEN):

Terminal window
claude mcp add --transport http phishspot https://platform.phishspot.com/mcp \
--header "Authorization: Bearer YOUR_TOKEN"

For Claude Desktop or another client, add a server entry:

{
"mcpServers": {
"phishspot": {
"type": "http",
"url": "https://platform.phishspot.com/mcp",
"headers": { "Authorization": "Bearer YOUR_TOKEN" }
}
}
}

29.4 Safety: what sends and what doesn’t

Section titled “29.4 Safety: what sends and what doesn’t”

Almost everything the AI can do is read-only or build-only. The build_*, create_* and set_* campaign tools prepare a campaign up to the review step and never send email to recipients — a person launches each campaign from the PhishSpot UI.

A small, clearly-labelled set of action tools can trigger real email, so an AI can run a campaign end-to-end when you ask it to. Their descriptions open with a warning, and they require an admin/editor role:

Action toolEffect
schedule_campaignSends real email — schedules a ready campaign to actually launch at a given time.
reschedule_campaignSends real email — moves a scheduled campaign to a new send time.
start_autopilotStarts a live program — activates an autopilot that generates and sends recurring campaigns on a schedule.
send_deliverability_testSends one real email — a neutral test message with a one-time code to a single address at a verified secured domain.

cancel_schedule, pause_autopilot and stop_autopilot are the safe counterparts — they stop sends. Adding a sending domain provisions it and returns nameservers to set at your registrar; it does not register or buy the domain.

Almost every account-scoped tool takes an account_id (acct_…). Call whoami first to discover the accounts and roles your token can use. Tools are grouped below by capability.

ToolWhat it does
whoamiList the authenticated user and the accounts/roles the token can act on.
list_sending_domainsList active and provisioning sending domains for an account.
provision_sending_domainAdd a BYOD sending domain and return the nameservers to set at the registrar.
check_sending_domainPoll a sending domain’s delegation, mail records, and whether it is sendable.
list_platform_domainsList every domain visible to the account (shared + BYOD) with state and sendability.
get_platform_domainFull detail for one domain: verification status, expected DNS records, diagnostics, block reason.

Check whether email from a sending domain reaches mailboxes at a verified secured domain (§9.1). The recipient reads the 6-digit code from the email; tools never return it.

ToolWhat it does
send_deliverability_testAction tool — sends one coded test email from noreply@ a sending domain to an address exactly at the secured domain. Admin or editor; 20 tests per account per hour.
list_deliverability_testsTest history (optionally for one secured domain): recipient, sending domain, outcome and last SMTP status. Read-only.
check_deliverability_testRefresh a test’s SMTP status from the mail server (accepted, queued, deferred, rejected, bounced) with the server’s reply.
confirm_deliverability_testRecord the outcome: the code from the email (delivered) or not_received: true.
ToolWhat it does
list_contactsSearch and filter all account contacts before pagination; returns available filter choices. Departments and titles accept multiple values.
import_contactsImport contacts from CSV or JSON; the groups column models waves/segments.
update_contactUpdate a contact’s fields and/or replace its group membership. simulation_excluded: true excludes the contact from all simulations.
manage_org_levelsShow the account’s names for the four organisational levels on contacts, or rename them (account admins).
delete_contactsDelete contacts (skips any locked by an active campaign).
list_groupsList contact groups in an account.
create_groupCreate a new contact group. Optional simulation_excluded: true makes it an exclusion list.
update_groupRename a group and/or set simulation_excluded (members of an excluded group never receive simulations).
delete_groupDelete a group (unless it is locked by an active campaign).
add_contacts_to_groupAdd contacts to a group (skips duplicates).
remove_contacts_from_groupRemove contacts from a group.
ToolWhat it does
list_phishing_templatesList curated or custom templates, filterable by category and search.
get_phishing_templateGet one template’s full email + landing HTML/CSS and post-click action.
list_phishing_categoriesList the template category tree (only leaf categories hold templates).
build_campaign_from_templateBuild a draft campaign from a template; optionally add all contacts and stop at review. Never sends.
ToolWhat it does
list_coursesList courses usable by the account (own + global) with block counts and completion stats.
get_courseGet one course’s details and an ordered summary of its blocks.
duplicate_courseCopy an own course or a global template into an editable course of the account (lessons, quizzes, files). Admin or editor.
ToolWhat it does
upload_mediaUpload an image or CSS file (from a URL or base64) and get a hosted URL for emails/landings.
list_mediaList the account’s hosted media.
delete_mediaDelete a media file.
ToolWhat it does
list_campaignsList campaigns with state and wizard progress.
get_campaignFull status of one campaign, including what still blocks launch.
create_campaignCreate a draft campaign (settings).
set_campaign_emailSet the email subject and HTML body.
set_campaign_landingSet the landing page and sending/landing domain.
set_campaign_post_clickSet the post-click action (training, awareness page, or redirect).
add_campaign_recipientsAdd recipients (all, a group, or specific contacts). Leaves the campaign at review.
set_campaign_recipientsSave the complete recipient selection with optional group origins. draft allows an empty list; continue requires recipients. Sent recipients are protected. Does not send email. Read the saved selection with get_campaign.
build_campaign_from_specBuild a whole draft campaign in one call (settings → recipients).
duplicate_campaignDuplicate a campaign into a fresh draft (with recipients). Never sends.
clone_campaign_to_accountClone a campaign into another organization you administer. Recipients are not copied; never sends. Returns name_warning_terms.
ToolWhat it does
schedule_campaign⚠ Sends real email — schedule a ready campaign to launch at a given time.
reschedule_campaign⚠ Sends real email — move a scheduled campaign to a new send time.
cancel_scheduleCancel a pending scheduled send, returning the campaign to draft.
ToolWhat it does
get_campaign_resultsEngagement funnel plus per-group and per-department breakdowns.
get_campaign_recipientsPer-recipient delivery stage, training status and reply flag (filterable).
get_recipient_timelineChronological event timeline for one contact in a campaign. Each event states whether it was attributed to a security scanner (automated, automated_reason).
get_campaign_repliesReplies recipients sent back to the phishing email.
list_account_trendsPhishing-susceptibility trends across campaigns over a date range.
get_risk_overviewHuman-risk overview: contacts per risk level, average score, scoring settings, the account’s KPI/KRI indicators with their status, groups by risk with a high-risk flag, the 90-day account trend and the automatic education rule (read only; it cannot be switched on here). Read-only.
list_eventsRaw engagement events, filterable by campaign / contact / type and by automated (interactions attributed to security scanners, which results do not count).
list_audit_eventsAccount admins: read the audit log of administrative actions (Chapter 35), filterable by action, action group, actor, result and time range. Read-only.
list_reported_messagesSuspicious emails employees reported (sender/subject metadata only).
manage_report_forwardingAdvanced reporting add-on, account admins: show forwarding of non-simulation reports by email or to a SIEM, or switch either channel on or off. The mailbox, SIEM URL and secrets are set in the UI or API only, so an agent cannot redirect copies of reported mail.
manage_teams_notificationsAccount admins: show the Microsoft Teams channel connection and its notification switches, switch notifications on or off, send a test message, or post a general training reminder for a running campaign with a course. Messages carry titles and overall numbers only. The webhook URL is set in the UI or API and is never returned.
manage_ai_modeAccount admins: show or change the account’s AI mode (disabled, global or eu), the one switch for every AI feature. With AI off nothing is sent; in the EU mode requests go only to OpenRouter’s EU regional endpoint. Every change is recorded in the audit log.
get_reported_message_evidenceRead preserved headers, completeness and simulation classification for a report.
ToolWhat it does
list_webhook_endpointsList outbound webhook endpoints.
get_webhook_endpointOne endpoint plus its recent deliveries (signing secret masked).
create_webhook_endpointCreate a (disabled) endpoint; returns the signing secret once.
update_webhook_endpointUpdate an endpoint’s name, URL or event subscriptions.
delete_webhook_endpointDelete an endpoint and its delivery history.
toggle_webhook_endpointEnable or disable an endpoint.
list_webhook_event_typesList the event types you can subscribe to (no account needed).
ToolWhat it does
list_autopilotsList autopilot programs and their state/progress.
get_autopilotOne autopilot’s config, target groups and recent campaigns.
create_autopilotCreate an autopilot in draft. Does not start it.
update_autopilotUpdate an editable (non-stopped) autopilot.
delete_autopilotDelete an autopilot (not while it is running).
start_autopilot⚠ Starts a live program that sends recurring phishing campaigns on a schedule.
pause_autopilotPause a running autopilot.
stop_autopilotStop an autopilot permanently (irreversible).

To send a campaign from your own domain (for example your-org.com):

  1. Ask the AI to call provision_sending_domain with the domain.
  2. Set the returned nameservers at your domain registrar.
  3. Poll with check_sending_domain until it reports the domain is active and sendable.

Once active, the domain appears in list_sending_domains / list_platform_domains and can be used as a campaign’s sending/landing domain. See also Domains.

29.7 Example: build a campaign from a template

Section titled “29.7 Example: build a campaign from a template”

A typical AI-driven flow, all build-only until you choose to schedule:

  1. whoami → pick the account_id.
  2. list_phishing_categories and list_phishing_templates → choose a template.
  3. build_campaign_from_template (optionally quick_launch) → a draft campaign with recipients, sitting at review.
  4. get_campaign → confirm there are no readiness errors.
  5. Either launch it yourself in the UI, or ask the AI to schedule_campaign for a specific time (this sends for real).
  6. After it runs, get_campaign_results, get_campaign_recipients and list_account_trends summarize who fell for it.

Every tool ships live on the platform with each deploy — no extra setup, no migration, and no per-tool configuration is required.

Use list_umbrella_campaigns to find collections and manage_umbrella_campaign to create, rename, change membership or delete one. campaign_ids replaces the complete scenario list; omit it to keep membership unchanged. Empty lists detach all scenarios. Delete requires confirm=true and keeps the underlying campaigns. Scenarios must share exactly the same post-click action; detach a scenario before changing that action.

get_report accepts a campaign, umbrella or account subject_id. Its filters object supports the same multiple-choice filters as list_contacts; group_by selects department, title, location or group. The response includes exclusive outcome counts and percentages, the same breakdown limited to people who opened, clicked, submitted or reported the email (opened_summary), numbered scenarios and 25 participation rows per page. Repeated sends do not multiply rows. Use export_report with the same options to receive an embedded PDF, DOCX, Markdown, RTF or CSV file. anonymous=true replaces recipient identities and omits sensitive free-text sections and previews.

list_report_templates shows the templates available to the account. Select one with report_template_id in export_report; the clean template omits report logos. Platform administrators can use manage_report_template with template_attributes, assigned account_ids, optional base64 images, and copy_from to customize a built-in template. Image data can be an empty string to remove an image. Built-ins are protected, and deletion requires confirm=true.

Running an autopilot without recurring approvals

Section titled “Running an autopilot without recurring approvals”

Create a draft with create_autopilot using account_id and name, plus the audience and intensity you want to override. Other fields, including language, country, industry and post-click outcome, use defaults. Call start_autopilot once to enable automatic content preparation and delivery. Each subsequent send follows the program’s audience, learning history, delivery hours and shared frequency limits without a separate approval.

list_autopilots returns execution summaries; get_autopilot also returns recent deliveries and changes. Use them to see the next send, confirmed deliveries or the reason a program is waiting. Pause with pause_autopilot; resume with start_autopilot without catching up missed sends. stop_autopilot and delete_autopilot require confirm: true. A paused program must also be stopped before deletion. A stopped program cannot be restarted.

manage_email_attachments supports list, upload and delete for a campaign or template (parent_type, parent_id). Upload accepts filename and base64_data; delete requires the returned attachment_id and confirmed=true. The same file limits and permissions apply as in the UI and API. This tool does not send email.

get_training_records reads the same training progress, attempt scores, retained course version and certificate metadata as the campaign dashboard. Supply campaign_id and optional page; add certificate_id to download an issued PDF as base64. It cannot mark a participant trained or issue a certificate.

manage_directory_integration gives active account administrators the Entra actions status, configure, consent, sync and disconnect. Use allowed_group_ids_text with space/comma/newline-separated group GUIDs to replace the import scope, plus optional sync flags and schedule. consent returns a link requiring interactive Microsoft administrator approval. disconnect requires confirmed: true. The same demo restrictions, synchronization locks and access rules apply as in the UI and API; credentials are never returned. Pass org_level_mapping (for example {"org_level_1": "companyName"}) to choose which Entra attribute fills each organisational level.

Organisational structure: list_contacts, get_report filters and export_report accept company, country, language, manager_email and org_level_1…org_level_4; import_contacts and update_contact accept the same fields plus manager_name; get_report and export_report take group_by values company, country, manager and org_level_1…org_level_4, and return group_by_label and org_level_labels with the account’s names for the levels.

set_campaign_post_click accepts optional training_only: true for a draft training invitation. Set the action to redirect_to_course, choose an available course and disable the phishing landing page first. get_campaign returns this classification. Sequence definitions use the same assign_training root and completed_training branch as the UI and API.

create_campaign accepts optional delivery_spread_hours (0–720) to spread delivery randomly over a window after launch; get_campaign returns the current value.

manage_visual_content reads or updates the HTML and optional GrapesJS project for campaigns, custom templates and sequence steps. Pass parent_type, public parent_id, field and action (read or update); add step_id for a sequence. Updates take html, optional landing css and optional project_json. Omit project_json to start future visual edits from the new HTML. The tool uses the same content permissions and lifecycle locks as the UI.

get_period_report reads an aggregate period/final report with account_id, optional inclusive ISO dates from/to, and format (read, pdf, csv, xlsx, json, zip). It includes previous-period comparisons, quarterly history, internal department benchmarks, verified completion and suggested follow-up actions. read returns structured data; other formats embed a file. Every active member can read reports; ZIP handover requires admin/editor and is limited to 128 MB. No mail is sent. ZIP includes reusable source content and settings, excluding recipients and integration secrets. See Reports and Analytics.

manage_outlook_mailboxes gives account administrators the same connection metadata and disconnect action as Settings → Integrations → Outlook mailbox connections. Use account_id and action: "list" for the latest 500 connections. To remove stored delegated credentials, use action: "disconnect", the public connection_id (omc_…) and confirmed: true. Historical reports and device activation remain. Microsoft consent must be completed interactively from the activated Outlook add-in; MCP never receives mailbox tokens or message content through this tool.