Skip to main content

Alibaba Cloud SLS MCP Proxy

简体中文 | English

Connect your MCP client to Alibaba Cloud Simple Log Service (SLS).

Requirements

  • Python 3.10 or later and uv.
  • Alibaba Cloud credentials with permission to access the SLS resources you need.
  • Alibaba Cloud CLI if using a CLI profile.

Quick start

Configure an Alibaba Cloud CLI profile, then add the following to your MCP client configuration. Replace default with your profile name:

{
  "mcpServers": {
    "alibabacloud-sls": {
      "command": "uvx",
      "args": [
        "alibabacloud-sls-mcp-proxy@latest",
        "--profile",
        "default"
      ]
    }
  }
}

This uses stdio mode: your MCP client starts the proxy automatically. Configuration locations vary by client; follow your client's MCP setup guide. If it cannot find uvx or aliyun, ensure both are available to the client, or use the absolute path to uvx in the configuration.

Use environment credentials instead

Omit --profile and its value from the configuration above, and set these variables in the environment that starts the proxy:

  • ALIBABA_CLOUD_ACCESS_KEY_ID
  • ALIBABA_CLOUD_ACCESS_KEY_SECRET
  • ALIBABA_CLOUD_SECURITY_TOKEN (required for temporary credentials)

Choose either a CLI profile or environment credentials. When using a profile, remove the credential variables above; when using environment credentials, also remove any ALIBABA_CLOUD_PROFILE setting.

Connect over local HTTP

If your client requires an HTTP URL, run this command and keep it running:

uvx alibabacloud-sls-mcp-proxy@latest --profile default --transport http --port 8080

Configure your client to use Streamable HTTP at http://127.0.0.1:8080/mcp. Only clients on the same machine can connect.

Common options

Option Purpose Default
--profile Alibaba Cloud CLI profile name None
--transport stdio or http stdio
--port Local HTTP port 8080
--endpoint SLS MCP service endpoint sls.aliyuncs.com

For all options, run:

uvx alibabacloud-sls-mcp-proxy@latest --help

Credential safety

  • Use a CLI profile or your client's secure environment configuration. Do not put credentials in shared configuration, command lines, or source control.
  • Grant only the permissions needed for your SLS resources.
  • Use HTTPS when specifying a remote service endpoint.

Troubleshooting

Problem Action
Command not found Install uv and, for profile mode, Alibaba Cloud CLI. Ensure your MCP client can find them.
Profile missing or unreadable Check the name with aliyun configure list and update the profile using Alibaba Cloud CLI.
Credential settings conflict or are incomplete Choose one credential method. For environment credentials, provide both AccessKey variables and a token if using temporary credentials.
Authentication or permission error Check credential validity, renew expired temporary credentials, and verify permissions for the requested SLS resources.
Cannot connect to the local HTTP URL Keep the proxy running on the same machine and check that the client URL matches the configured port.

When requesting help, include the error message and request ID if available. Remove credentials and other sensitive information before sharing.

Metadata

Release files for alibabacloud-sls-mcp-proxy 0.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for alibabacloud-sls-mcp-proxy 0.3.3
File Size Uploaded Provenance
alibabacloud_sls_mcp_proxy-0.3.3.tar.gz 15.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for alibabacloud-sls-mcp-proxy 0.3.3
File Interpreter ABI Platform
alibabacloud_sls_mcp_proxy-0.3.3-py3-none-any.whl Python 3 none any Details

Total release size: 29.5 kB

Release files / alibabacloud_sls_mcp_proxy-0.3.3.tar.gz

Download URL alibabacloud_sls_mcp_proxy-0.3.3.tar.gz
Size 15.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8dde4c6b7fcfa1bc7e23b97f4a76efd954408d69dbdb28e9a9c50c016719850a
BLAKE2b-256 checksum
How to use checksums
264234722f366dda4c280af05eff2b2adc7bda4298ff926ef896fb82344d0cc7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.13

Release files / alibabacloud_sls_mcp_proxy-0.3.3-py3-none-any.whl

Download URL alibabacloud_sls_mcp_proxy-0.3.3-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3119f1fdc0dfe9b9b972ebeb437c71e4fcf4f6ed4600ad51c26e1e9d9932063a
BLAKE2b-256 checksum
How to use checksums
06513b81dfe56b9bd510f2d8ad02f8fbefea0fcef92a9774ca6a064480008e0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.13

Security for alibabacloud-sls-mcp-proxy 0.3.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page