Huntress-MCP-Server

MIT License
1

Integrations

  • Used for managing API credentials and environment configuration for the Huntress API server.

  • Used for installing dependencies and building the Huntress API MCP server.

女猎手 API MCP 服务器

一个模型上下文协议 (MCP) 服务器,提供与 Huntress API 交互的工具。该服务器支持以编程方式访问 Huntress 的功能,包括帐户管理、组织管理、代理管理、事件报告等。

特征

  • 账户信息检索
  • 组织管理
  • 代理管理和监控
  • 事件报告访问
  • 摘要报告生成
  • 账单报告访问
  • 内置速率限制(每分钟 60 个请求)
  • 错误处理和响应格式

安装

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装 Huntress API MCP 服务器:

npx -y @smithery/cli install huntress-mcp-server --client claude

手动安装

  1. 克隆存储库
  2. 安装依赖项:
npm install
  1. 根据.env.example创建.env文件:
HUNTRESS_API_KEY=your_api_key_here HUNTRESS_API_SECRET=your_api_secret_here
  1. 构建服务器:
npm run build

可用工具

账户管理

  • get_account_info :获取当前账户的信息

组织管理

  • list_organizations :列出帐户中的组织
  • get_organization :获取特定组织的详细信息

代理管理

  • list_agents :列出帐户中的代理
  • get_agent :获取特定代理的详细信息

事故报告

  • list_incident_reports :列出事件报告
  • get_incident_report :获取特定事件报告的详细信息

摘要报告

  • list_summary_reports :列出摘要报告
  • get_summary_report :获取特定摘要报告的详细信息

账单报告

  • list_billing_reports :列出帐单报告
  • get_billing_report :获取特定账单报告的详细信息

配置

服务器需要以下环境变量:

  • HUNTRESS_API_KEY :您的 Huntress API 密钥
  • HUNTRESS_API_SECRET :您的 Huntress API 密钥

这些可以从您的 Huntress 帐户(位于<your_account_subdomain>.huntress.io的 API Credentials 下获取。

与 MCP 一起使用

将以下配置添加到您的 MCP 设置中:

{ "mcpServers": { "huntress": { "command": "node", "args": ["path/to/huntress-server/build/index.js"], "env": { "HUNTRESS_API_KEY": "your_api_key_here", "HUNTRESS_API_SECRET": "your_api_secret_here" } } } }

速率限制

该服务器实现了 Huntress API 的速率限制,即在滑动窗口上每分钟 60 个请求。这意味着:

  • 任何 60 秒内最多可发出 60 个请求
  • 窗口滑动,因此如果请求 1 在 T0 时发出,请求 60 在 T30 时发出,则请求 61 必须等到 T60

错误处理

服务器处理各种错误情况:

  • API 凭证无效
  • 超出速率限制
  • 请求参数无效
  • API 响应错误

执照

MIT 许可证 - 详情请参阅许可证文件

-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

用于 Huntress API 集成的 MCP 服务器

  1. 特征
    1. 安装
      1. 通过 Smithery 安装
      2. 手动安装
    2. 可用工具
      1. 账户管理
      2. 组织管理
      3. 代理管理
      4. 事故报告
      5. 摘要报告
      6. 账单报告
    3. 配置
      1. 与 MCP 一起使用
        1. 速率限制
          1. 错误处理
            1. 执照

              Related MCP Servers

              • A
                security
                A
                license
                A
                quality
                The MCP server provides an interface to the Datadog API, enabling seamless management of incidents, monitoring, logs, dashboards, metrics, traces, and hosts. Its extensible design allows easy integration of additional Datadog APIs for future expansions.
                Last updated -
                14
                322
                36
                TypeScript
                Apache 2.0
                • Apple
              • A
                security
                F
                license
                A
                quality
                An MCP server implementation that enables interaction with the Unstructured API, providing tools to list, create, update, and manage sources, destinations, and workflows.
                Last updated -
                39
                25
                • Apple

              View all related MCP servers

              ID: hry99k6xc2