Token导航 LogoToken导航TokenDH.com
Elastic Security MCP logo
安全风控stdio官方级别未说明来源级核验

Elastic Security MCP

MCP Server

Elastic Security的MCP服务器实现,支持检测规则的创建、启用、禁用、列表和模板化。

工具数

6

提示词数

0

GitHub Stars

0

资源数

0
安全分析PythonClaudeClaude DesktopClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

filipzag

提供方

filipzag

最后核验

2026/5/17 20:21

运行时

Python

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

python3 -m venv .venv

详细介绍

Elastic Security MCP Server

An MCP server implementation for Elastic Security, allowing creation, enabling, disabling, listing, and templating of detection rules.

Features

  • List Rules: Retrieve detection rule summaries (id, name, MITRE TTPs, log source, query type) with automatic pagination and KQL filtering.
  • Get Rule: Fetch the full details of a single detection rule by ID.
  • Upload Rule: Create or update detection rules using JSON definitions.
  • Enable Rule: Enable a specific detection rule.
  • Disable Rule: Disable a specific detection rule.
  • Get Detection Template: Returns a predefined EQL detection rule JSON template (APT28 Linux Timestomping) for use as a starting point when creating new rules.

Prerequisites

  • Python 3.12+
  • Access to an Elastic Stack (Kibana) instance.

Installation

  1. Clone the repository:
    git clone 
    cd elastic-security-MCP
  1. Create and activate a virtual environment:
    python3 -m venv .venv
    source .venv/bin/activate
  1. Install dependencies:
    pip install -r requirements.txt

Configuration

Set the following environment variables. You can creating a .env file in the project root:

KIBANA_URL=https://your-kibana-url:5601
# Authentication (Choose one method)
ELASTIC_API_KEY=your-api-key
# OR
ELASTIC_USERNAME=your-username
ELASTIC_PASSWORD=your-password

Usage

Running Locally

Run the server using the compiled Python environment:

python server.py

The server will run on standard input/output (stdio), ready to be connected to an MCP client (like Claude Desktop or a custom client).

Running with Docker

  1. Build the image:
    docker build -t elastic-security-mcp .
  1. Run the container:
    docker run -i --rm \
      -e KIBANA_URL="https://your-kibana-url" \
      -e ELASTIC_API_KEY="your-api-key" \
      elastic-security-mcp

Running with Docker Compose

  1. Ensure your .env file is configured.
  2. Run:
    docker-compose up --build

Testing

Unit tests are included to verify the logic (mocking external API calls).

Run the tests:

python test_server.py

目录标签

目录标签

安全分析PythonClaude检测规则管理本地部署ElasticStack威胁检测MCP服务器

支持客户端

Claude DesktopClaude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Python

工具数量(toolCount,工具数)

6

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP