
Sophos Central Mcp
io.github.rijul170Published by GitHub account rijul170v1.1.0Updated Oct 25, 2026
MCP server for Sophos Central — endpoint security, XDR/MDR, and MSSP multi-tenant ops
Overview
An MCP server for the Sophos Central API that lets an assistant triage alerts, isolate endpoints, run forensic queries and manage security policy across managed
- What you can do
- Triage and act on alerts, detections and investigation cases across tenants, including acknowledging and closing them and managing evidence. Investigate endpoints: isolation and de-isolation, tamper protection, scans, groups, policies and allow/block lists. Run forensic SQL on managed endpoints with Live Discover and hunt historical data in the XDR Data Lake. Manage email security (quarantine, mailboxes, message clawback), firewall, DNS protection, mobile devices, switches and WiFi. Administer tenants, admins, roles, licensing, audit events and account health, and use built-in SOC playbooks for incident response and threat hunting.
- When to use it
- For MSP/MSSP or in-house security teams already using Sophos Central who want to drive alert triage, endpoint investigation, threat hunting and policy administration from an AI client instead of the console. Best suited to analysts who understand Sophos concepts and want read-only visibility or carefully gated write actions.
- Requirements
- Runs locally as a Node.js process (Node.js v18 or later, npm v8 or later) over stdio, SSE or Streamable HTTP. Needs Sophos Central Partner Super Admin API credentials supplied as SOPHOS_CLIENT_ID and SOPHOS_CLIENT_SECRET, plus network access to Sophos regional endpoints. Optional variables control transport, bind host and port, read-only mode and destructive-tool gating.
Installation
In SourceWeft
- Open Sophos Central Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
Sophos Central MCP Server
[Node.js] [License] [MCP Protocol] [Tools] [GitHub Stars]
[Build & Test] [npm] [MCP Registry]
For MSP/MSSP teams: Manage endpoint security, email threats, and firewall policy across all your Sophos tenants through natural language. Ask Claude to investigate an alert, isolate a host, run Live Discover queries, and correlate with XDR data — without leaving your AI workflow.
Overview
A Model Context Protocol (MCP) server for the Sophos Central API, enabling AI-powered security operations through Claude and other MCP-compatible clients. Designed for MSP/MSSP environments with Partner Super Admin credentials, it provides multi-tenant management across all customer tenants from a single server instance — covering endpoint protection, threat detection, Live Discover forensics, XDR hunting, email security, firewall management, and more.
Features
- 334 tools across 33 API domains — comprehensive Sophos Central API coverage
- Multi-tenant MSSP support — enumerate and target any customer tenant via Partner Super Admin credentials
- Endpoint isolation and investigation — isolate endpoints, check tamper protection, trigger scans
- Alert triage — list, filter, acknowledge, and action Sophos alerts across tenants
- Live Discover SQL queries — run real-time forensic SQL queries directly on managed endpoints
- XDR Data Lake hunting — historical threat hunting with SQL against the Sophos XDR data lake
- Threat detections — query, group, and count behavioral detections
- Case management — create and manage investigation cases end-to-end
- Email security — quarantine management, mailbox listing, post-delivery message clawback
- Firewall management — CRUD operations, group management, firmware upgrades
- DNS protection — location policies, custom domain allow/block lists
- SOC playbooks — built-in
sophos_playbook_*tools for guided IR and threat hunting workflows - Three transport modes — stdio (Claude Desktop), SSE, and Streamable HTTP (Claude Code)
- Automatic OAuth2 token management — token refresh with no manual intervention
- Regional routing — requests automatically routed to the correct data region (US, EU, CA, AU, JP, BR)
Prerequisites
- Node.js v18 or later (native
fetchsupport required) - npm v8 or later
- Sophos Central Partner Super Admin API credentials — see Configuration for how to create these
Installation
Configuration
1. Create a .env file
Edit .env with your credentials:
2. Create API Credentials in Sophos Central
- Log in to Sophos Central Partner Dashboard
- Navigate to Settings & Policies → API Credentials Management
- Click Add Credential
- Set the role to Service Principal Super Admin
- Copy the Client ID and Client Secret — the secret is displayed only once
Claude Code Integration (HTTP Mode)
HTTP mode is recommended for Claude Code — it supports concurrent sessions and does not require restarting the server between conversations.
Start the server:
Or set MCP_TRANSPORT=streamable-http in your .env and run:
Add to your Claude Code MCP configuration (.claude/settings.json or global settings):
A /health endpoint is available at http://localhost:3001/health for liveness checks.
Claude Desktop Integration (stdio Mode)
stdio mode is the standard transport for Claude Desktop. The server process is managed by Claude Desktop directly.
Add to your Claude Desktop MCP configuration (claude_desktop_config.json):
Replace /path/to/sophos-central-mcp with the absolute path to your cloned repository.
SSE Mode
SSE (Server-Sent Events) mode is available for legacy MCP clients that do not support Streamable HTTP.
The SSE endpoint is available at http://localhost:3001/sse.
Tool Domains
MSSP Multi-Tenant Support
The server is built around Sophos Partner Super Admin credentials, which have visibility across all managed customer tenants.
How it works:
- On startup, the server authenticates to Sophos Central using your Partner credentials and discovers your organization type (partner or organization).
- Use
sophos_list_tenants(orsophos_list_org_tenantsfor organization accounts) to enumerate all managed tenants and their IDs. - Pass the
tenantIdparameter to any tenant-scoped tool to target a specific customer environment. - All API calls are automatically routed to the correct regional endpoint (US, EU, CA, AU, JP, BR) based on the tenant's data residency.
Example workflow:
SOC Playbooks
The server ships with five built-in playbook tools that provide structured, step-by-step guidance for common SOC workflows. These are designed to be invoked at the start of an investigation to orient the response.
SOC Quick Start
Once the server is connected to Claude, you can use natural language to drive security operations. Example prompts:
Alert triage:
"List all critical and high severity open alerts for tenant
<tenant-id>from the last 24 hours, grouped by type."
Endpoint investigation:
"Isolate endpoint
<hostname>in tenant<tenant-id>, then run a Live Discover SQL query to list all running processes and active network connections."
XDR threat hunting:
"Run an XDR Data Lake query against tenant
<tenant-id>to find any PowerShell executions with encoded commands in the last 7 days."
MSSP overview:
"Enumerate all my managed tenants, then show me any tenants with open critical alerts."
Email security:
"Show me all quarantined messages for tenant
<tenant-id>in the last 48 hours and release any flagged as false positives."
Development
Project Structure
Security Considerations
-
Read-only mode — set
SOPHOS_MCP_READONLY=trueto register only read tools at startup. Write and destructive tools are never exposed to the AI client, regardless of what is asked. XDR Data Lake and detections queries stay available (they are read analytics); Live Discover does not (it executes osquery on managed endpoints). -
Destructive operation gating — even with writes enabled, destructive tools (endpoint isolation, deletes, email clawback, Live Discover execution, firmware upgrades, ...) are suppressed by default. Arm them explicitly via
SOPHOS_MCP_ALLOW_DESTRUCTIVE. The recommended approach is a comma-separated list of specific tool names rather thantrue: -
Tool annotations — every tool carries MCP
readOnlyHint/destructiveHintannotations so compliant clients can apply their own confirmation policies. -
Credential handling — API credentials are read from environment variables at startup and are never logged or transmitted except to the Sophos authentication endpoint. Do not commit
.envfiles to source control —.envis listed in.gitignore. -
Partner Super Admin scope — these credentials have read/write access across all managed tenants. Treat them with the same care as privileged service account credentials. Rotate them immediately if compromised.
-
Read-only operations where possible — where your use case only requires visibility (alert triage, threat hunting, reporting), consider creating a separate credential with a more restricted role. Partner Super Admin is required only for write operations (isolation, policy changes, user management).
-
Network binding — HTTP transports default to
127.0.0.1. Do not expose the MCP server port publicly. If you need remote access, put it behind an authenticated reverse proxy or use a VPN. -
Audit trail — all Sophos API calls made through this server are logged in Sophos Central's audit events, attributable to the API credential used.
Related MCP Servers
These three servers cover complementary layers of a security stack — network/log (AlertLogic), endpoint protection (Sophos), and EDR/threat intel (CrowdStrike). Use them together for full-stack AI-powered SOC operations.
License
MIT
Source: README.md at commit 320d28a
Tools
0Version history
1- v1.1.0LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts