alibabacloud-observability
MCP server from aliyun/alibabacloud-observability-mcp-server
claude mcp add --transport stdio aliyun-alibabacloud-observability-mcp-server npx -y aliyun-alibabacloud-observability-mcp-server \ --env ALIBABA_CLOUD_ACCESS_KEY_ID="Your Alibaba Cloud AccessKey ID" \ --env ALIBABA_CLOUD_SECURITY_TOKEN="STS token if using temporary credentials (optional)" \ --env ALIBABA_CLOUD_ACCESS_KEY_SECRET="Your Alibaba Cloud AccessKey Secret"
How to use
This MCP server provides a unified interface to query and analyze Alibaba Cloud Observable data across multiple products such as SLS (logs), ARMS (application monitoring), CloudMonitor (cloud metrics), and Prometheus-compatible metrics. It exposes natural language driven tools that map queries to standardized tool invocations, enabling agents to retrieve structured results from logs, traces, metrics, and events without writing explicit queries. You can leverage the included PaaS tools for model-driven data access, the IaaS tools for legacy SLS/CMS APIs, and the Shared tools for workspace and domain management. To use it, start the MCP server via the configured command and interact with the available tools through the provided interfaces. The server’s capabilities include entity discovery, data set management, query of metrics/logs/traces/events, computational analyses (e.g., anomaly detection, forecasting), and cross-service data collaboration, all accessible via natural language prompts.
How to install
Prerequisites:
- Node.js installed (for npx-based installation) or a runtime compatible with the chosen command
- Access to Alibaba Cloud credentials (AccessKey, Secret, and optional STS token) with RAM permissions for the Observability resources
Installation steps:
- Install prerequisites and ensure you have npm/npx available.
- Install and run the MCP server via npx using the package name: aliyun-alibabacloud-observability-mcp-server
Example commands:
-
Ensure environment variables (optional if using default credentials chain): export ALIBABA_CLOUD_ACCESS_KEY_ID=your-access-key-id export ALIBABA_CLOUD_ACCESS_KEY_SECRET=your-access-key-secret export ALIBABA_CLOUD_SECURITY_TOKEN=your-sts-token-optional
-
Run the MCP server (via npx): npx -y aliyun-alibabacloud-observability-mcp-server
-
If you prefer to pin a version (optional): npx -y @aliyun/aliyun-alibabacloud-observability-mcp-server@<version>
Notes:
- Ensure network access to Alibaba Cloud services and that the provided credentials have the necessary RAM permissions.
- If you encounter authentication issues, verify environment variable precedence and the default credentials chain as described in the OBSERVER documentation.
Additional notes
Tips and common issues:
- Permissions: You must configure AccessKey and RAM permissions for Observability resources to avoid access errors.
- Credentials: If you don’t pass credentials explicitly, the server will attempt to use the default credentials chain (environment variables, STS token) as described in the README. Ensure the environment variables are set correctly when not providing credentials directly.
- Regions: Some commands require regionId; ensure you specify the correct Alibaba Cloud region in your queries.
- Version differences: The project mentions multiple branches (0.3.x vs 1.x.x) with feature differences. If migrating from an older version, confirm compatibility and tool behavior differences.
- Security: The server validates inputs and uses Alibaba Cloud AccessKey-based authentication. Do not expose secrets in logs or command histories.
Related MCP Servers
mcp-vegalite
MCP server from isaacwasserman/mcp-vegalite-server
github-chat
A Model Context Protocol (MCP) for analyzing and querying GitHub repositories using the GitHub Chat API.
nautex
MCP server for guiding Coding Agents via end-to-end requirements to implementation plan pipeline
pagerduty
PagerDuty's official local MCP (Model Context Protocol) server which provides tools to interact with your PagerDuty account directly from your MCP-enabled client.
futu-stock
mcp server for futuniuniu stock
mcp -boilerplate
Boilerplate using one of the 'better' ways to build MCP Servers. Written using FastMCP