Skip to main content
Glama
Sophos Central MCP Server

Sophos Central MCP Server

by solomonneas

Sophos Central MCP Server

TypeScript 5.7 Node.js MCP SDK Sophos License: MIT

A Model Context Protocol (MCP) server that provides AI assistants with access to Sophos Central, a unified cloud security management platform. Manage endpoints, investigate alerts, analyze EDR/XDR detections, run Live Discover queries, and audit security policies.

Features

Endpoints

  • List, search, and inspect endpoints by hostname, IP, OS, health status

  • Network isolation and un-isolation for incident response

  • On-demand scan triggering

  • Software inventory retrieval

Alerts

  • List and filter alerts by severity, category, product, date range

  • Acknowledge and resolve alerts with actions taken

  • View available response actions per alert

EDR/XDR Detections

  • List detections with MITRE ATT&CK technique mappings

  • Threat case management (grouped related detections)

  • Detection-to-case correlation

Security Events

  • Search events by type, severity, endpoint, date range

  • Event type catalog (malware, PUA, web filter, etc.)

  • Admin audit log access

Policies

  • List endpoint, server, and firewall policies

  • Inspect individual policy configurations

  • Review global and policy-specific exclusions

Tenant Management

  • Multi-tenant listing (MSP/partner view)

  • Tenant details and license information

  • Overall tenant security health scoring

Live Discover (osquery)

  • Execute Live Discover queries on endpoints

  • Saved query library management

  • Query result retrieval

  • Query category browsing

Related MCP server: defender-xdr-mcp

Architecture

┌────────────────────────────────────────┐
│           MCP Client (LLM)             │
└──────────────┬─────────────────────────┘
               │ MCP Protocol (stdio)
┌──────────────▼─────────────────────────┐
│          sophos-mcp server             │
│                                        │
│  ┌──────────┐  ┌────────────────────┐  │
│  │ Prompts  │  │    Resources       │  │
│  │ 4 guides │  │ queries, policies, │  │
│  │          │  │ MITRE mappings     │  │
│  └──────────┘  └────────────────────┘  │
│                                        │
│  ┌──────────────────────────────────┐  │
│  │            Tools                  │  │
│  │  endpoints │ alerts │ detections  │  │
│  │  events │ policies │ tenants     │  │
│  │  live-discover                    │  │
│  └──────────────┬───────────────────┘  │
│                 │                       │
│  ┌──────────────▼───────────────────┐  │
│  │      Sophos Central API Client   │  │
│  │      (OAuth2 + REST)             │  │
│  └──────────────┬───────────────────┘  │
└──────────────────┼─────────────────────┘
                   │ HTTPS
┌──────────────────▼─────────────────────┐
│       Sophos Central Platform API      │
│  https://api.central.sophos.com        │
└────────────────────────────────────────┘

Installation

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

Configuration

Sophos Central uses OAuth2 with client credentials. Set environment variables:

export SOPHOS_CLIENT_ID="your-client-id"
export SOPHOS_CLIENT_SECRET="your-client-secret"
export SOPHOS_TENANT_ID="your-tenant-id"   # optional for single-tenant

Or use a .env file:

SOPHOS_CLIENT_ID=your-client-id
SOPHOS_CLIENT_SECRET=your-client-secret
SOPHOS_TENANT_ID=your-tenant-id

Getting API Credentials

  1. Log in to Sophos Central

  2. Go to Global Settings > API Credentials Management

  3. Click Add Credential and assign a role

  4. Copy the Client ID and Client Secret

MCP Client Configuration

Claude Desktop

{
  "mcpServers": {
    "sophos": {
      "command": "node",
      "args": ["path/to/sophos-mcp/dist/index.js"],
      "env": {
        "SOPHOS_CLIENT_ID": "your-client-id",
        "SOPHOS_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

OpenClaw

Add to your openclaw.json:

{
  "mcp": {
    "servers": {
      "sophos": {
        "type": "stdio",
        "command": "node",
        "args": ["/path/to/sophos-mcp/dist/index.js"],
        "env": {
          "SOPHOS_CLIENT_ID": "your-client-id",
          "SOPHOS_CLIENT_SECRET": "your-client-secret"
        }
      }
    }
  }
}

Tool Reference

Tool

Description

list_endpoints

Search endpoints by hostname, IP, health, OS, group

get_endpoint

Full endpoint details with agent info and products

isolate_endpoint

Network isolate an endpoint (incident response)

unisolate_endpoint

Remove network isolation

scan_endpoint

Trigger on-demand scan

get_endpoint_software

List installed software on endpoint

list_alerts

Get alerts with severity/category/product filters

get_alert

Full alert details with description

acknowledge_alert

Mark alert as acknowledged

resolve_alert

Resolve/close alert with action taken

get_alert_actions

List available response actions

list_detections

EDR/XDR detections with filters

get_detection

Full detection with MITRE ATT&CK mapping

get_threat_cases

Grouped related detections

get_case_detections

All detections in a threat case

update_case_status

Update threat case status

search_events

Search security events by type/severity/date

get_event

Full event details

list_event_types

Available event type catalog

get_audit_logs

Admin audit trail

list_policies

List endpoint/server/firewall policies

get_policy

Full policy configuration

get_policy_settings

Specific settings within a policy

list_exclusions

Global and policy-specific exclusions

list_tenants

List managed tenants (MSP view)

get_tenant

Tenant details and license info

get_tenant_health

Overall tenant security health score

run_query

Execute Live Discover query on endpoints

list_saved_queries

List saved Live Discover queries

get_query_results

Retrieve completed query results

list_query_categories

Available query categories

Live Discover Query Examples

-- Running processes
SELECT pid, name, path, cmdline, start_time FROM processes WHERE name = 'suspicious.exe';

-- Listening ports (non-standard)
SELECT pid, port, address, protocol FROM listening_ports WHERE port NOT IN (80, 443, 22);

-- Scheduled tasks
SELECT name, action, path, enabled FROM scheduled_tasks WHERE enabled = 1;

-- Installed software from unknown publishers
SELECT name, version, publisher FROM programs WHERE publisher LIKE '%unknown%';

-- Active network connections to suspicious port
SELECT pid, remote_address, remote_port, state FROM socket_events WHERE remote_port = 4444;

-- File hash lookup
SELECT path, sha256 FROM hash WHERE path = '/usr/bin/suspicious';

-- Recently modified executables
SELECT path, filename, size, mtime FROM file WHERE path LIKE '/tmp/%' AND filename LIKE '%.exe';

Prompts

Prompt

Description

investigate-endpoint

Guided endpoint investigation workflow

threat-hunt

Hunt for IOCs across endpoints via Live Discover

incident-response

Step-by-step IR: contain, investigate, remediate

health-audit

Review tenant/endpoint security posture

Resources

URI

Description

sophos://live-discover-queries

Built-in Live Discover query library

sophos://policy-reference

Policy settings reference

sophos://mitre-mappings

MITRE ATT&CK technique mappings

Development

npm run build    # Compile TypeScript
npm run dev      # Watch mode
npm run test     # Run tests
npm run lint     # Lint check

License

MIT

Available Tools

31 tools
acknowledge_alertA

Acknowledge a Sophos Central alert — marks it as reviewed without resolving it

Inputs: alert_id (required), message.

get_alertA

Get full details of a specific Sophos Central alert including description, managed agent info, and available response actions

Inputs: alert_id (required).

get_alert_actionsB

List available response actions for a specific Sophos Central alert — determines what actions can be performed

Inputs: alert_id (required).

get_audit_logsB

Get the admin audit trail from Sophos Central — tracks all administrative actions including policy changes, user management, and configuration updates

Inputs: to, from, page, search, +2 more.

get_case_detectionsB

Get all detections within a Sophos threat case — shows every detection that contributed to the case

Inputs: case_id (required), page, pageSize.

get_detectionA

Get full details of a Sophos EDR/XDR detection including process tree, MITRE ATT&CK mapping, indicators, and raw event data

Inputs: detection_id (required).

get_endpointA

Get full details of a specific Sophos Central endpoint including health status, assigned products, tamper protection, isolation state, and associated person

Inputs: endpoint_id (required).

get_endpoint_softwareA

List installed software on a Sophos Central endpoint — useful for vulnerability assessment and software inventory

Inputs: endpoint_id (required), page, search, pageSize.

get_eventC

Get full details of a specific Sophos Central security event including customer data, IOCs, and endpoint context

Inputs: event_id (required).

get_policyB

Get full configuration details of a specific Sophos Central policy including all settings and scope

Inputs: policy_id (required).

get_policy_settingsB

Get specific settings within a Sophos Central policy — extracts and formats individual configuration sections for easier analysis

Inputs: policy_id (required), setting_key.

get_query_resultsB

Retrieve results from a completed Live Discover query run — returns tabular data from each endpoint

Inputs: query_run_id (required), page, pageSize, endpoint_id.

get_tenantA

Get full details of a managed tenant including contact info, license details, and data region

Inputs: tenant_id (required).

get_tenant_healthA

Get overall security health score for a tenant — endpoint protection coverage, active threats, and compliance metrics

Inputs: tenant_id (required).

get_threat_casesC

List Sophos threat cases — groups of related EDR/XDR detections that form a single incident narrative

Inputs: to, from, page, status, +2 more.

isolate_endpointA

Network isolate a Sophos Central endpoint for incident response — the endpoint can only communicate with Sophos Central

Inputs: endpoint_id (required), comment.

list_alertsC

List Sophos Central alerts with optional filters for severity, category, product, and date range

Inputs: to, from, page, product, +3 more.

list_detectionsB

List Sophos EDR/XDR detections with optional filters for severity, type, endpoint, and date range

Inputs: to, from, page, type, +4 more.

list_endpointsA

List Sophos Central managed endpoints with optional filters for hostname, health status, OS platform, type, group, tamper protection, and isolation state

Inputs: page, type, search, groupId, +7 more.

list_event_typesA

List available Sophos Central security event types and their descriptions — useful for building event search queries

Inputs: no named parameters.

list_exclusionsA

List global and policy-specific scanning exclusions in Sophos Central — important for security audits and troubleshooting false positives

Inputs: page, type, search, pageSize.

list_policiesB

List Sophos Central endpoint, server, and firewall policies with optional type filter

Inputs: page, type, enabled, pageSize.

list_query_categoriesA

List available Live Discover query categories with descriptions and example queries — helps discover what you can query

Inputs: no named parameters.

list_saved_queriesB

List saved Live Discover queries in Sophos Central — includes built-in and custom queries with their SQL and supported platforms

Inputs: page, search, builtIn, category, +1 more.

list_tenantsA

List managed tenants in Sophos Central — MSP/partner view of all managed organizations with status and billing info

Inputs: page, search, status, pageSize.

resolve_alertC

Resolve and close a Sophos Central alert with a description of the action taken

Inputs: action (required), alert_id (required), message.

run_queryB

Execute a Live Discover SQL query (osquery) on one or more Sophos Central endpoints — for real-time investigation and threat hunting

Inputs: sql (required), endpoint_ids (required), variables.

scan_endpointB

Trigger a full on-demand antivirus scan on a Sophos Central endpoint

Inputs: endpoint_id (required).

search_eventsB

Search Sophos Central security events by type, severity, endpoint, source, and date range — the primary SIEM event feed

Inputs: to, from, page, type, +5 more.

unisolate_endpointA

Remove network isolation from a Sophos Central endpoint, restoring normal network connectivity

Inputs: endpoint_id (required), comment.

update_case_statusC

Update the status of a Sophos threat case and optionally assign it to an analyst

Inputs: status (required), case_id (required), assignee_id.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 31 tools

    Disambiguation4/5

    Tools are mostly distinct by resource and action: events, alerts, detections, cases, endpoints, policies, tenants, and Live Discover queries all have clear boundaries. Some conceptual overlap remains between search_events, list_alerts, list_detections, and get_threat_cases, but the descriptions help distinguish raw SIEM events, alerts, EDR detections, and grouped cases.

    Naming Consistency4/5

    The set follows a predictable verb_noun pattern overall: list_*, get_*, update_*, isolate_endpoint, resolve_alert, and run_query are readable and consistent. Minor deviations exist, notably get_threat_cases used for listing threat cases, which would be clearer as list_threat_cases.

    Tool Count2/5

    The tools cover a broad platform, but 31 tools is heavy for a single MCP surface and exceeds a manageable count for an agent to select from reliably. Several areas could be consolidated or nested more tightly, though the tools are not redundant.

    Completeness4/5

    Core security operations are well covered: event search/detail, alert triage, detection review, endpoint isolation/scanning, Live Discover querying, and tenant/policy visibility. Gaps exist in administrative write operations such as creating/updating policies or exclusions, and there is no direct get-threat-case-by-ID tool beyond listing cases and retrieving their detections.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      C
      maintenance
      Enables AI-powered security operations through natural language, managing endpoint security, email threats, firewall policy, and more across multiple Sophos tenants with 334 tools, designed for MSP/MSSP teams.
      100
      57 npm
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to query Microsoft Defender XDR telemetry for read-only threat hunting, incident triage, and vulnerability discovery using delegated per-user authentication and production guardrails.
      2
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to perform read/write management of Microsoft Intune and Entra ID across devices, apps, users, groups, Conditional Access, Cloud PC, compliance, and reports via Microsoft Graph.
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants to connect to Octopus instances to inspect, query, and diagnose deployment and operational data, and to perform release, deployment, runbook, and feature-toggle actions with configurable read-only safeguards.
      547 npm
      MIT