taegis-magic-mcp

taegis-magic-mcp

An MCP server that wraps the taegis-magic CLI to allow AI assistants to query Secureworks Taegis XDR for alerts, events, investigations, threat intelligence, and tenants via natural language.

Category
访问服务器

README

taegis-magic-mcp

An MCP (Model Context Protocol) server that wraps taegis-magic — the Secureworks Taegis XDR CLI and SDK — so that AI assistants and agents can query alerts, events, investigations, threat intelligence, and tenants directly from their context window.

How it works

taegis-magic is the official open-source CLI and SDK for Secureworks Taegis XDR. It exposes subcommands like taegis alerts search, taegis investigations search, taegis events search, etc. via a rich Python SDK backed by the Taegis GraphQL API.

This server wraps those CLI commands behind the MCP tool protocol: an agent calls a tool (search_alerts, search_events, …), the server runs the appropriate taegis command as a subprocess, and returns the JSON output to the agent. No Taegis API knowledge is required on the agent side.

Agent / LLM
    │
    │  MCP tool call: search_alerts(query="...", region="charlie")
    ▼
taegis-magic-mcp  (this server)
    │
    │  subprocess: taegis alerts search --cell "..." --region charlie --limit 100
    ▼
taegis-magic CLI  ─────► Secureworks Taegis XDR API

Requirements

Requirement Notes
Python ≥ 3.11
uv Used to run the server in an isolated environment
taegis-magic Must be installed and on PATHpip install taegis-magic

Authentication

taegis-magic supports two authentication methods:

OAuth client credentials (recommended for automated use)

export TAEGIS_CLIENT_ID=<your-oauth-client-id>
export TAEGIS_CLIENT_SECRET=<your-oauth-client-secret>
export TAEGIS_ENVIRONMENT=<region>   # charlie | delta | us1 | us2 | eu

The MCP server forwards these as CLIENT_ID / CLIENT_SECRET to the taegis-sdk-python environment (the names the SDK reads). TAEGIS_CLIENT_ID / TAEGIS_CLIENT_SECRET are the namespaced forms used here to avoid collisions with other tools.

Interactive login (recommended for interactive use)

taegis auth login

The cached token is stored at ~/.taegis_sdk_python/config and reused automatically.

Available MCP tools

Tool Description
search_alerts Search Taegis alerts using OCSF query syntax
search_events Search Taegis security events
search_investigations List open security investigations
search_threat_intel Search threat intelligence (IOCs, hashes, IPs, domains …)
list_tenants List all tenants visible to the authenticated user
run_taegis_command Escape hatch — run any taegis CLI subcommand and return JSON

All tools accept an optional region parameter (overrides TAEGIS_ENVIRONMENT).

Example queries

search_alerts(query="FROM alert EARLIEST=-1d WHERE severity='High'", region="charlie")
search_events(query="FROM event EARLIEST=-4h WHERE source_ip='10.0.0.1'")
search_threat_intel(query="evil.example.com")
run_taegis_command(args="rules search --region charlie --limit 10")

Installation

With opencode

Clone or add this repo as a submodule, then add to your opencode.jsonc:

"mcp": {
  "taegis": {
    "type": "local",
    "command": ["uv", "run", "--project", "/path/to/taegis-magic-mcp", "taegis-mcp"],
    "environment": {
      "TAEGIS_CLIENT_ID": "${TAEGIS_CLIENT_ID}",
      "TAEGIS_CLIENT_SECRET": "${TAEGIS_CLIENT_SECRET}",
      "TAEGIS_ENVIRONMENT": "${TAEGIS_ENVIRONMENT}"
    },
    "enabled": false
  }
}

Set "enabled": true (or toggle at runtime) when you want the Taegis tools in scope.

Standalone

git clone https://github.com/DarkLicornor/taegis-magic-mcp.git
cd taegis-magic-mcp
uv sync
uv run taegis-mcp

Development

git clone https://github.com/DarkLicornor/taegis-magic-mcp.git
cd taegis-magic-mcp
uv sync --extra dev
uv run taegis-mcp        # run the server
uv run pytest            # run tests
uv run ruff check .      # lint
uv run mypy src          # type-check

See also

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选