MCPInstall
sophos-mcp logo

sophos-mcp

by Aaronjacobs000 19 stars aaronjacobs000/sophos-mcp

Unofficial, not a Sophos product. MCP server for the Sophos Fusion (formerly Sophos Central) APIs.

READMEmain

Sophos Fusion MCP Server (formerly Sophos Central)

Unofficial project, not from Sophos. This is a personal project by an individual. It is not an official Sophos product and it is not built, endorsed, supported, or warranted by Sophos. It calls the public Sophos APIs using credentials you supply. Use it at your own risk, and raise problems as issues on this repository rather than with Sophos support.

MCP (Model Context Protocol) server for the Sophos Fusion and Sophos Central APIs. Supports partner, organisation, and single-tenant credential types with automatic region routing. 360 tools covering 25 Sophos API namespaces: the Sophos Central REST APIs plus the Sophos Fusion GraphQL APIs (sophos_fusion_*). Install it as a Claude Desktop extension (.mcpb), run it with npx, or host it yourself over streamable HTTP.

The npm package, the .mcpb bundle and the binaries keep the sophos-central-mcp-server name so existing installs update in place.

Prerequisites

You need these before any of the install options below.

Sophos Central API credentials

Every install method needs a Client ID and Client Secret. The same credential authorises both the Sophos Central REST tools and the Sophos Fusion GraphQL tools; there is no second credential. The credential type decides what the server can see:

  • Tenant-level: In Sophos Central, go to Settings > API Credentials Management and create a new credential. The server operates on that one tenant.
  • Partner-level: In the Sophos Partner Dashboard, create API credentials under Settings > API Credentials. The server can query every tenant the partner manages.
  • Organisation-level: In Sophos Central Enterprise, use Global Settings > API Credentials Management. Same cross-tenant behaviour as partner credentials.

Node.js 22 or later (npm and self-hosted installs only)

The .mcpb bundle for Claude Desktop does not need Node.js on your machine: Claude Desktop ships its own Node.js runtime and the bundle carries the server and all of its dependencies. Install Node.js 22+ only if you use the Claude Code or self-hosted options.

If you run the server in HTTP mode, use Node.js 22.23.4, 24.22.1, 26.12.1 or later, which fix the Brotli decoder bug CVE-2026-111497.

Install

Pick one:

OptionBest forNeeds Node.js?
Claude Desktop extension (.mcpb)Claude Desktop users who want a two-minute installNo
Claude CodeTerminal use with Claude CodeYes
Self-hosted with npmRunning the server yourself for any MCP client, over streamable HTTP or stdioYes

Option 1: Claude Desktop extension (.mcpb, recommended)

The .mcpb file is an MCP Bundle: a zip containing the built server, its production dependencies, and a manifest that tells Claude Desktop how to run it and which settings to ask for. No terminal and no config file edits.

  1. Download sophos-central-mcp-server-<version>.mcpb from the latest GitHub release.
  2. Open the file with Claude Desktop. Double-clicking it works on macOS and Windows. You can also go to Settings > Extensions > Advanced settings, find the Extension Developer section, click Install Extension... and pick the file.
  3. Claude Desktop shows the extension details and asks for your Sophos Central Client ID and Client Secret. Both fields are marked sensitive in the manifest, so Claude Desktop keeps them in the operating system's secure storage instead of a config file.
  4. Click Install, make sure the extension is enabled, then start a new chat. The sophos_* tools are available straight away.

To update, download the newer .mcpb and install it the same way. To remove it, open Settings > Extensions and uninstall the extension.

To change the credentials later, open Settings > Extensions and click this extension. The Sophos Central Client ID and Client Secret fields are editable there. They are stored in the operating system's secure storage and show masked, so you replace a value rather than read the old one back. The server reads them at startup, so toggle the extension off and on, or restart Claude Desktop, if a change does not take effect.

The bundle runs the server in stdio mode and sets TRANSPORT=stdio for you. Which tools you get depends on the credential type, exactly as with the other install options: partner and organisation credentials unlock the cross-tenant tools, tenant credentials do not.

Option 2: Claude Code

Requires Node.js. Run this once in your terminal. The -e flags save the credentials permanently to Claude Code's MCP config so you don't need to re-export them each session:

macOS / Linux:

claude mcp add sophos-central \
  -e SOPHOS_CLIENT_ID="your-client-id" \
  -e SOPHOS_CLIENT_SECRET="your-client-secret" \
  -e TRANSPORT="stdio" \
  -- npx -y sophos-central-mcp-server

Windows (Command Prompt):

claude mcp add sophos-central ^
  -e SOPHOS_CLIENT_ID="your-client-id" ^
  -e SOPHOS_CLIENT_SECRET="your-client-secret" ^
  -e TRANSPORT="stdio" ^
  -- cmd /c npx -y sophos-central-mcp-server

Option 3: Self-hosted with npm (streamable HTTP or stdio)

Use this when you want to run the server yourself, on a workstation, a jump box, or in a container, for any MCP client that speaks streamable HTTP or can spawn a stdio process. Nothing here depends on the .mcpb bundle.

Install from npm:

npm install -g sophos-central-mcp-server

Or from source:

git clone https://github.com/Aaronjacobs000/sophos-mcp.git
cd sophos-mcp
npm install
npm run build

Configure. Either export the variables in your shell or put them in a .env file in the directory you start the server from. The full table is under Configuration.

SOPHOS_CLIENT_ID=your-client-id
SOPHOS_CLIENT_SECRET=your-client-secret
PORT=3100
TRANSPORT=http

Run:

sophos-central-mcp      # global npm install
npm start               # from a source checkout

With TRANSPORT=http (the default) the server listens on http://127.0.0.1:3100/mcp (MCP_HTTP_HOST and PORT change that) and answers GET /health with {"status":"ok","server":"sophos-central-mcp-server"}. The MCP endpoint is stateless: every request gets a fresh server and transport, so concurrent tool calls work. Point any streamable HTTP client at it, for example Claude Code:

claude mcp add --transport http sophos-central http://127.0.0.1:3100/mcp

With TRANSPORT=stdio the server speaks MCP over stdin/stdout and is meant to be spawned by the client, which is what Options 1 and 2 do for you.

By default the HTTP server binds to 127.0.0.1 and has no authentication. It refuses any request with a browser Origin other than localhost, 127.0.0.1, [::1] or one listed in MCP_ALLOWED_ORIGINS, so a web page cannot drive it by cross-site POST or DNS rebinding. MCP clients that are not browsers send no Origin, so this does not affect them, on this machine or another.

Using it from other machines

To let agents on other machines use the server:

  1. Make a token, for example openssl rand -hex 32.

  2. Start the server listening on the network, with the token:

    MCP_HTTP_HOST=0.0.0.0 MCP_HTTP_TOKEN=<token> TRANSPORT=http npm start
    

    0.0.0.0 listens on every interface. To listen on one only, use that interface's address, such as a LAN or Tailscale IP.

  3. Point each client at http://<server>:3100/mcp and have it send Authorization: Bearer <token>. In Claude Code:

    claude mcp add --transport http sophos-central http://<server>:3100/mcp --header "Authorization: Bearer <token>"
    

Every /mcp request without the right token gets a 401. /health stays open. Without a token, anyone who can reach the port can use every tool with your Sophos credentials, and the server prints a warning at startup saying so.

Plain HTTP sends the token and tool results in clear text. On any network you don't fully trust, encrypt it: TLS through a reverse proxy (Caddy or nginx, say), or reach the server over Tailscale.

A browser based MCP client on another machine sends an Origin and is refused until you add that origin to MCP_ALLOWED_ORIGINS. Agents and CLI clients need nothing there.

Build the .mcpb yourself (maintainers)

The bundle is produced by scripts/build-mcpb.mjs using the mcpb CLI, which is a dev dependency. From a source checkout:

npm install
npm run build:mcpb

The script:

  1. Compiles TypeScript to dist/ (via npm run build).
  2. Rewrites manifest.json so its version matches package.json and its tools list matches every registerTool call in src/tools/. Commit the result. The manifest in git is always the one that was last built.
  3. Validates the manifest with mcpb validate.
  4. Stages dist/, package.json, LICENSE, and manifest.json in build/mcpb/ and runs npm ci --omit=dev there, so only production dependencies are bundled. .mcpbignore adds a few exclusions on top of the CLI's defaults.
  5. Packs the staging directory into release/sophos-central-mcp-server-<version>.mcpb.

build/ and release/ are git-ignored. To inspect a bundle without installing it, npx mcpb info release/<file>.mcpb prints its size and signature state, and npx mcpb unpack release/<file>.mcpb <dir> extracts it. Signing is optional; npx mcpb sign --self-signed release/<file>.mcpb adds a self-signed signature if you want one.

Tests (maintainers)

npm test

Builds, then runs the node:test suites in test/ with fetch stubbed: the Fusion GraphQL transport (including the HTTP 200 with errors case), the QL builder, the reference-data cache, and the path-keyed retry for the intermittent case-write fault, the migration guard, the policy assignment and web profile writes (body shapes, refusals, target lookups and read-back) against an in-memory policy store, the no-retry rule for a POST or mutation after a 5xx, the read-modify-write and PATCH update tools, the request shapes of the tools checked against the published specs, the request shapes of the October 2026 bulk endpoint, S/MIME and Search tools, the item and page totals the REST list tools report, the endpoint inventory's reduction to the latest snapshot and its stale flag, the AI Defense tools (request shapes, the HTTP 200 with errors case, not-found and deleted policies, the stale version hint, and the input checks that refuse before any call), read-only mode (the tool classification, the request guard refusing writes with no network call, and the default off), a registration check that lists all 360 tools over an in-memory transport and checks the descriptions for the measured warnings, the SOPHOS_FUSION_GRAPHQL_URL check, and the HTTP transport (Origin guard, bearer token, listen address, concurrent calls) run against an in-memory Sophos. Nothing in npm test reaches Sophos.

To exercise the Fusion tools against a live tenant, put credentials in .env (or export them) and run:

node scripts/fusion-smoke.mjs                  # read-only, tenant credential
node scripts/fusion-smoke.mjs <tenant-id>      # read-only, partner or organisation credential
node scripts/fusion-smoke.mjs --write          # plus the Fusion write tools on one new case
node scripts/fusion-smoke.mjs --write-classic  # plus the Classic case tools on one new case
node scripts/fusion-smoke.mjs --write-ai-defense  # plus the AI Defense policy writes on test policies
node scripts/fusion-smoke.mjs --all            # everything

It spawns the built server over stdio and calls the tools through an MCP client, so what runs is what a host runs. Read-only mode covers the reference data, the case list with filter and cursor variants, the newest case by short ID, its evidence, summary, comments and files, the detection search, a small Data Lake search (start, poll, one page of results), the not-found and legacy-ID refusals, the AI Defense reads (policies, previews, templates, activities, inventories, settings), and the Classic side: on a migrated tenant the migration refusal, otherwise the six Classic read tools. --write creates one case titled MCP smoke test <timestamp> (managed_by CUSTOMER), exercises comment add, edit and delete with the mention read-back, link create, update and delete, tag merge and replace, evidence add and remove_all, file upload, list and soft delete, the verdict clear on reopen, the one way door on new and the closed-case freeze, then closes it with a verdict and archives it (Fusion has no delete). --write-ai-defense creates policies named ZZ Claude MCP test <timestamp> ..., scoped to a made-up user so they enforce on nobody, then updates, enables, disables, clones and moves them (and reorders them when they are the only reorderable policies on the tenant), reads each write back and deletes them; it never writes the tenant settings. --write-classic creates, updates and deletes one Classic case; the Cases API requires an assignee and a detection that still exists, so set SMOKE_CLASSIC_ASSIGNEE (a tenant admin email) and, if needed, SMOKE_CLASSIC_DETECTION_ID (a recent detection ID). Every write is listed at the end. Existing cases are never modified.

Cutting a release: bump version in package.json, run npm run build:mcpb, commit package.json, package-lock.json, and manifest.json, tag, and attach the .mcpb from release/ to the GitHub release. Publish to npm as before so the Claude Code and self-hosted options pick up the same version.

Features

  • Universal caller support: Works with partner, organisation, and tenant-level API credentials
  • Multi-tenant: Partner/org callers can query across all managed tenants
  • Partner gap analysis: Single-call sales opportunity report across all managed tenants. Fetches health data in parallel and returns a compact ranked list of security gaps per customer
  • Auto region routing: Discovers tenant data regions via /whoami/v1 and routes requests to the correct regional API host
  • Token lifecycle: Automatic OAuth2 token refresh before expiry
  • Rate limit handling: Retry with backoff on 429 responses
  • Dual transport: stdio (Claude Desktop, Claude Code, and the .mcpb bundle) or streamable HTTP (self-hosted)
  • One-click install: Ships as a Claude Desktop extension (.mcpb) with credentials held in the OS secure store
  • Two API generations: the Sophos Central REST APIs and the Sophos Fusion GraphQL APIs on one credential, with sophos_fusion_* tools for the GraphQL side
  • Migration aware: the Classic case and detection tools refuse a tenant that has moved to Sophos Fusion and name the sophos_fusion_* tool to use instead; sophos_fusion_list_case_reference_data reports the tenant type
  • Full API coverage: 360 tools across endpoints, alerts, policies, firewalls, web filtering, licensing, audit events, email (including S/MIME), mobile, XDR, Data Lake search, cases, AI Defense, SIEM, and more

Screenshots

Querying tenants and drilling into endpoint status:

Tenant listing and endpoint staleness check

Tenant health audit with full category breakdown:

Tenant health overview

Tenant health detail and endpoints

Configuration

Applies to the Claude Code and self-hosted options. The Claude Desktop extension asks for the credentials in its install dialog and sets TRANSPORT=stdio itself.

Copy .env.example to .env and set your credentials:

SOPHOS_CLIENT_ID=your-client-id
SOPHOS_CLIENT_SECRET=your-client-secret
PORT=3100
TRANSPORT=http
VariableRequiredDefaultDescription
SOPHOS_CLIENT_IDYes-OAuth2 client ID
SOPHOS_CLIENT_SECRETYes-OAuth2 client secret
PORTNo3100HTTP server port
TRANSPORTNohttphttp for streamable HTTP, stdio for subprocess mode
MCP_HTTP_HOSTNo127.0.0.1Address the HTTP server binds to. 0.0.0.0 for every interface, or one interface's IP. See Using it from other machines
MCP_HTTP_TOKENNo-When set, every /mcp request needs Authorization: Bearer <token>. /health stays open. Set it whenever MCP_HTTP_HOST is not loopback
MCP_ALLOWED_ORIGINSNo-Comma separated browser origins (https://host:port) allowed besides localhost ones. Only browser based clients need this
CHARACTER_LIMITNo50000Maximum characters per tool response before truncation (minimum 10000)
SOPHOS_FUSION_GRAPHQL_URLNohttps://api.taegis.sophos.com/graphqlSophos Fusion GraphQL endpoint. Override when the Fusion branded hostnames ship. Must be https on a sophos.com host, since the bearer token goes to it; the server refuses to start otherwise
SOPHOS_CLASSIC_MIGRATION_CHECKNoonoff skips the migration check on the Classic case and detection tools (they then run for every tenant)
SOPHOS_READ_ONLYNoofftrue registers only the read tools and refuses any request that could write. See Read-only mode

Read-only mode

Set SOPHOS_READ_ONLY=true when the server must not change anything in the tenants it can reach. It then has two guards, and either one stops a write by itself:

  • It registers only the tools classified as reads in src/read-only.ts (176 of the 360). Every write tool is left out, and so are 11 tools annotated read-only. Ten of them create something in the tenant or run on its devices: the detection, Data Lake, and Live Discover query runs, the Fusion Data Lake searches and the endpoint inventory built on them, the firewall config export, and the quarantine attachment downloads. The eleventh, sophos_get_ba_pricing, is a POST that might store something. A tool added later stays out until someone classifies it.
  • Every outgoing request passes a guard that refuses any method but GET and HEAD. The exceptions are the OAuth token request, Fusion GraphQL documents with no mutation or subscription, and four REST searches: alerts, quarantine, post-delivery quarantine, and firewall threat feed indicators. A refused call returns an error before a token is fetched or anything is sent.

true, 1, on, and yes turn it on. A value the server does not recognize stops it at startup.

Tools

Two API generations

The server speaks to two Sophos API generations on one credential:

  • Sophos Central REST APIs (retained). Every tool without the fusion prefix. Regional hosts, discovered from /whoami/v1.
  • Sophos Fusion GraphQL APIs (new, 18/09/2026). The sophos_fusion_* tools. One endpoint, https://api.taegis.sophos.com/graphql, same token, same X-Tenant-ID header. Filters are written in Fusion Query Language (QL). Case types, statuses and verdicts are tenant reference data resolved to IDs at runtime, case severity is an integer (2 to 10), and assignees are Subject IDs, not email addresses. A GraphQL failure arrives as HTTP 200 with an errors array; the client treats that as an error, and a partial response (data plus errors) is returned with a warnings list rather than as a clean result.

Sophos is moving tenants to Fusion over the coming months (the upgrade centre announces each account's slot). This is a point in time change, not a fallback: once a tenant has moved, the Classic Cases and Detections REST APIs reference the pre-migration Sophos Central objects, so their answers are wrong rather than stale. The Classic tools therefore check which world a tenant is in before every call, using the tenant record's xdrOwnership from the Fusion GraphQL endpoint (sophos means not yet upgraded, securityOperations means upgraded; case types don't decide it, because a tenant not yet upgraded can list them too; a tenant Fusion does not hold at all gets a 503 "not found or not accessible", which reads as not moved; each answer is held for 15 minutes, and when xdrOwnership can't be read, an empty case type list still means not moved and anything else runs the Classic tool with a warning), and refuse a migrated tenant with a message naming the sophos_fusion_* tool to use. For a tenant that has not moved they stay correct and carry no deprecation label. Fusion holds a separate case set (a UUID plus a short ID such as CSE00001 or E-01167) and neither ID form resolves in the other API. Live Discover and XDR Query are unaffected. Data Lake search over GraphQL shipped on 12/10/2026 as the Search GraphQL API (sophos_fusion_create_search and friends); the SQL XDR Query API stays available, and sophos_run_xdr_query stays on it. The AI Defense Policy and Activity GraphQL APIs shipped on 15/10/2026 and run on the same endpoint (sophos_fusion_ai_defense_*). Fusion tools for events, threat timeline and live endpoint search are planned.

Two Fusion case writes, createCase and addEvidenceToCase, fail 74% of the time with not allowed on partnerPreferences from investigations-v2. It is an intermittent downstream fault, not authorisation: the identical call succeeds on retry, and updateCase does not carry the fault at all. Measured on a live tenant 22/09/2026: 111 faults in 150 calls, drifting from 60% to 85% across four samples six minutes apart. The client retries a call whose first error path is partnerPreferences, and only that, up to 20 times with a short backoff, which leaves about 1 call in 410 failing at the measured rate and about 1 in 26 at the worst rate observed; an error naming the operation in its path is a real input or permission error and surfaces at once.

Partner & Organisation (17 tools)

These tools are only available with partner or organisation-level credentials. They operate across all managed tenants.

ToolDescription
sophos_list_tenantsList all managed tenants with IDs, names, and data regions (offset and limit page through them)
sophos_create_tenantCreate a new managed tenant
sophos_get_managed_tenantGet managed tenant details
sophos_list_partner_rolesList partner-level roles
sophos_get_partner_roleGet partner role detail
sophos_create_partner_roleCreate a partner role
sophos_delete_partner_roleDelete a partner role
sophos_list_partner_permission_setsList available partner permission sets, filtered by type, product or access
sophos_list_partner_adminsList partner administrators
sophos_get_partner_adminGet partner admin detail
sophos_create_partner_adminCreate a partner admin
sophos_delete_partner_adminDelete a partner admin
sophos_list_partner_admin_role_assignmentsList admin role assignments
sophos_add_partner_admin_role_assignmentAdd role assignment to admin
sophos_delete_partner_admin_role_assignmentRemove role assignment
sophos_get_billing_usageGet billing usage for a specific month
sophos_get_billing_summaryBilling usage for a month, totalled per customer

Alerts (4 tools)

ToolDescription
sophos_list_alertsList alerts with severity/category/product/date filters
sophos_get_alertGet full alert detail with allowed actions
sophos_acknowledge_alertMark an alert as reviewed
sophos_search_alertsAdvanced search with structured filters and sorting

Endpoints (21 tools)

ToolDescription
sophos_list_endpointsList endpoints with health/OS/hostname/isolation/last-seen filters (last_seen_before: "-P30D" with limit: 1 counts stale devices)
sophos_get_endpointGet full endpoint detail
sophos_scan_endpointTrigger an on-demand scan
sophos_isolate_endpointNetwork-isolate a compromised endpoint
sophos_release_endpointRelease an endpoint from isolation
sophos_delete_endpointDelete a specific endpoint
sophos_bulk_delete_endpointsBulk delete multiple endpoints
sophos_get_tamper_protectionGet tamper protection status and password
sophos_toggle_tamper_protectionEnable/disable tamper protection
sophos_get_adaptive_attack_protectionGet adaptive attack protection status
sophos_toggle_adaptive_attack_protectionEnable/disable adaptive attack protection
sophos_trigger_update_checkTrigger a software update check
sophos_request_forensic_logsRequest forensic log upload
sophos_get_forensic_log_statusGet forensic log request status
sophos_request_memory_dumpRequest memory dump from endpoint
sophos_get_memory_dump_statusGet memory dump request status
sophos_bulk_isolate_endpointsBulk isolate/release multiple endpoints
sophos_get_endpoint_isolation_statusGet endpoint isolation status
sophos_bulk_scan_endpointsScan up to 500 endpoints in one request
sophos_bulk_reset_endpoint_healthReset health to green and clear all alerts on up to 500 Windows and Linux endpoints
sophos_bulk_update_tamper_protectionTurn tamper protection on or off, or generate a new password, on up to 200 endpoints

Endpoint Settings (26 tools)

ToolDescription
sophos_list_installer_downloadsList available installer packages
sophos_list_blocked_addressesList blocked network addresses
sophos_add_blocked_addressAdd a blocked network address
sophos_delete_blocked_addressDelete a blocked address
sophos_list_local_sitesList web control local site definitions
sophos_add_local_siteAdd a local site for web control
sophos_update_local_siteUpdate a local site
sophos_delete_local_siteDelete a local site
sophos_list_web_control_categoriesList web control categories
sophos_get_tls_decryption_settingsGet TLS decryption settings
sophos_update_tls_decryption_settingsUpdate TLS decryption settings
sophos_get_global_tamper_protectionGet global tamper protection settings
sophos_list_detected_exploitsList detected exploits
sophos_get_detected_exploitGet exploit detail
sophos_list_exploit_mitigation_categoriesList exploit mitigation categories
sophos_get_exploit_mitigation_categoryGet category detail
sophos_list_exploit_mitigation_appsList exploit mitigation applications
sophos_get_exploit_mitigation_appGet application detail
sophos_add_exploit_mitigation_appAdd application to exploit mitigation
sophos_update_exploit_mitigation_appUpdate exploit mitigation application
sophos_list_ips_exclusionsList IPS exclusions
sophos_add_ips_exclusionAdd IPS exclusion
sophos_delete_ips_exclusionDelete IPS exclusion
sophos_list_isolation_exclusionsList isolation exclusions
sophos_add_isolation_exclusionAdd isolation exclusion
sophos_delete_isolation_exclusionDelete isolation exclusion

Endpoint Migrations (6 tools)

ToolDescription
sophos_list_migrationsList endpoint migration jobs
sophos_get_migrationGet migration job details
sophos_create_migrationCreate a new migration job
sophos_list_migration_endpointsList endpoints in a migration
sophos_list_recommended_packagesList recommended software packages
sophos_list_static_packagesList static software packages

Policies (7 tools)

ToolDescription
sophos_list_policiesList endpoint policies with optional type filter
sophos_get_policyGet full policy detail including all settings and assignments
sophos_create_policyCreate a new endpoint policy, optionally assigned
sophos_clone_policyClone an existing policy under a new name, optionally with a new assignment
sophos_update_policyUpdate policy name, enabled state, priority, settings, or the whole assignment
sophos_set_policy_assignmentsReplace, add or remove a policy's users, user groups, endpoints or endpoint groups
sophos_delete_policyDelete a policy

Assignments take plain ID arrays. A policy applies either to users and user groups (a user policy) or to endpoints and endpoint groups (a device policy), never both; the kind follows which keys you send. Server policies take only server endpoints and groups, and computer policies only computer ones: the IDs are looked up first, because Sophos accepts a server on a computer policy without ever applying it. Endpoint groups are always sent with an endpoints key, because Sophos answers 500 to endpoint groups on their own. Every assignment write is read back by ID and the result shows what Sophos stored. A new policy can take up to about 25 seconds to show in sophos_list_policies; sophos_get_policy is current at once.

Web profiles: setting endpoint.web-control.web-profile-id also sends filter-by-web-profile.enabled true, without which Sophos keeps the old value, and turns on web-profile.enabled unless you set it. A new web control policy gets web-profile.enabled set explicitly (true with a profile, false for legacy settings) instead of the API's default of true. The settings are read back after the write. A profile is linked from the policy side; the profile tools do not send consumers, which Sophos ignores.

Endpoint Groups (7 tools)

ToolDescription
sophos_list_endpoint_groupsList endpoint groups
sophos_get_endpoint_groupGet group detail with optional member list
sophos_create_endpoint_groupCreate a new endpoint group
sophos_update_endpoint_groupRename or update a group
sophos_delete_endpoint_groupDelete an endpoint group
sophos_add_endpoints_to_groupAdd endpoints to a group
sophos_remove_endpoint_from_groupRemove an endpoint from a group

Exclusions & Allow/Block Lists (9 tools)

ToolDescription
sophos_list_exclusionsList global scanning exclusions
sophos_add_exclusionAdd a scanning exclusion
sophos_delete_exclusionDelete a scanning exclusion
sophos_list_allowed_itemsList globally allowed items
sophos_add_allowed_itemAllow an item by SHA256, path, or certificate
sophos_delete_allowed_itemRemove an allowed item
sophos_list_blocked_itemsList globally blocked items
sophos_add_blocked_itemBlock an item by SHA256, path, or certificate
sophos_delete_blocked_itemRemove a blocked item

Account Health (3 tools)

ToolDescription
sophos_get_account_healthGet tenant health check scores
sophos_list_account_healthBulk health scores for all tenants (partner/org only)
sophos_partner_gap_analysisGap analysis across all tenants (partner/org only)

Directory Users & Groups (16 tools)

ToolDescription
sophos_list_usersList directory users
sophos_get_userGet user detail
sophos_create_userCreate a directory user
sophos_update_userUpdate a user
sophos_delete_userDelete a user
sophos_list_user_groupsList directory user groups
sophos_get_user_groupGet user group detail
sophos_create_user_groupCreate a user group
sophos_update_user_groupUpdate a user group
sophos_delete_user_groupDelete a user group
sophos_list_user_group_membersList members of a user group
sophos_add_users_to_groupAdd users to a group
sophos_remove_user_from_groupRemove a user from a group
sophos_list_user_group_policiesList policies assigned to a user group
sophos_list_adminsList admin accounts and roles
sophos_list_rolesList available admin roles

Admin Management (12 tools)

ToolDescription
sophos_get_adminGet admin detail
sophos_create_adminCreate an admin account
sophos_delete_adminDelete an admin account
sophos_list_admin_role_assignmentsList admin's role assignments
sophos_add_admin_role_assignmentAdd role assignment to admin
sophos_delete_admin_role_assignmentRemove role assignment
sophos_get_admin_role_assignmentGet specific role assignment
sophos_create_roleCreate an admin role
sophos_get_roleGet role detail
sophos_update_roleUpdate a role
sophos_delete_roleDelete a role
sophos_list_permission_setsList available permission sets, filtered by type, product or access

Cases (9 tools)

Sophos Central Cases REST API. Correct for a tenant that has not moved to Fusion, and the only way to read its legacy cases (IDs like 1-598868). Refused for a tenant that has moved, with a pointer to the sophos_fusion_* tool to use (see "Two API generations").

ToolDescription
sophos_list_casesList investigation cases
sophos_get_caseGet full case details
sophos_create_caseCreate a new investigation case (the API requires an assignee and a detection that still exists)
sophos_update_caseUpdate case status, severity, assignee
sophos_delete_caseDelete a case
sophos_list_case_detectionsList detections linked to a case
sophos_get_case_detectionGet specific detection detail
sophos_list_case_impacted_entitiesList impacted entities for a case
sophos_get_case_mitre_summaryGet MITRE ATT&CK breakdown for a case

Fusion Cases (21 tools)

Sophos Fusion Cases GraphQL API v2. Case IDs are UUIDs; short IDs (for example CSE00001 or E-01167) are accepted and resolved. Severity is 2 informational, 4 low, 6 medium, 8 high, 10 critical. Detection severity inside the case summary is a 0 to 1 float, a different scale from both the case severity and the Classic REST 0 to 10 detection severity; none of them convert. There is no delete: close the case (with a verdict when its type needs one), then archive it.

managed_by is required on create and split, and must be CUSTOMER (self managed). Sophos MDR cases (PROVIDER) can't be created through the API by design, so the tools refuse PROVIDER before any call; raise an MDR service request in Sophos Fusion instead. The same goes for a case type the tenant pins to PROVIDER, such as health_check. managed_by cannot be changed afterwards, and a case created without it is unclaimed, so the tool never omits it. Detection and event IDs on the evidence tools are six section resource names (alert://priv:event-filter:123456:1789526908712:<uuid>), which sophos_fusion_search_detections returns. Evidence writes are queued jobs that land category by category (an add showed after about 5 seconds, a three category removal took about 25 seconds), so read the evidence back with a poll; adding a detection also attaches its linked asset and events, and removing it does not retract them (remove_all does). Comment @mentions (@authorized_contacts, @customer, @sophos) fire wherever they appear, including in prose, and an unrecognised token is dropped silently, so the comment tools read the stored mentions back. Tags are merged on update unless replace_tags is set. A file sent as content_base64 travels inside the MCP message, which is capped at 10 MiB on stdio and HTTP, so it can be up to about 7.5 MiB. A larger message gets a JSON-RPC 413 over HTTP. Over stdio the MCP SDK closes the connection on it, and the server logs one line on stderr and exits. file_path reads the file on the server host and takes up to 50 MiB. File deletion is soft. Split and merge are irreversible and need a confirmation argument.

ToolDescription
sophos_fusion_list_casesList cases with QL filters (type, status, verdict resolved to IDs), offset or cursor pagination
sophos_fusion_get_caseFull case detail including key findings, verdict, links and processing status
sophos_fusion_get_case_evidenceDetection, event, asset and saved-search source IDs attached to a case
sophos_fusion_get_case_summaryCase plus its detections resolved in one batched call and a MITRE ATT&CK roll-up
sophos_fusion_list_case_reference_dataThe tenant type (tenant_type: upgraded, not_upgraded or unknown, from xdrOwnership) and the tenant's case types, primary statuses and verdicts (15 minute cache)
sophos_fusion_create_caseCreate a self-managed case: required managed_by (CUSTOMER; MDR cases need an MDR service request), type and status by name or ID, integer severity, Markdown key findings, genesis evidence
sophos_fusion_update_caseUpdate fields, merge or replace tags, close with a verdict, reopen (verdict cleared), archive or unarchive; refuses frozen fields on a closed case rather than reopening it
sophos_fusion_split_caseMove named evidence into a new self-managed case (irreversible, confirm_split)
sophos_fusion_merge_casesMerge source cases into a target and close them (asynchronous, irreversible, confirm_merge)
sophos_fusion_list_case_commentsList comments (raw author IDs, resolved mentions, read state)
sophos_fusion_add_case_commentAdd a comment and report which @mentions actually fired
sophos_fusion_update_case_commentEdit a comment or mark it read
sophos_fusion_delete_case_commentDelete a comment
sophos_fusion_add_case_evidenceAttach detections, events, hosts or saved searches (asynchronous, RNs checked)
sophos_fusion_remove_case_evidenceDetach evidence by source ID, or everything with remove_all (asynchronous)
sophos_fusion_list_case_filesList a case's files (deleted hidden by default, download URLs on request)
sophos_fusion_upload_case_fileAttach a file: register, PUT to the presigned URL, poll to UPLOADED
sophos_fusion_delete_case_fileSoft delete a file
sophos_fusion_create_case_linkAttach an external link (ServiceNow ticket, report)
sophos_fusion_update_case_linkChange a link's URL, title, type or reference
sophos_fusion_delete_case_linkRemove a link

Fusion Detections (1 tool)

Sophos Fusion Detections GraphQL API v2. One QL search replaces the Classic run, poll, results triple. Source keyword alert; working example from alert severity >= 0.1 EARLIEST=-90d. Severity is a 0 to 1 float.

ToolDescription
sophos_fusion_search_detectionsSearch detections with QL; returns the resource-name IDs the case evidence tools take

Fusion Search (4 tools)

Sophos Fusion Search GraphQL API v1 (12/10/2026): Data Lake searches in QL, the counterpart of the SQL XDR Query tools. Asynchronous: start a search, poll it by its URN until COMPLETE, check outcome.success (ALL, PARTIAL or NONE), then page the rows by cursor (up to 1000 per page). Working example from process earliest=-1h | fields host_id, image_path. Project with | fields: an unprojected search returns over 800 fields, so field metadata is off unless asked for. Results expire (30 days in testing). sophos_fusion_get_or_create_search reuses a matching search only when the query has absolute time bounds; a relative one (earliest=-1h) starts a new search each call. A search returns at most 10,000 rows, newest first, and its total then reads 10,000 however many rows matched (an aggregate counted 69,323 behind one), so a total of 10,000 means rows may be missing: count with | aggregate count, and narrow the query. A results page can take longer than 30 seconds (37 seconds measured), so the server waits up to 120 seconds for one.

Endpoint inventory: softwareinfo (installed applications), patchstate (installed OS patches, one row per KB) and inventoryinfo (device record). One snapshot per device per day, offline devices included, so check last seen with sophos_list_endpoints, or use sophos_fusion_endpoint_inventory below, which does that for you. Example from softwareinfo where product.name contains 'Chrome' earliest=-1d | fields host_id, device.hostname, product.name, product.version. inventoryinfo also holds device discovery events (metadata.event_code device_discovery, normalizer sophos-xdr-telemetry-normalizer): a device the endpoint saw on its network, filed under the reporting endpoint's host_id, with the seen device's IP and MAC and no hostname or OS. Drop them with where normalizer != 'sophos-xdr-telemetry-normalizer', as sophos_fusion_endpoint_inventory does.

ToolDescription
sophos_fusion_create_searchStart a QL search; returns its search URN and partitions
sophos_fusion_get_or_create_searchReturn a matching running or complete search, or start one
sophos_fusion_get_searchStatus, outcome, partition diagnostics and expiry of a search
sophos_fusion_get_search_resultsOne page of rows from a search or partition, with totals and the next cursor

Fusion Endpoint Inventory (1 tool)

Installed applications (softwareinfo), installed OS patches (patchstate) or the device record (inventoryinfo) from the Data Lake, reduced to each device's latest snapshot and flagged by when the device was last seen. The Data Lake keeps writing a daily snapshot for about 30 days after a device goes offline, so a snapshot dated today can describe a device that has been offline for weeks. Each device is matched on host_id (its endpoint ID) to lastSeenAt from the Endpoint API and marked stale (last seen more than stale_after_days ago, default 3), fresh, or unmatched (deleted, re-registered, or a third-party sensor). It shows what is installed, not what is missing: there is no CVE or missing-patch field.

Filter by endpoint_id, hostname, software_name (softwareinfo) or kb (patchstate), and return only stale, fresh or unmatched devices with status. The summary counts every device. For example, { schema: "softwareinfo", software_name: "Chrome" } lists each device's Chrome versions with its last seen. Calls with the same arguments in the same UTC hour reuse the same searches, so paging with offset is quick.

ToolDescription
sophos_fusion_endpoint_inventoryLatest inventory snapshot per device, with stale, fresh and unmatched counts

AI Defense Policies (18 tools)

Sophos AI Defense Policy GraphQL API v1 (15/10/2026), on the Fusion GraphQL endpoint with the same credential. Policies run in priority order (rank 1 first) and rules run top to bottom within a policy; the first matching rule wins. One base policy (kind TENANT_BASE) sits last as the catch-all. Rules, sensors and the base rule keep the API's own field names, so you can read a policy with sophos_fusion_ai_defense_get_policy, edit it and send it back. A rule targets the app catalog with conditions such as { dimension: "risk_level", operator: "IN", values: ["critical"] }. A misspelled dimension matches nothing and raises no error, so preview a rule before you save it.

Measured on live tenants (07/11/2026): at least one sensor must be enabled. An empty Endpoint scope means everyone, which only the base policy may use, so enabling a policy with one is refused. Tag values must be strings. A new policy or clone lands at rank 1, disabled unless created enabled. Every write raises the policy's version, enable and disable included, and an update that sends a stale version is refused. On update, rules replaces the whole list and tags the whole map, but an empty tags map or null is ignored (08/11/2026), so tags can't be cleared through the API and the tool refuses an empty map. sophos_fusion_ai_defense_reorder_policies needs every reorderable policy ID. Deletion can't be undone. The base policy can't be disabled, deleted, cloned or moved, so creating one needs confirm_base_policy.

A policy write Sophos answers with no result (an enablePolicy once answered HTTP 200 with an empty body), or that fails with a 5xx, a timeout or a dropped connection, is not sent again: the tool reads the policy back and reports status: "unclear", took_effect (true, false, or null when the read can't tell), what it found and the state it read. The result is an error unless the change reads back in place. Create and clone have no ID to read, so their read-back looks for a policy with the expected name created since the request.

ToolDescription
sophos_fusion_ai_defense_list_policiesPolicies in priority order with rules, sensors and scope; filter by state, origin, kind or name
sophos_fusion_ai_defense_get_policyOne policy, optionally with the applications each rule matches
sophos_fusion_ai_defense_get_app_sanctioningApproved, blocked, warned or not covered, per app and per enforcement target
sophos_fusion_ai_defense_preview_rule_targetThe catalog apps one rule matches (up to 500) and the domains and apps it enforces
sophos_fusion_ai_defense_preview_rule_targetsAn ordered rule list, with what each rule acts on after the rules above it
sophos_fusion_ai_defense_preview_impactBlocked, warned and allowed counts for a rule list against the catalog
sophos_fusion_ai_defense_list_templatesThe starter templates Sophos ships, optionally with their impact
sophos_fusion_ai_defense_get_templateOne starter template with its impact
sophos_fusion_ai_defense_list_mechanismsThe enforcement mechanisms (web control and app control)
sophos_fusion_ai_defense_get_policy_activityWhich enabled policies matched activity in a window, and which blocked the most
sophos_fusion_ai_defense_create_policyCreate a policy, optionally from a starter template
sophos_fusion_ai_defense_update_policyChange name, description, rules, base rule, sensors or tags (needs the current version)
sophos_fusion_ai_defense_delete_policyDelete a policy (no restore)
sophos_fusion_ai_defense_enable_policyEnable a policy and distribute it to its sensors
sophos_fusion_ai_defense_disable_policyDisable a policy and remove its enforcement
sophos_fusion_ai_defense_move_policyMove one policy to the top or straight after another
sophos_fusion_ai_defense_reorder_policiesSet the whole priority order
sophos_fusion_ai_defense_clone_policyCopy a policy into a new disabled one

AI Defense Activity (8 tools)

Sophos AI Defense Activity GraphQL API v1 (15/10/2026): the AI activity AI Defense observes, the app and user inventory built from it, and the tenant's AI Defense settings. The window defaults to since 00:00 UTC today. Set a relative time_range (such as SINCE_BEGINNING_OF_MONTH or LAST_MONTH) or start_time and end_time, not both. Activities page by cursor and the inventories by offset, up to 100 a page. A year of data took up to 22 seconds on a busy tenant, so the server waits up to 90 seconds for these reads.

The live API differs from the published reference in two places (07/11/2026). It does not serve the per-app training, compliance and category fields the reference lists on the app inventory, so the tool leaves them out; filter on them instead, or read them on an activity. The activities list returns additionalData as null where the reference says empty, and that fails the whole page, so source IP addresses come only from sophos_fusion_ai_defense_get_activity.

sophos_fusion_ai_defense_update_settings replaces the onboarding selections as a whole, and an update with no selections clears them as well, so the tool requires them. Read the settings first and send back what you keep. An update with no clear answer is read back the same way as a policy write: the settings must show the status and selections sent, and a base policy must exist when one was sent.

ToolDescription
sophos_fusion_ai_defense_list_activitiesAI activity with action, policy, risk, user, app, model and device; filter by any of them
sophos_fusion_ai_defense_get_activityOne activity with its source IP addresses
sophos_fusion_ai_defense_list_app_inventoryAI apps seen, with risk, usage, users, last seen and unsanctioned use
sophos_fusion_ai_defense_list_user_inventoryUsers seen, with worst risk, apps used, violations and top app
sophos_fusion_ai_defense_list_user_appsThe apps one user used
sophos_fusion_ai_defense_inventory_summaryApp and user counts by risk level
sophos_fusion_ai_defense_get_settingsOnboarding status and selections, and the AI Defense license state
sophos_fusion_ai_defense_update_settingsSet the onboarding status and selections

Detections (6 tools)

Sophos Central Detections REST API, async: start a query, poll for completion, then fetch results. Refused for a tenant that has moved to Fusion, with a pointer to sophos_fusion_search_detections.

ToolDescription
sophos_run_detections_queryStart async query for individual detections
sophos_get_detections_runPoll detection query status
sophos_get_detections_resultsFetch completed detection query results
sophos_run_detection_groups_queryStart async query for grouped detections
sophos_get_detection_groups_runPoll detection groups query status
sophos_get_detection_groups_resultsFetch completed detection groups results

SIEM (2 tools)

ToolDescription
sophos_list_siem_eventsStream security events (cursor-based, last 24h default)
sophos_list_siem_alertsStream security alerts (cursor-based, last 24h default)

XDR Data Lake (9 tools)

Async API: submit SQL queries against historical telemetry.

ToolDescription
sophos_run_xdr_queryStart async SQL query against the Data Lake
sophos_get_xdr_query_runPoll XDR query run status
sophos_get_xdr_query_resultsFetch completed XDR query results
sophos_list_xdr_query_runsList XDR query runs
sophos_cancel_xdr_query_runCancel a running XDR query
sophos_list_xdr_query_categoriesList XDR query categories
sophos_get_xdr_query_categoryGet XDR query category detail
sophos_list_xdr_queriesList saved XDR queries
sophos_get_xdr_queryGet saved XDR query detail

Live Discover (4 tools)

Async API: run OSquery SQL on live endpoints. Rate limited to 10 runs/minute, 500/day.

ToolDescription
sophos_list_live_discover_queriesList available saved OSquery queries
sophos_run_live_discover_queryRun a saved or ad hoc query on live endpoints
sophos_get_live_discover_runPoll Live Discover run status
sophos_get_live_discover_resultsFetch Live Discover results

Firewall (21 tools)

ToolDescription
sophos_list_firewallsList managed firewalls
sophos_update_firewallUpdate firewall properties
sophos_delete_firewallDelete a firewall
sophos_firewall_actionPerform an action (approveManagement, the only documented action)
sophos_check_firmware_upgradeCheck firmware upgrades for a set of firewalls
sophos_start_firmware_upgradeStart or schedule firmware upgrades
sophos_cancel_firmware_upgradeCancel scheduled firmware upgrades
sophos_list_firewall_groupsList firewall groups
sophos_get_firewall_groupGet firewall group detail
sophos_create_firewall_groupCreate a firewall group
sophos_update_firewall_groupUpdate a firewall group
sophos_delete_firewall_groupDelete a firewall group
sophos_get_firewall_sync_statusGet sync status of the firewalls in a group
sophos_get_threat_feed_settingsGet a firewall's MDR threat feed
sophos_update_threat_feed_settingsUpdate a firewall's MDR threat feed settings
sophos_search_threat_feed_indicatorsSearch a firewall's MDR threat feed indicators
sophos_get_firewall_transactionPoll a per-firewall transaction (threat feed ops)
sophos_export_firewall_configStart a config export (backup) of a firewall
sophos_get_firewall_import_export_transactionPoll an export/import transaction
sophos_download_firewall_backupDownload a finished backup archive to a local file
sophos_import_firewall_configUpload and import a config archive into firewalls

Config import/export requires the firewall to run SFOS v22 MR2 or later, be managed by Sophos Central, and hold an active license. On an HA pair, target the primary node (the auxiliary rejects config operations). The exported archive can appear in storage a couple of minutes after the transaction reports finished; sophos_download_firewall_backup retries automatically for about 3 minutes to cover that window.

Email Protection (29 tools)

ToolDescription
sophos_search_quarantineSearch quarantined emails
sophos_preview_quarantine_messagePreview quarantined email content
sophos_get_quarantine_urlsGet URLs in quarantined email
sophos_get_quarantine_attachmentsGet quarantined email attachment info
sophos_release_quarantine_messageRelease quarantined email to recipient
sophos_delete_quarantine_messagePermanently delete quarantined email
sophos_strip_quarantine_attachmentsStrip attachments and release
sophos_reattach_quarantine_attachmentsReattach stripped attachments
sophos_download_quarantine_attachmentDownload specific attachment
sophos_search_post_delivery_quarantineSearch post-delivery quarantine
sophos_preview_post_delivery_messagePreview post-delivery quarantined message
sophos_get_post_delivery_attachmentsGet post-delivery attachment info
sophos_release_post_delivery_messageRelease post-delivery message
sophos_delete_post_delivery_messageDelete post-delivery message
sophos_download_post_delivery_attachmentDownload post-delivery attachment
sophos_clawback_messageClawback/recall a delivered message
sophos_get_clawback_statusGet clawback action status
sophos_list_mailboxesList mailboxes
sophos_create_mailboxCreate a mailbox
sophos_bulk_create_mailboxesBulk create mailboxes
sophos_get_mailboxGet mailbox detail
sophos_update_mailboxUpdate a mailbox
sophos_delete_mailboxDelete a mailbox
sophos_list_mailbox_aliasesList mailbox aliases
sophos_add_mailbox_aliasAdd a mailbox alias
sophos_delete_mailbox_aliasDelete a mailbox alias
sophos_list_mailbox_delegatesList mailbox delegates
sophos_add_mailbox_delegateAdd a mailbox delegate
sophos_delete_mailbox_delegateRemove a mailbox delegate

Email S/MIME (21 tools)

Sophos Email API S/MIME operations (01/10/2026). Certificates are identified by SHA-256 fingerprint; private keys are never returned, and downloads give the PEM public certificate. Usual order: create or upload the internal CA (which also creates a disabled configuration), turn S/MIME on, then add internal user certificates (the address must be a tenant mailbox), external user certificates and trusted CAs. The reset deletes every certificate and private key and needs the configuration's deleteToken. Errors carry Sophos's reason and code, for example SMIME_CUSTOMER_CA_NOT_PRESENT.

ToolDescription
sophos_get_smime_configS/MIME on or off, certificate extraction, expiry notification addresses, deleteToken
sophos_create_smime_configCreate the configuration (once per tenant)
sophos_update_smime_configTurn S/MIME on or off, change extraction or notification addresses
sophos_reset_smime_configDelete every certificate and private key and turn S/MIME off (irreversible)
sophos_get_smime_internal_caInternal CA details
sophos_create_smime_internal_caHave Sophos generate the internal CA
sophos_upload_smime_internal_caUpload your own CA as a PKCS#12 bundle
sophos_download_smime_internal_caInternal CA certificate as PEM
sophos_list_smime_internal_usersList or search internal users and their certificates
sophos_create_smime_internal_user_certGenerate a certificate for a mailbox
sophos_upload_smime_internal_user_certUpload a mailbox's certificate as a PKCS#12 bundle
sophos_download_smime_internal_user_certInternal user certificate (with chain) as PEM
sophos_delete_smime_internal_user_certDelete one internal user certificate
sophos_list_smime_external_usersList or search external users and their certificates
sophos_upload_smime_external_user_certUpload an external user's public certificate
sophos_download_smime_external_user_certExternal user certificate as PEM
sophos_delete_smime_external_user_certDelete one external user certificate
sophos_list_smime_external_casList or search trusted external CAs
sophos_upload_smime_external_caTrust a CA certificate
sophos_download_smime_external_caTrusted CA certificate as PEM
sophos_delete_smime_external_caStop trusting a CA certificate

Mobile Device Management (32 tools)

ToolDescription
sophos_get_mobile_auto_enrollmentGet auto-enrollment settings
sophos_update_mobile_auto_enrollmentUpdate auto-enrollment settings (keeps what you leave out)
sophos_list_mobile_osList supported mobile OS platforms
sophos_list_mobile_devicesList mobile devices with filters
sophos_get_mobile_deviceGet device detail
sophos_create_mobile_deviceCreate a mobile device
sophos_update_mobile_deviceUpdate device properties (keeps what you leave out)
sophos_delete_mobile_deviceDelete/unenroll a device
sophos_list_mobile_device_propertiesGet device properties
sophos_get_mobile_device_complianceGet compliance status
sophos_get_mobile_device_scansGet scan results
sophos_get_mobile_device_policiesGet assigned policies
sophos_get_mobile_device_appsGet installed apps
sophos_get_mobile_device_locationGet device location
sophos_list_mobile_device_groupsList device groups
sophos_get_mobile_device_groupGet device group detail
sophos_create_mobile_device_groupCreate a device group
sophos_update_mobile_device_groupUpdate a device group (keeps what you leave out)
sophos_delete_mobile_device_groupDelete a device group
sophos_sync_mobile_deviceSync a device
sophos_request_mobile_device_logsRequest device logs
sophos_scan_mobile_deviceTrigger device scan
sophos_unenroll_mobile_deviceUnenroll a device
sophos_send_mobile_device_messageSend message to device
sophos_locate_mobile_deviceRequest device location update
sophos_lock_mobile_deviceLock device remotely
sophos_wipe_mobile_deviceWipe device remotely
sophos_list_mobile_app_groupsList app groups
sophos_get_mobile_app_groupGet app group detail
sophos_create_mobile_app_groupCreate an app group
sophos_update_mobile_app_groupRename an app group or replace its app list
sophos_delete_mobile_app_groupDelete an app group

DNS Protection (5 tools)

ToolDescription
sophos_list_dns_locationsList DNS protection locations
sophos_get_dns_locationGet location detail
sophos_create_dns_locationCreate a DNS location
sophos_update_dns_locationUpdate a DNS location
sophos_delete_dns_locationDelete a DNS location

Cloud Security (6 tools)

ToolDescription
sophos_list_cloud_security_profilesList cloud security profiles
sophos_list_cloud_security_default_contentsList the content versions a new profile can use
sophos_get_cloud_security_profileGet profile detail
sophos_create_cloud_security_profileCreate a runtime detection profile or a new version of one
sophos_update_cloud_security_profileRename a profile
sophos_delete_cloud_security_profileDelete a profile

Wi-Fi (3 tools)

ToolDescription
sophos_list_wifi_mac_filtersList Wi-Fi MAC filtering entries
sophos_add_wifi_mac_filterAdd a MAC filter entry
sophos_delete_wifi_mac_filterDelete a MAC filter entry

User Activity (2 tools)

ToolDescription
sophos_create_attestationCreate a user attestation/sign-off
sophos_get_attestationGet attestation detail

Audit Events (1 tool)

ToolDescription
sophos_list_audit_eventsList Sophos Central audit events (who did what, 90-day window)

Licensing (2 tools)

ToolDescription
sophos_list_licensesList a tenant's product licenses, usage, and entitlements
sophos_list_firewall_licensesList firewall license details (tenant or partner-wide)

Web Filtering (16 tools)

ToolDescription
sophos_list_web_filtering_profilesList web filtering profiles
sophos_get_web_filtering_profileGet a web filtering profile
sophos_create_web_filtering_profileCreate a web filtering profile
sophos_update_web_filtering_profileUpdate a web filtering profile (keeps what you leave out)
sophos_delete_web_filtering_profileDelete a web filtering profile
sophos_clone_web_filtering_profileClone a web filtering profile
sophos_get_web_filtering_metadataGet categories, groups, and presets
sophos_list_site_listsList site lists
sophos_get_site_listGet a site list
sophos_create_site_listCreate a site list
sophos_update_site_listUpdate a site list (keeps what you leave out)
sophos_delete_site_listDelete a site list
sophos_clone_site_listClone a site list
sophos_list_sitesList the sites in a site list
sophos_add_siteAdd a site to a site list
sophos_delete_siteDelete a site from a site list

Switch Management (3 tools)

ToolDescription
sophos_get_switch_mac_filteringGet global switch MAC filtering settings
sophos_update_switch_mac_filteringReplace the switch MAC filtering address list
sophos_list_switch_tasksList switch configuration tasks

Accounts / Access Tokens (4 tools)

ToolDescription
sophos_list_access_tokensList repository access tokens
sophos_create_access_tokenCreate a repository access token (Sophos Linux Sensor)
sophos_update_access_tokenUpdate a token's label or expiry
sophos_revoke_access_tokenRevoke a token

Business Automation (4 tools)

Distributor-scoped: requires distributor-entitled credentials and an X-Distributor-ID.

ToolDescription
sophos_list_ba_quotesList distributor quotes (new, amendment, renewal)
sophos_get_ba_quoteGet a quote by proposal number
sophos_get_ba_partner_levelsPartner program levels for a billing sub-region
sophos_get_ba_pricingPrice a set of product lines for a reseller

Tenant context

For partner/org callers, every tenant-scoped tool requires a tenant_id parameter. Use sophos_list_tenants first to discover available tenant IDs.

For tenant-level callers, tenant_id is optional and defaults to the authenticated tenant.

Architecture

Authenticate (OAuth2 client credentials)
    |
    v
/whoami/v1 -> Discover identity type (partner | organization | tenant)
    |
    v
If partner/org: enumerate tenants, cache {tenantId -> apiHost}
    |
    v
Register tools based on identity type
    |
    v
Per tool call: resolve tenant -> regional API host -> execute request
Per sophos_fusion_* call: resolve tenant -> POST api.taegis.sophos.com/graphql -> inspect data and errors

Key decisions

  • Dynamic tool registration: Only tools valid for the caller type are exposed to the LLM
  • Explicit tenant context: Partner/org callers must specify tenant_id to prevent cross-tenant accidents
  • Stateless HTTP: Each MCP request creates a fresh server and transport instance (no session affinity)
  • Localhost by default: HTTP server binds to 127.0.0.1 unless MCP_HTTP_HOST says otherwise

Project Structure

src/
├── index.ts                     # Entry point, server bootstrap
├── http-guard.ts                # HTTP transport: refuse foreign browser Origins, optional bearer token
├── config/config.ts             # Environment config
├── read-only.ts                 # Read-only mode: the read tool list and the registration filter
├── auth/token-manager.ts        # OAuth2 token lifecycle
├── client/
│   ├── sophos-client.ts         # REST client with region routing (Sophos Central)
│   ├── fusion-client.ts         # GraphQL client (Sophos Fusion), 200-with-errors handling, path-keyed retry
│   ├── read-only-guard.ts       # Read-only mode: every request passes here; writes are refused before they are sent
│   └── tenant-resolver.ts       # Whoami + tenant cache
├── fusion/
│   ├── queries/cases.ts         # Cases v2 GraphQL documents
│   ├── queries/detections.ts    # Detections v2 documents: the case summary lookup and the QL search
│   ├── queries/search.ts        # Search v1 documents: create, get-or-create, status, results
│   ├── queries/ai-defense-policy.ts    # AI Defense Policy v1 documents
│   ├── queries/ai-defense-activity.ts  # AI Defense Activity v1 documents
│   ├── ai-defense.ts            # AI Defense input schemas, time window, error translation
│   ├── inventory.ts             # Inventory QL, latest snapshot per device, stale flag
│   ├── case-reference-data.ts   # Per-tenant cache of case types, statuses, verdicts
│   ├── cases-ql.ts              # QL builder for the cases search
│   ├── format.ts                # Severity scales, timestamps, ID checks, mentions, tags, detection rows
│   ├── migration.ts             # Has this tenant moved to Fusion? Gates the Classic case and detection tools
│   └── types.ts                 # Fusion response types
├── tools/
│   ├── helpers.ts               # Shared response formatting
│   ├── fusion-cases.ts          # Sophos Fusion cases (GraphQL)
│   ├── fusion-detections.ts     # Sophos Fusion detection search (GraphQL)
│   ├── fusion-search.ts         # Sophos Fusion Data Lake search (GraphQL)
│   ├── fusion-inventory.ts      # Sophos Fusion endpoint inventory with last seen
│   ├── fusion-ai-defense-policies.ts  # Sophos AI Defense policies, previews, templates (GraphQL)
│   ├── fusion-ai-defense-activity.ts  # Sophos AI Defense activity, inventory, settings (GraphQL)
│   ├── tenants.ts               # Tenant listing (partner/org only)
│   ├── partner.ts               # Partner admin, roles, billing (partner/org only)
│   ├── alerts.ts                # Alert list, get, acknowledge, search
│   ├── endpoints.ts             # Endpoint CRUD, scan, isolate, tamper, forensics, bulk actions
│   ├── endpoint-settings.ts     # Installer, web control, exploit mitigation, IPS, etc.
│   ├── endpoint-migrations.ts   # Migration jobs, software packages
│   ├── health.ts                # Account health, gap analysis
│   ├── directory.ts             # Users, user groups, group membership
│   ├── admin-management.ts      # Admin CRUD, roles, permission sets
│   ├── policies.ts              # Policy CRUD, clone, assignments
│   ├── groups.ts                # Endpoint group CRUD, membership
│   ├── exclusions.ts            # Scanning exclusions, allowed/blocked items
│   ├── cases.ts                 # Investigation cases, detections, MITRE
│   ├── detections.ts            # Detection queries (async)
│   ├── siem.ts                  # SIEM events and alerts
│   ├── xdr.ts                   # XDR Data Lake queries (async)
│   ├── live-discover.ts         # Live Discover queries (async)
│   ├── firewall.ts              # Firewall CRUD, firmware, groups, threat feed, config import/export
│   ├── email.ts                 # Quarantine, mailboxes, message actions
│   ├── email-smime.ts           # S/MIME configuration, internal CA, user and CA certificates
│   ├── mobile.ts                # Mobile devices, groups, actions, policies
│   ├── dns-protection.ts        # DNS locations
│   ├── cloud-security.ts        # Cloud security profiles, assets
│   ├── wifi.ts                  # Wi-Fi MAC filtering
│   └── user-activity.ts         # User attestations
└── types/sophos.ts              # Sophos API response types

Packaging files at the repo root: manifest.json (MCPB manifest, regenerated by the build), scripts/build-mcpb.mjs (bundle builder), and .mcpbignore (extra exclusions applied when packing). schemas/fusion/ holds the eight Fusion GraphQL schemas as downloaded from https://developer.sophos.com/assets/graphql/<api>.graphql (five on 21/09/2026, search-v1 on 29/10/2026, the two AI Defense schemas on 07/11/2026), unmodified, for reference and for diffing when Sophos changes them. test/ holds the node:test suites and scripts/fusion-smoke.mjs the live check.

Security

  • Credentials are read from environment variables only, never logged
  • JWT tokens are held in memory with automatic refresh
  • HTTP server binds to 127.0.0.1 by default and refuses requests from a browser Origin that is not localhost or listed in MCP_ALLOWED_ORIGINS. If MCP_HTTP_HOST opens it to the network, set MCP_HTTP_TOKEN and put TLS in front (a reverse proxy or Tailscale)
  • /mcp accepts request bodies up to 10 MiB, the same cap as stdio, and answers a larger one with a JSON-RPC 413, malformed JSON with a JSON-RPC parse error (-32700), and a body that does not decompress or has an unsupported Content-Encoding or charset with a JSON-RPC 400 or 415. Tool arguments are capped at 1,000,000 array elements and object members (the SDK's maxToolInputElements), so an oversized argument list is refused before validation
  • Write actions have destructiveHint annotations so clients can warn users
  • SOPHOS_READ_ONLY=true registers only the read tools and refuses every request that could write before it is sent. See Read-only mode
  • Partner/org callers require explicit tenant_id on every call
  • The REST client refuses a request path where an ID argument carries a . or .. segment (encoded too), ?, #, a backslash, an encoded / or a control character, so a crafted ID cannot redirect a call to another resource
  • The bearer token goes only to an https API host on sophos.com: the host Sophos names for each tenant is checked before every REST call. No request follows a redirect, including the presigned case file and firewall archive transfers
  • With the .mcpb install, Claude Desktop holds the credentials in the OS secure store (they are sensitive in manifest.json) and hands them to the server as environment variables when it starts the process

License

MIT

More Security & Testing MCP servers

Similar servers from the same category.

Enables deepfake detection in images through Proofly API integration, providing detailed analysis results including real/fake probability scores and individual model results for each detected face.

Security & Testing

CASB provides comprehensive visibility and control over your SaaS applications, so you can easily eliminate the risk of compromise, prevent data loss, and avoid compliance violations.

Security & Testing

Audit logs summarize the history of changes made within your Cloudflare account. Audit logs include account level actions like zone configuration changes.

Security & Testing
YaraFlux logo

YaraFlux

threatflux

Provides YARA-based malware scanning capabilities with support for local and MinIO storage backends, enabling security professionals to manage rules, scan files/URLs, and analyze results for threat detection.

filesystemstorage