
Alertlogic Mcp
io.github.rijul170由 GitHub 帳號 rijul170 發布v0.1.0更新於 Oct 24, 2026
MCP server for Alert Logic MDR — incident response, log search, SOAR, and SOC workflows
概覽
本機 MCP 伺服器,將 Alert Logic MDR 平台 API 提供給助理,用於事件處理、日誌搜尋、SOAR 劇本與資產管理。
- 可以做什麼
- 列出、檢視、展開原始日誌證據、加入備註、完成與重開事件,包含跨受管帳戶的合作夥伴事件,並提供內建 SOC 劇本與 MITRE 指南協助調查與威脅狩獵。提交、輪詢與釋放 SQL 日誌搜尋,查詢暴露項目、單一資產弱點與弱點知識庫。列出、檢視與執行 SOAR 劇本,管理執行、詢問與觸發器。查詢、宣告與移除資產,瀏覽 AWS 與 Azure 資源拓撲,管理部署、環境、掃描排程與網路控制。跨帳戶管理使用者、角色、存取金鑰、MFA、憑證、工單、監看清單、帳務與日誌整合。
- 適用情境
- 適合已使用 Alert Logic MDR 的資安營運團隊,希望助理在聊天用戶端中分診事件、取得原始日誌證據、執行 SQL 日誌狩獵並驅動 SOAR 劇本,也適合管理多個子帳戶的 MSSP 情境。
- 執行需求
- 需要 Python 3.10 或更新版本及 uv 或 pip,本機安裝,預設以 stdio 啟動。需要已啟用 API 存取的 Alert Logic 帳戶,以及環境變數 ALERTLOGIC_API_KEY(存取金鑰 ID 與金鑰以冒號連接)、ALERTLOGIC_BASE_URL 與 ALERTLOGIC_ACCOUNT_ID。需能透過 HTTPS 存取 Alert Logic API;選用 HTTP 傳輸會綁定本機連接埠。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Alertlogic Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Alert Logic MCP Server
Bring the full Alert Logic MDR platform into your AI assistant.
A Model Context Protocol server that exposes the complete Alert Logic API surface as structured tools any MCP-compatible client (Claude Desktop, Claude Code, Cursor, …) can call directly — enabling AI-powered security operations, incident response, and threat hunting at MSSP scale.
For incident responders: Query Alert Logic MDR incidents, elaborate raw log evidence, kick off SOAR playbooks, and search logs with SQL — all through Claude. Designed for MSSP-scale multi-account operations.
Table of Contents
- Overview
- Features
- Architecture
- Prerequisites
- Installation
- Configuration
- Claude Code Integration
- Claude Desktop Integration
- Module Overview
- SOC Quick Start
- Built-in SOC Playbooks
- Multi-Account MSSP Usage
- Security Notes
- Testing
- Troubleshooting
- Contributing
- License
Overview
This MCP server wraps the Alert Logic MDR platform API and exposes it as 473+ structured tools that any MCP-compatible AI client can call directly. It covers the full Alert Logic API surface — incident response, SQL-based log search, SOAR playbook automation, asset management, vulnerability analysis, user and credential management, billing, and more — organized into 46 domain modules. Auth, retries, pagination, token management, and JSON shaping are handled server-side; your AI client simply calls the tool by name.
Features
- Incident Response — List, get, elaborate (raw log evidence), complete, reopen, add notes, and add feedback to incidents. Friendly-ID lookup included.
- SQL Log Search — Submit Alert Logic log search queries in SQL, poll status, retrieve results, and release sessions.
- SOAR Playbook Automation — List, get, execute, and monitor SOAR playbooks; manage inquiries, triggers, and execution state.
- Asset Topology — Query the full asset inventory, declare and remove assets, set properties, and retrieve topology graphs for any deployment.
- Vulnerability Management — List exposures by severity, retrieve per-asset vulnerabilities, search the vulnerability knowledge base, and manage remediation items.
- User & Access Key Management — Full CRUD on users, roles, access keys, MFA settings, and password resets across accounts.
- Multi-Account MSSP Support — Per-tool
account_idoverride and bulk cross-account operations (bulk deployments, bulk health checks, partner incidents). - Built-in SOC Playbooks — Six tools that surface pre-written IR guides, threat-hunt workflows, MITRE ATT&CK mappings, and tool reference guides directly in-context.
- Tickets & Watchlist — Create, update, and close tickets; manage the alerting watchlist.
- Cloud & Azure Explorer — Browse cloud resource topology across AWS and Azure environments.
- Analytics Engine — Access AE content, rules, analytics, tags, tuning, and publication across multiple AE subsystems.
- Infrastructure Operations — Manage environments, scan schedules, scan results, network controls, ingest sources, and log integrations.
Architecture
Transport: The server supports three MCP transports selectable via MCP_TRANSPORT:
stdio(default) — launched on demand by your MCP client; no network port opened.streamable-http— persistent HTTP server; suitable for Claude Code and remote clients.sse— Server-Sent Events transport for SSE-capable clients.
Authentication: Alert Logic uses AIMS Bearer token auth. The server exchanges your access_key_id:secret_key API key for a short-lived Bearer token on first use, caches it, and re-authenticates automatically when the token expires — no manual token rotation required.
base.py centralizes HTTP method helpers (_get, _post, _put, _delete), per-service URL routing (Account-Topology service, global service, _at-prefixed routes), error translation, and the AIMS token cache.
Prerequisites
- Python 3.10 or newer
uv(recommended) orpip- An Alert Logic account with API access enabled
- An Alert Logic API key (access key ID + secret key; see Configuration)
Installation
Configuration
All configuration is via environment variables, loaded from .env at startup.
Required variables
Optional variables
Optional service URL overrides
These default to Alert Logic's standard endpoints. Override only if you have a custom deployment:
Creating an API key
- Sign in to the Alert Logic console.
- Navigate to Manage → Users, select your user, then open Access Keys → Create.
- Copy the Access Key ID and Secret Key.
- Combine them as
access_key_id:secret_key(with the colon) and set that asALERTLOGIC_API_KEY.
Claude Code Integration (HTTP mode)
Start the server in HTTP mode:
Then register it in your Claude Code project or user MCP config (.claude/settings.json or ~/.claude/settings.json):
Or via the CLI:
Claude Desktop Integration (stdio mode)
Edit claude_desktop_config.json:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%AppData%\Claude\claude_desktop_config.json
Use absolute paths. Tilde (
~) is not expanded by Claude Desktop. Pointcommandat the venv Python, not the system Python.
Restart Claude Desktop. Alert Logic tools will appear in the tool picker.
Module Overview
46 modules, ~473 tools, organized by domain:
Incident Response
Asset Management
SOAR
Vulnerabilities & Compliance
Users & Authentication
Infrastructure & Deployments
Analytics Engine
Ticketing & Watchlist
Operations & Platform
SOC Quick Start
Once connected, try these prompts in Claude:
Built-in SOC Playbooks
The soc_playbooks module provides six tools that surface curated, in-context operational guides — no external documentation lookups required:
These tools are designed to be called at the start of an investigation to load relevant context before querying live data.
Multi-Account MSSP Usage
The server is designed for MSSP environments where a single API key manages multiple child accounts:
Partner incident listing — incidents_list_partner returns incidents across all managed accounts in a single call, with account ownership labels.
Per-tool account override — Most tools accept an optional account_id parameter. Pass a child account's ID to scope any query to that account without changing your .env configuration:
Bulk operations — bulk_list_deployments fans out a deployments query across all managed accounts and returns aggregated results. bulk_health_check does the same for health status.
Account topology — aims_get_account_topology and aims_list_accounts_by_relationship map the parent/child account hierarchy, useful for scoping operations before running them.
Tenant isolation: When working across multiple accounts, always confirm the target account before running write operations (containment, note-adding, ticket creation). The server does not enforce cross-tenant guards beyond what the Alert Logic API provides.
Security Notes
-
Read-only mode: Set
ALERTLOGIC_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. -
Destructive operation gating: Even with writes enabled, destructive tools (user/asset deletes, SOAR playbook execution, scan launches, key revocation, ...) are suppressed by default. Arm them explicitly via
ALERTLOGIC_MCP_ALLOW_DESTRUCTIVE— the recommended approach is a comma-separated list of specific tool names rather thantrue: -
Every tool carries MCP
readOnlyHint/destructiveHintannotations so compliant clients can apply their own confirmation policies. -
Never commit
.env. It is excluded by.gitignore; only.env.example(with placeholders) is tracked. -
Treat
ALERTLOGIC_API_KEYlike a password. Rotate it immediately if you suspect exposure (chat logs, screen shares, lost device). -
AIMS token handling: The server exchanges your API key for a short-lived Bearer token on first use and caches it in memory. The token is refreshed automatically on expiry. The raw
secret_keyis not logged or transmitted after the initial AIMS authentication call. -
In
stdiomode, the server opens no network port. Instreamable-httporssemode, bind to127.0.0.1(the default) unless you specifically need remote access, in which case add appropriate network controls. -
base.pydoes not log request bodies, response bodies, or credential material. If you fork and add logging, take care to exclude token and secret values. -
This repository ships no credentials of any kind.
Testing
A standalone smoke-test script exercises a representative cross-section of tools without going through an MCP client:
This verifies credential validity, network reachability, and base configuration before wiring the server into your MCP client.
Troubleshooting
"Authentication failed" / 401 errors
- Confirm
ALERTLOGIC_API_KEYis the fullaccess_key_id:secret_keystring, including the colon separator. - Verify
ALERTLOGIC_BASE_URLmatches your datacenter (USapi.cloudinsight.alertlogic.comvs. UKapi.cloudinsight.alertlogic.co.uk). - Check that the access key is still active in the Alert Logic console (Manage → Users → Access Keys).
- Confirm
ALERTLOGIC_ACCOUNT_IDis correct — a mismatch can cause 401s on account-scoped endpoints.
Tools don't appear in Claude Desktop
- Use absolute paths in
claude_desktop_config.json. Tilde (~) and relative paths are not expanded. - Point
commandat the virtual environment's Python (.venv/bin/python), not the system Python. - Check Claude Desktop logs for stderr output from this server: macOS logs are in
~/Library/Logs/Claude/. - Restart Claude Desktop fully (quit and reopen) after editing the config file.
"ModuleNotFoundError: mcp" or missing dependencies
You are running python main.py outside the virtual environment. Either activate it first (source .venv/bin/activate) or invoke the venv's Python directly (/path/to/.venv/bin/python main.py).
HTTP mode: connection refused on port 8000
Make sure you started the server with MCP_TRANSPORT=streamable-http python main.py before attempting to connect. The server only binds a port when a non-stdio transport is selected.
Empty results or silent failures
If all tool calls return empty results or fail silently, this is often caused by an SSO or proxy layer blocking outbound API calls. Try running from a non-proxied network or a different client to confirm. Also check that ALERTLOGIC_BASE_URL and ALERTLOGIC_ACCOUNT_ID are both correct for your environment.
Contributing
PRs and issues are welcome.
- Fork the repository, create a feature branch, commit your changes, and open a PR.
- Add new Alert Logic endpoints as additional
@server.tooldefinitions in the matching module file undermodules/. - For a new module: create
modules/<name>.pywith asetup(server)function, then add it to theMODULESlist inmain.py. - Keep tool docstrings accurate and descriptive — the docstring is what the LLM sees when deciding whether and how to call the tool.
- Run
python smoke_test.pybefore submitting to verify basic functionality.
Related MCP Servers
These three servers cover complementary layers of a security stack — network/log (Alert Logic), endpoint protection (Sophos), and EDR/threat intel (CrowdStrike). Use them together for full-stack AI-powered SOC operations.
License
MIT License. See LICENSE for full text.
來源:README.md,提交 11880da
工具
0版本歷史
1- v0.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分