Aliyun MCP Server

by nailuoGG

Aliyun MCP Server

This MCP server provides tools for interacting with Aliyun (Alibaba Cloud) services through Claude.

Features

  • Query SLS (Simple Log Service) logs
  • (Future) Manage ECS instances
  • (Future) Deploy serverless functions

Configuration

  1. Build the server:
npm install npm run build

Usage with Claude Desktop

Add the server to your 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": [] } } }

Configuration for Cline

Add the server to your Cline MCP settings file inside VSCode's settings cline_mcp_settings.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": [] } } }

Replace /path/to/aliyun-mcp-server with the actual path to this repository, and provide your Aliyun credentials.

Usage

Once configured, you can ask Claude to query SLS logs:

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

Claude will use the MCP server to execute the query and return the results.

Available Tools

querySLSLogs

Query Aliyun SLS (Simple Log Service) logs.

Parameters:

  • project (required): SLS project name
  • logstore (required): SLS logstore name
  • query (required): SLS query statement
  • from (optional): Start time in milliseconds (defaults to 1 hour ago)
  • to (optional): End time in milliseconds (defaults to now)
  • limit (optional): Maximum number of logs to return (default: 100, max: 1000)
  • offset (optional): Offset for pagination (default: 0)
  • reverse (optional): Whether to return results in reverse order (default: false)

Example:

{ "project": "my-project", "logstore": "my-logstore", "query": "error", "limit": 10 }
-
security - not tested
-
license - not tested
-
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.

A Claude integration tool that enables users to query and analyze Aliyun (Alibaba Cloud) Simple Log Service logs through natural language commands.

  1. Features
    1. Configuration
      1. Usage with Claude Desktop
      2. Configuration for Cline
    2. Usage
      1. Available Tools
        1. querySLSLogs

      Related MCP Servers

      • -
        security
        A
        license
        -
        quality
        A FastMCP-based tool for interacting with Splunk Enterprise/Cloud through natural language. This tool provides a set of capabilities for searching Splunk data, managing KV stores, and accessing Splunk resources
        Last updated -
        24
        Python
        Apache 2.0
        • Apple
      • -
        security
        A
        license
        -
        quality
        A command-line interface and API that allows users to analyze and visualize AWS cloud spending data by enabling Claude to query AWS Cost Explorer through natural language conversations.
        Last updated -
        80
        Python
        MIT License
        • Linux
        • Apple
      • -
        security
        F
        license
        -
        quality
        A natural language interface that allows Claude to execute SQL queries on your local MySQL databases, enabling database interaction using natural language.
        Last updated -
        2
        Python
        • Linux
        • Apple

      View all related MCP servers

      ID: y66zj60uv5