Alibaba Cloud Observability MCP Server (Go)

Alibaba Cloud Observability MCP Server (Go)

alibaba-cloud-observability•byaliyun

A Go implementation of the Alibaba Cloud Observability MCP Server that provides AI models with structured access to Alibaba Cloud Log Service (SLS) and CloudMonitor (CMS).

License: Not specified•Runtime: Awaiting documentation review•Category: cloud devops

WHAT IT DOES

  • •Provides structured data access to Alibaba Cloud SLS and CMS for AI models over MCP.
  • •Supports stdio, SSE, and streamable-http transport modes.
  • •Offers modular tool sets organized into PaaS (CloudMonitor 2.0), IaaS (direct SLS/CMS access), and Shared.
  • •Includes AI tools such as natural language to SQL/SPL conversion and natural language data query.

BEST FOR

  • •Querying Alibaba Cloud SLS logs and CMS monitoring data from MCP-compatible AI tools.
  • •Analyzing time-series data with statistical computation, trend analysis, and flexible time expressions.
  • •Converting natural language requests into SLS SQL or SPL queries.

ABOUT ALIBABA-CLOUD-OBSERVABILITY

Alibaba Cloud Observability MCP Server (Go) is cataloged as an MCP server attributed to aliyun. A Go implementation of the Alibaba Cloud Observability MCP Server that provides AI models with structured access to Alibaba Cloud Log Service (SLS) and CloudMonitor (CMS). It is categorized under cloud devops. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Alibaba Cloud Observability MCP Server (Go) are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which transport modes does the server support?

It supports stdio, SSE, and streamable-http transport modes.

Which Alibaba Cloud services does the server provide access to?

It provides access to Alibaba Cloud Log Service (SLS) and CloudMonitor (CMS).

上游原版 README

在 GitHub 查看同一版本原文

README.md · 0d3e01ada23e · 采集于 2026-11-13 08:42:22 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

阿里云可观测 MCP Server(Go 版)

中文 English


📌 重要提示

本项目已使用 Go 语言重构。如需使用原 Python 版本,请访问 v1 目录:

  • 📖 v1/README.md - Python 版本文档
  • 📦 Python 版本通过 pip install mcp-server-aliyun-observability 安装

阿里云可观测 MCP Server 的 Go 语言实现,为 AI 模型提供对阿里云日志服务(SLS)和云监控(CMS)的结构化数据访问能力。基于 Model Context Protocol 协议,可与 Cursor、Kiro、Cline、Windsurf 等 AI 工具无缝集成。

特性

  • 支持 stdio、SSE、streamable-http 三种传输模式
  • 模块化工具集架构:PaaS(云监控 2.0)、IaaS(SLS/CMS 直接访问)、Shared
  • 灵活的时间表达式解析:相对时间、绝对时间戳、Grafana 风格、预设关键词
  • 时序数据对比分析:统计计算、趋势分析、差异评分
  • 结构化错误处理:英文错误描述和解决方案建议
  • 稳定性保障:重试(指数退避)、熔断器、优雅关闭
  • 结构化 JSON 日志(slog)
  • 单一二进制文件,零运行时依赖

快速开始

下载与安装

从 Releases 页面下载对应平台的二进制文件:

# Linux amd64
wget https://github.com/aliyun/alibabacloud-observability-mcp-server/releases/latest/download/alibabacloud-observability-mcp-server-linux-amd64.tar.gz
tar -xzf alibabacloud-observability-mcp-server-linux-amd64.tar.gz

# macOS arm64 (M1/M2)
wget https://github.com/aliyun/alibabacloud-observability-mcp-server/releases/latest/download/alibabacloud-observability-mcp-server-darwin-arm64.tar.gz
tar -xzf alibabacloud-observability-mcp-server-darwin-arm64.tar.gz

解压后包含:

  • alibabacloud-observability-mcp-server - 可执行文件
  • config.yaml - 默认配置文件

配置凭证

# 设置阿里云 AccessKey
export ALIBABA_CLOUD_ACCESS_KEY_ID=<your_access_key_id>
export ALIBABA_CLOUD_ACCESS_KEY_SECRET=<your_access_key_secret>

AccessKey 获取方式:阿里云 AccessKey 管理

启动服务

# 以 stdio 模式启动(MCP 客户端直接调用)
./alibabacloud-observability-mcp-server start --stdio

# 以网络模式启动(默认 transport 在 config.yaml 中配置)
./alibabacloud-observability-mcp-server start --config config.yaml

CLI 命令

# 查看版本信息
./alibabacloud-observability-mcp-server version

# 列出所有已注册工具
./alibabacloud-observability-mcp-server tools

从源码构建

git clone https://github.com/aliyun/alibabacloud-observability-mcp-server.git
cd alibabacloud-observability-mcp-server
make build

配置

配置采用两层结构:

  1. config.yaml - 服务器配置(传输模式、日志、网络等)
  2. .env 文件或环境变量 - 凭证和运行时参数

详细的配置项说明请参考 config.yaml 中的注释。

AI 工具集成

streamable-http 模式(推荐)

  1. 配置 config.yaml(设置 server.transport: streamable-http)
  2. 启动服务:./bin/alibabacloud-observability-mcp-server start
  3. 配置 mcp.json:
{
  "mcpServers": {
    "alibaba_cloud_observability": {
      "url": "http://localhost:8080"
    }
  }
}

stdio 模式

{
  "mcpServers": {
    "alibaba_cloud_observability": {
      "command": "./bin/alibabacloud-observability-mcp-server",
      "args": ["start", "--stdio"],
      "env": {
        "ALIBABA_CLOUD_ACCESS_KEY_ID": "<your_access_key_id>",
        "ALIBABA_CLOUD_ACCESS_KEY_SECRET": "<your_access_key_secret>"
      }
    }
  }
}

工具集

查看完整工具列表

运行以下命令查看当前注册的所有工具:

./bin/alibabacloud-observability-mcp-server tools

付费功能说明

以下 AI 智能工具每次调用会产生 STAROps 费用:

工具功能
sls_text_to_sql自然语言转 SQL
sls_text_to_spl自然语言转 SPL
sls_sopSLS 智能运维助手
cms_natural_language_query自然语言数据查询

计费详情查看 STAROps 计费说明。如不需要 AI 能力,可在 config.yaml 的 enabled_tools 中仅启用免费工具。

权限要求

服务权限文档适用工具
日志服务 (SLS)SLS 权限sls_*
应用实时监控 (ARMS)ARMS 权限umodel_*
云监控 (CMS)CMS 权限cms_*

特殊权限:使用 AI 智能工具(如 sls_text_to_sql、cms_natural_language_query)需要授予 CMS 的 cms:CreateChat、cms:CreateThread 权限。

时间表达式

所有数据查询工具支持灵活的时间范围格式:

格式示例
相对预设last_5m、last_1h、last_1d
相对时间now()-1h、now-30m
Grafana 风格now-15m~now-5m、now/d、now-1d/d
绝对时间戳1718451045(秒)、1718451045000(毫秒)
日期时间字符串2024-01-01 00:00:00、2024-01-01T00:00:00Z

项目结构

├── cmd/server/          # CLI 入口
├── pkg/
│   ├── client/          # SLS/CMS 客户端
│   ├── config/          # 配置管理
│   ├── server/          # MCP Server 核心
│   └── toolkit/         # 工具集(PaaS/IaaS/Shared)
└── v1/                  # Python 版本

安全建议

  • 服务不存储 AccessKey,仅在运行时用于 API 调用
  • SSE/HTTP 模式下需自行做好访问控制
  • 建议部署在内网或 VPC,避免暴露公网
  • 推荐使用函数计算 (FC) 部署,仅 VPC 内访问

Skill 自动化部署

本项目提供 AI Agent Skill,支持通过自然语言指令完成部署、启动和更新。

安装 Skill

方式一:npx skills add(推荐)

由 Vercel Labs 维护的通用 skill 安装器,支持 69+ 种 coding agents:

# 全局安装(所有项目可用)
npx skills add aliyun/alibabacloud-observability-mcp-server

# 项目级安装(仅当前项目可用)
npx skills add aliyun/alibabacloud-observability-mcp-server --local

方式二:curl(无需 Node.js)

# 下载并安装 skill 到 ~/.claude/skills/
curl -fsSL https://raw.githubusercontent.com/aliyun/alibabacloud-observability-mcp-server/master/skills/deploy-observability/SKILL.md -o ~/.claude/skills/deploy-observability/SKILL.md

方式三:从项目仓库复制

如果你已经克隆了本项目:

# 全局安装
cp skills/deploy-observability/SKILL.md ~/.claude/skills/deploy-observability/

# 或项目级安装(在项目根目录下)
cp skills/deploy-observability/SKILL.md .claude/skills/deploy-observability/

使用 Skill

安装 skill 后,将以下内容复制到支持 Skill 的 AI Agent(如 Claude Code)中:

首次部署:

请使用 deploy-observability skill 帮我完成以下操作:
1. 克隆项目到 ~/alibabacloud-observability-mcp-server
2. 下载依赖并构建
3. 复制 .env.example 为 .env,并提示我填写阿里云 AccessKey
4. 让我选择启动模式(stdio / sse / streamable-http)
5. 生成 JSON 配置,供我粘贴到 AI Agent 中使用

项目更新:

请使用 deploy-observability skill 帮我更新项目:
1. 拉取最新代码
2. 检测是否有依赖、配置或环境变量变更
3. 对比工具列表变化,告诉我新增/删除了哪些工具
4. 重新构建并重启服务

详细使用文档请参考 skills/deploy-observability/SKILL.md。

许可证

本项目遵循与原 Python 版相同的许可协议。

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Alibaba Cloud Observability MCP Server (Go) from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/alibaba-cloud-observability)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related cloud devops MCP Servers

Alternative and complementary servers in the same category

View all in cloud devops →
Huawei MCP Server
mcp-server-huaweiclouddeveloper•huaweiclouddeveloper

A Model Context Protocol server built on Huawei Cloud services that enables AI assistants to operate Huawei Cloud resources within conversational workflows, supporting ECS, OBS, GaussDB, and other cloud products.

Repository stats unavailable
Cloud & DevOps
Coolify MCP Server
coolify-mcp-server•wrediam

An MCP server that exposes the Coolify v4.3.1 REST API so AI clients can manage applications, databases, services, servers, deployments, and more.

Repository stats unavailable
Cloud & DevOps

A deprecated Model Context Protocol server for interacting with Kong Konnect APIs, enabling AI assistants to query and analyze Kong Gateway configurations, traffic, and analytics.

Repository stats unavailable
Cloud & DevOps