Sophos Central Mcp

io.github.rijul170由 GitHub 帳號 rijul170 發布v1.1.0更新於 Oct 25, 2026

MCP server for Sophos Central — endpoint security, XDR/MDR, and MSSP multi-tenant ops

概覽

AI 產生的概覽

針對 Sophos Central API 的 MCP 伺服器,讓助理跨多個租戶分診告警、隔離端點、執行鑑識查詢並管理安全策略。

可以做什麼
分診並處置告警、偵測項目與調查案件,包括確認、關閉及管理證據。調查端點:隔離與解除隔離、竄改防護、掃描、群組、策略以及允許/封鎖清單。透過 Live Discover 在受管端點上執行鑑識 SQL,並在 XDR 資料湖中進行歷史威脅獵捕。管理郵件安全(隔離區、信箱、投遞後收回)、防火牆、DNS 防護、行動裝置、交換器與 WiFi。管理租戶、管理員、角色、授權、稽核事件與帳戶健康,並使用內建 SOC 劇本進行事件回應與威脅獵捕。
適用情境
適合已在使用 Sophos Central 的 MSP/MSSP 或企業安全團隊,希望從 AI 用戶端而非主控台完成告警分診、端點調查、威脅獵捕與策略管理。最適合熟悉 Sophos 概念、需要唯讀可見性或謹慎受控寫入操作的分析人員。
執行需求
以 Node.js 本機程序執行(需 Node.js v18 以上、npm v8 以上),支援 stdio、SSE 或 Streamable HTTP。需要以 SOPHOS_CLIENT_ID 與 SOPHOS_CLIENT_SECRET 提供的 Sophos Central Partner Super Admin API 憑證,並能連線 Sophos 各區域端點。選用變數可控制傳輸方式、綁定主機與連接埠、唯讀模式與破壞性工具開關。
安裝前請注意
此憑證為 Partner Super Admin,對所有受管客戶租戶具備讀寫權限,應視為高權限機密,外洩後立即輪換。許多工具會變更或刪除資料:端點隔離、策略與使用者變更、郵件收回、韌體升級與 Live Discover 執行。破壞性工具預設被抑制,需透過 SOPHOS_MCP_ALLOW_DESTRUCTIVE 明確開啟;建議使用具體工具名稱清單而非 true,並考慮啟用 SOPHOS_MCP_READONLY。不要將 HTTP 連接埠暴露至公開網路。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Sophos Central Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

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 fetch support required)
  • npm v8 or later
  • Sophos Central Partner Super Admin API credentials — see Configuration for how to create these

Installation

bash
git clone https://github.com/rijul170/sophos-central-mcp.gitcd sophos-central-mcpnpm installnpm run build

Configuration

1. Create a .env file

bash
cp .env.example .env

Edit .env with your credentials:

env
# RequiredSOPHOS_CLIENT_ID=your-client-id-hereSOPHOS_CLIENT_SECRET=your-client-secret-here
# Optional — transport mode: stdio | sse | streamable-http (default: stdio)MCP_TRANSPORT=stdio
# Optional — host for HTTP transports (default: 127.0.0.1)MCP_HOST=127.0.0.1
# Optional — port for HTTP transports (default: 3001)MCP_PORT=3001

2. Create API Credentials in Sophos Central

  1. Log in to Sophos Central Partner Dashboard
  2. Navigate to Settings & Policies → API Credentials Management
  3. Click Add Credential
  4. Set the role to Service Principal Super Admin
  5. Copy the Client ID and Client Secret — the secret is displayed only once
VariableRequiredDescription
SOPHOS_CLIENT_IDYesPartner Super Admin Client ID from Sophos Central
SOPHOS_CLIENT_SECRETYesCorresponding client secret
MCP_TRANSPORTNoTransport mode: stdio, sse, or streamable-http (default: stdio)
MCP_HOSTNoBind host for HTTP transports (default: 127.0.0.1)
MCP_PORTNoPort for HTTP transports (default: 3001)
SOPHOS_MCP_READONLYNoSet to true to register only read tools — write and destructive tools are never exposed to the AI client
SOPHOS_MCP_ALLOW_DESTRUCTIVENoDestructive tools (deletes, endpoint isolation, Live Discover execution, clawback, ...) are suppressed by default. Set to true to arm all of them, or a comma-separated list of tool names to arm selectively

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:

bash
MCP_TRANSPORT=streamable-http MCP_PORT=3001 node build/index.js

Or set MCP_TRANSPORT=streamable-http in your .env and run:

bash
node build/index.js

Add to your Claude Code MCP configuration (.claude/settings.json or global settings):

json
{  "mcpServers": {    "sophos-mcp": {      "type": "http",      "url": "http://localhost:3001/mcp"    }  }}

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):

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

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.

bash
MCP_TRANSPORT=sse MCP_PORT=3001 node build/index.js

The SSE endpoint is available at http://localhost:3001/sse.

Tool Domains

DomainToolsDescription
Alerts5List, get, acknowledge, and action Sophos alerts
Endpoint26Isolation, tamper protection, scans, migrations, bulk operations
Detections7Query-based behavioral detection search, grouping, and counts
Live Discover11Real-time forensic SQL queries on managed endpoints
XDR10Historical SQL hunting against the Sophos XDR Data Lake
Cases9Investigation case create, read, update, close, and evidence management
Partner23Tenant enumeration, admins, roles, billing, permission sets
Organization2Tenant listing for organization-type accounts
Policy7Full CRUD for all Sophos policy types
Group8Endpoint group CRUD and member management
SIEM2Events and alerts export for SIEM integration
Firewall20Firewall CRUD, group management, firmware upgrades
DNS Protection15Locations, policies, custom domain allow/block lists
Email31Quarantine management, mailboxes, post-delivery message clawback
Directory15User and user group full CRUD
Settings16Tamper protection, exclusions, web control, endpoint tags
Allowed/Blocked12SHA256 hash, certificate, and path allow/block lists
Exploit Mitigation8Application-level exploit protection exclusions
IPS Exclusion10Network IPS and isolation exclusion management
Tenant Admin14Tenant admin CRUD, role assignments, custom roles
Account Health4Health check reports, snooze, and historical health scores
Account Management4Account-level settings and license management
Audit Events2Audit log retrieval for compliance and governance
Business Automation3Automation rules and business logic configuration
Licensing2License entitlement and usage queries
Mobile38Mobile device management — enrollment, policies, device actions
Cloud Security6Cloud workload protection posture and findings
Software9Installer downloads, software inventory, packages
Switch3Network switch management
WiFi3Wireless network management
User Activity2User activity reporting and session data
Playbooks5SOC incident response and threat hunting workflow guides
Auth2OAuth2 authentication and WhoAmI identity discovery

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:

  1. On startup, the server authenticates to Sophos Central using your Partner credentials and discovers your organization type (partner or organization).
  2. Use sophos_list_tenants (or sophos_list_org_tenants for organization accounts) to enumerate all managed tenants and their IDs.
  3. Pass the tenantId parameter to any tenant-scoped tool to target a specific customer environment.
  4. 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:

1. sophos_list_tenants          → get all tenant IDs and names2. sophos_list_alerts           → pass tenantId for a specific customer3. sophos_isolate_endpoint      → isolate an endpoint in that tenant4. sophos_live_discover_run_query → run forensic SQL on the isolated host

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.

ToolPurpose
sophos_playbook_incident_responseEnd-to-end IR playbook: triage → scope → contain → remediate
sophos_playbook_threat_huntHypothesis-driven and IOC-based threat hunting workflows
sophos_mitre_attack_guideMITRE ATT&CK technique-to-Sophos-tool mapping
sophos_soc_tool_guideReference guide for all 334 tools organized by SOC use case
sophos_playbook_edr_investigationEDR-specific investigation playbook for endpoint detections

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

bash
# Run with hot-reload (no build step required)npm run dev
# Build TypeScript to JavaScriptnpm run build
# Run the built servernpm start
# Inspect tools interactively with MCP Inspectornpx @modelcontextprotocol/inspector node build/index.js

Project Structure

src/├── index.ts                          # Entry point — transport setup, registers all 33 modules├── config.ts                         # Environment variable validation├── auth/│   └── auth-manager.ts               # OAuth2 token management with auto-refresh├── client/│   ├── sophos-client.ts              # HTTP client (retry, rate limiting, backoff)│   └── tenant-router.ts             # Tenant → regional API host mapping├── tools/                            # 33 tool files, 334 tools total│   ├── auth-tools.ts                 # 2 tools│   ├── partner-tools.ts              # 23 tools│   ├── organization-tools.ts         # 2 tools│   ├── endpoint-tools.ts             # 26 tools│   ├── group-tools.ts                # 8 tools│   ├── policy-tools.ts               # 7 tools│   ├── alert-tools.ts                # 5 tools│   ├── detections-tools.ts           # 7 tools│   ├── siem-tools.ts                 # 2 tools│   ├── xdr-tools.ts                  # 10 tools│   ├── live-discover-tools.ts        # 11 tools│   ├── firewall-tools.ts             # 20 tools│   ├── dns-protection-tools.ts       # 15 tools│   ├── email-tools.ts                # 31 tools│   ├── directory-tools.ts            # 15 tools│   ├── settings-tools.ts             # 16 tools│   ├── allowed-blocked-tools.ts      # 12 tools│   ├── exploit-mitigation-tools.ts   # 8 tools│   ├── ips-exclusion-tools.ts        # 10 tools│   ├── tenant-admin-tools.ts         # 14 tools│   ├── account-health-tools.ts       # 4 tools│   ├── cases-tools.ts                # 9 tools│   ├── software-tools.ts             # 9 tools│   ├── audit-events-tools.ts         # 2 tools│   ├── business-automation-tools.ts  # 3 tools│   ├── licensing-tools.ts            # 2 tools│   ├── mobile-tools.ts               # 38 tools│   ├── switch-tools.ts               # 3 tools│   ├── wifi-tools.ts                 # 3 tools│   ├── cloud-security-tools.ts       # 6 tools│   ├── user-activity-tools.ts        # 2 tools│   ├── account-management-tools.ts   # 4 tools│   └── playbook-tools.ts             # 5 tools└── types/    └── sophos-types.ts               # TypeScript interfaces for all Sophos API types

Security Considerations

  • Read-only mode — set SOPHOS_MCP_READONLY=true to 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 than true:

    bash
    # Enable only endpoint isolation for IR workflowsSOPHOS_MCP_ALLOW_DESTRUCTIVE=sophos_isolate_endpoint,sophos_deisolate_endpoint
  • Tool annotations — every tool carries MCP readOnlyHint/destructiveHint annotations 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 .env files to source control — .env is 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.

ServerPlatformHighlights
falcon-mcpCrowdStrike FalconEDR telemetry, RTR, threat intel, MSSP Flight Control, 1,296 tools
sophos-central-mcpSophos CentralEndpoint isolation, Live Discover SQL, XDR, email/firewall/DNS, 334 tools
alertlogic-mcpAlert Logic MDRIncident response, SQL log search, SOAR, vulnerability management, 473 tools

License

MIT

來源:README.md,提交 320d28a

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.1.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分