Back to MCP directory
publicPublicdnsLocal runtime

mackerel-mcp-server

Mackerel监控服务的MCP服务器实现

article

README

🚀 鳕鱼-MCP-服务器

鳕鱼-MCP-服务器是Mackerel监控服务的MCP服务器实现,可用于主机、服务管理,指标监控等,为监控服务提供全面支持。

✨ 主要特性

  • 主机管理:支持主机列表查看、信息获取、状态更新以及主机退役操作。
  • 服务管理:可进行服务列表查看、服务信息获取以及服务角色管理。
  • 指标管理:支持指标发布,以及获取主机和服务的相关指标。
  • 监视器管理:能够对监视器进行列表查看、创建、更新和删除操作。
  • 警报管理:可查看警报列表,并对警报进行关闭操作。
  • 停机时间管理:支持停机时间的列表查看、创建、更新和删除。
  • 通知渠道管理:可进行通知渠道的列表查看、创建和删除。

📦 安装指南

雪豹桌面配置

claude_desktop_config.json 中添加以下内容:

{
    "mcp-mackerel": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/app/mackerel_mcp_server",
        "server.py"
      ],
      "env": {
        "MACKEREL_API_KEY": "XXXXXXXXXXXXXX"
      }
    }
  }
}

🔧 技术细节

要求

  • Python >= 3.12
  • Mackerel API 密钥
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client