Skip to main content
Glama
nailuoGG

Aliyun MCP Server

by nailuoGG

阿里云MCP服务器

该MCP服务器提供了通过Claude与阿里云服务交互的工具。

特征

  • 查询SLS(简单日志服务)日志

  • (未来)管理 ECS 实例

  • (未来)部署无服务器功能

Related MCP server: CLS MCP Server

配置

  1. 构建服务器:

npm install
npm run build

与 Claude Desktop 一起使用

将服务器添加到您的 claude_desktop_config.json:

{
  "mcpServers": {
    "aliyun": {
      "command": "node",
      "args": ["/path/to/aliyun-mcp-server/build/index.js"],
      "env": {
        "ALIYUN_ACCESS_KEY_ID": "your-access-key-id",
        "ALIYUN_ACCESS_KEY_SECRET": "your-access-key-secret",
        "SLS_ENDPOINT": "cn-hangzhou.log.aliyuncs.com"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

Cline 的配置

将服务器添加到 VSCode 设置cline_mcp_settings.json中的 Cline MCP 设置文件中

{
  "mcpServers": {
    "aliyun": {
      "command": "node",
      "args": ["/path/to/aliyun-mcp-server/build/index.js"],
      "env": {
        "ALIYUN_ACCESS_KEY_ID": "your-access-key-id",
        "ALIYUN_ACCESS_KEY_SECRET": "your-access-key-secret",
        "SLS_ENDPOINT": "cn-hangzhou.log.aliyuncs.com"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

将/path/to/aliyun-mcp-server替换为此存储库的实际路径,并提供您的阿里云凭据。

用法

配置完成后,您可以要求 Claude 查询 SLS 日志:

Query SLS logs from project "my-project" and logstore "my-logstore" with the query "error" for the last hour.

Claude 将使用 MCP 服务器执行查询并返回结果。

可用工具

查询SLSLogs

查询阿里云SLS(简单日志服务)日志。

参数:

  • project (必填):SLS 项目名称

  • logstore (必填):SLS日志库名称

  • query (必需):SLS查询语句

  • from (可选):开始时间(以毫秒为单位)(默认为 1 小时前)

  • to (可选):结束时间(以毫秒为单位)(默认为现在)

  • limit (可选):返回的最大日志数量(默认值:100,最大值:1000)

  • offset (可选):分页偏移量(默认值:0)

  • reverse (可选):是否以相反的顺序返回结果(默认值:false)

例子:

{
  "project": "my-project",
  "logstore": "my-logstore",
  "query": "error",
  "limit": 10
}

Available Tools

1 tool
querySLSLogsC

Query Aliyun SLS (Simple Log Service) logs

ParametersJSON Schema
NameRequiredDescriptionDefault
fromNoStart time in milliseconds (defaults to 1 hour ago)
limitNoMaximum number of logs to return (default: 100, max: 1000)
logstoreYesSLS logstore name
offsetNoOffset for pagination (default: 0)
projectYesSLS project name
queryYesSLS query statement
reverseNoWhether to return results in reverse order (default: false)
toNoEnd time in milliseconds (defaults to now)

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions querying logs but fails to describe key behaviors such as authentication requirements, rate limits, error handling, or the format of returned results, leaving significant gaps for an agent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, direct sentence with no wasted words, making it highly concise and front-loaded. It efficiently communicates the core function without unnecessary elaboration.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of an 8-parameter log querying tool with no annotations and no output schema, the description is insufficient. It lacks details on behavior, results format, and usage context, making it incomplete for effective agent operation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, clearly documenting all 8 parameters with defaults and constraints. The description adds no additional parameter semantics beyond the schema, so it meets the baseline for adequate but not enhanced coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'query' and the resource 'Aliyun SLS (Simple Log Service) logs', making the purpose specific and understandable. However, with no sibling tools mentioned, it lacks explicit differentiation from potential alternatives, though this is not a fault given the context.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives, prerequisites, or context for its application. It merely states what it does without indicating scenarios or constraints for usage.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 1 tool updatev1.0.0
    • First observedquerySLSLogs

TDQS

B3.1/5.0

Scored across 1 tool

Disambiguation5/5

With only one tool, there is no possibility of ambiguity or overlap between tools. The tool's purpose is clearly defined as querying Aliyun SLS logs, making it distinct by default.

Naming Consistency5/5

Since there is only one tool, naming consistency is inherently perfect. The tool name 'querySLSLogs' follows a clear verb_noun pattern, and there are no other tools to compare it against for inconsistency.

Tool Count2/5

A single tool is too few for a server named 'Aliyun MCP Server', which implies broader cloud service functionality. This minimal toolset severely limits the server's scope and utility, making it feel incomplete and underpowered for its apparent purpose.

Completeness2/5

The server appears to target Aliyun cloud services, but with only a log querying tool, there are significant gaps in coverage. Missing are core operations like managing resources (e.g., creating/deleting instances), monitoring, or other SLS functions beyond querying, making the surface severely incomplete.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Enables AI assistants to query and analyze Alibaba Cloud SLS logs using natural language, supporting multiple log sources like Function Compute and ECS. It provides tools for searching logs, performing SQL analysis, and visualizing log distributions directly within Cursor or Claude.
    6
    43 npm
    11
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Provides a suite of 33 tools for interacting with Tencent Cloud Log Service (CLS), enabling log analysis, PromQL metrics queries, and resource management. It allows AI assistants to perform CQL/SQL retrieval, manage alarm strategies, and handle data processing tasks with tiered permission controls.
    24
    6
    Apache 2.0
  • F
    license
    B
    quality
    D
    maintenance
    Enables log analysis, searching, counting, and system metrics retrieval (CPU, memory, disk) via natural language, using 5 tools that can be integrated with Claude Code.
    5
    -
  • A
    license
    Not graded
    quality
    A
    maintenance
    Enables large language models to directly access Tencent Cloud Log Service for log search, metric queries, and alarm management without code.
    271 npm
    14
    Apache 2.0