
MCP 服务器可与 Security Copilot、Sentinel 及其他工具集成(未来)。它增强了开发、测试和上传 Security Copilot 工件的流程。
概览
一台基于Python的MCP服务器,使用FastMCP库,通过Azure身份认证与Microsoft Security Copilot和Microsoft Sentinel集成。 该项目实现了一个MCP服务器,支持: - 针对 Microsoft Sentinel 运行 KQL 查询 - 上传/更新 Microsoft Security Copilot 技能集/插件 - 在 Microsoft Security Copilot 中运行提示和技能 服务器作为开发环境与 Microsoft Security Copilot 之间的桥梁,支持技能和插件的测试、部署和执行。它使用 SSE 作为 MCP 服务器的传输层。当前集成有许多应用场景。其中最有趣的之一是支持 Security Copilot KQL 技能的开发、测试和部署。
概述(AI 翻译)
一台基于Python的MCP服务器,使用FastMCP库,通过Azure身份认证与Microsoft Security Copilot和Microsoft Sentinel集成。
概述
该项目实现了一个MCP服务器,支持:
- 对 Microsoft Sentinel 运行 KQL 查询
- 上传/更新 Microsoft Security Copilot 技能集/插件
- 在 Microsoft Security Copilot 中运行提示和技能
服务器作为开发环境与 Microsoft Security Copilot 之间的桥梁,支持技能和插件的测试、部署和执行。它使用 SSE 作为 MCP 服务器的传输层。 当前集成有许多用例。其中最有趣的之一是支持安全副驾驶KQL技能的开发、测试和部署。
特色
- Sentinel 集成:在你的 Sentinel 工作区执行 KQL 查询
- 安全副驾驶管理:
- 列出现有技能集/插件
- 上传或更新现有技能/插件
- 在安全副驾驶中运行提示或技能
- 认证支持:多种认证方法,包括交互式浏览器、客户端秘密和托管身份
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Security Copilot and Sentinel MCP Server
A Python-based MCP server using FastMCP library that provides integration with Microsoft Security Copilot and Microsoft Sentinel using Azure Identity Authentication.
Overview
This project implements an MCP server that enables:
- Running KQL queries against Microsoft Sentinel
- Uploading/Updating Microsoft Security Copilot skillsets/plugins
- Running prompts and skills in Microsoft Security Copilot
The server acts as a bridge between development environments and Microsoft Security Copilot, allowing for testing, deployment, and execution of skills and plugins. It uses SSE as transport layer for the MCP server. There are many use cases for the current integration. One of the most interesting ones is to support the development, test and deployment of Security Copilot KQL Skills.
Features
- Sentinel Integration: Execute KQL queries against your Sentinel workspace
- Security Copilot Management:
- List existing skillsets/plugins
- Upload new or update existing skillsets/plugins
- Run prompts or skills within Security Copilot
- Authentication Support: Multiple authentication methods including interactive browser, client secret, and managed identity
Roadmap
The next features will include:
- Promptbook test and Update
- Run Advance Hunting queries in Defender XDR
Prerequisites
- Python 3.8+
- Microsoft Sentinel workspace
- Microsoft Security Copilot access
- Appropriate Azure permissions for Sentinel and Security Copilot
Installation
-
Clone the repository:
git clone https://github.com/jguimera/SecurityCopilotMCPServer.git cd SecurityCopilotMCPServer -
Install dependencies:
pip install -r requirements.txt -
Create a
.envfile with the following configuration:#Add App Reg to use ClientID and Secret authentication #AZURE_TENANT_ID=your_tenant_id #AZURE_CLIENT_ID=your_client_id #AZURE_CLIENT_SECRET=your_client_secret SENTINEL_SUBSCRIPTION_ID=your_subscription_id SENTINEL_RESOURCE_GROUP=your_resource_group SENTINEL_WORKSPACE_NAME=your_workspace_name SENTINEL_WORKSPACE_ID=your_workspace_id #Authentication Options: interactive, client_secret AUTHENTICATION_TYPE=interactive
Usage
Starting the Server
Run the MCP server:
python server.py
To run tests before starting the server:
python server.py --run-tests
Available Tools
The MCP server provides the following tools:
- run_sentinel_query: Execute KQL queries in Sentinel
- get_skillsets: List skillsets in Security Copilot
- upload_plugin: Upload or update a skillset/plugin
- run_prompt: Run a prompt or skill in Security Copilot
MCP Client Config for Cursor
You can use this MCP server from the Client of your choice. In this repo you can find intructions and config files for Cursor.
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →