Sophos Central MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Sophos Central MCP Server show me unresolved critical alerts from the last 24 hours"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Sophos Central MCP Server
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 buildConfiguration
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-tenantOr use a .env file:
SOPHOS_CLIENT_ID=your-client-id
SOPHOS_CLIENT_SECRET=your-client-secret
SOPHOS_TENANT_ID=your-tenant-idGetting API Credentials
Log in to Sophos Central
Go to Global Settings > API Credentials Management
Click Add Credential and assign a role
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 |
| Search endpoints by hostname, IP, health, OS, group |
| Full endpoint details with agent info and products |
| Network isolate an endpoint (incident response) |
| Remove network isolation |
| Trigger on-demand scan |
| List installed software on endpoint |
| Get alerts with severity/category/product filters |
| Full alert details with description |
| Mark alert as acknowledged |
| Resolve/close alert with action taken |
| List available response actions |
| EDR/XDR detections with filters |
| Full detection with MITRE ATT&CK mapping |
| Grouped related detections |
| All detections in a threat case |
| Update threat case status |
| Search security events by type/severity/date |
| Full event details |
| Available event type catalog |
| Admin audit trail |
| List endpoint/server/firewall policies |
| Full policy configuration |
| Specific settings within a policy |
| Global and policy-specific exclusions |
| List managed tenants (MSP view) |
| Tenant details and license info |
| Overall tenant security health score |
| Execute Live Discover query on endpoints |
| List saved Live Discover queries |
| Retrieve completed query results |
| 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 |
| Guided endpoint investigation workflow |
| Hunt for IOCs across endpoints via Live Discover |
| Step-by-step IR: contain, investigate, remediate |
| Review tenant/endpoint security posture |
Resources
URI | Description |
| Built-in Live Discover query library |
| Policy settings reference |
| 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 checkLicense
MIT
Available Tools
31 toolsacknowledge_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
Scored across 31 tools
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.
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.
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.
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
Related MCP Connectors
- DNS-DATA RemoteDeprecatedcom.dns-data
Connect AI assistants to authorized Windows and macOS devices for files, commands, and management.
Amazon Ads, Seller Central, Vendor Central and AMC data for AI agents. Read-only by default.
Lets AI agents analyze API metrics, request logs, and traces, and manage apps and alerts.
Connect assistants to your company tools with per-person, per-action grants and a full audit log.
Related MCP Servers
- AlicenseBqualityCmaintenanceEnables 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.10057 npm1MIT
- AlicenseNot gradedqualityBmaintenanceEnables 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.2MIT
- AlicenseNot gradedqualityBmaintenanceEnables 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
- AlicenseNot gradedqualityAmaintenanceEnables 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 npmMIT