Skip to main content

English | 中文

Alibaba Cloud Tair OpenAPI MCP Server

PyPI version Python

MCP server for managing Alibaba Cloud R-KVStore (Tair/Redis) via OpenAPI

Prerequisites

  1. Python >=3.12
  2. Alibaba Cloud credentials with access to Alibaba Cloud R-KVStore services
  3. Cline MCP client (recommended) or other MCP-compatible client

Installation

Option 1: Install from PyPI

pip install alibabacloud-tair-openapi-mcp-server

Option 2: Install from Source with UV

# Install uv if not already installed
curl -LsSf https://astral.sh/uv/install.sh | sh

# Clone and install
git clone https://github.com/aliyun/alibabacloud-tair-mcp-server.git
cd alibabacloud-tair-mcp-server/tair_openapi_mcp_server
uv venv
source .venv/bin/activate
uv pip install -e .

Quick Start

  1. Install the server (using PyPI or UV as shown above)

  2. Configure Cline by adding this to your Cline configuration:

{
  "mcpServers": {
    "tair-openapi": {
      "command": "tair-openapi-mcp-server",
      "args": [],
      "env": {
        "ALIBABA_CLOUD_ACCESS_KEY_ID": "your-access-key-id",
        "ALIBABA_CLOUD_ACCESS_KEY_SECRET": "your-access-key-secret"
      }
    }
  }
}

Replace the credentials with your actual Alibaba Cloud access keys.

Available OpenAPI MCP Tools

Resources

  • describe_regions: List all available regions for Alibaba Cloud Tair instances
  • describe_zones: Query available zones in a region for Tair instances
  • describe_available_resource: Query available instance specifications in a specific zone
  • describe_vpcs: Query VPC (Virtual Private Cloud) list in a region
  • describe_vswitches: Query VSwitch (Virtual Switch) list in a region

Instance Creation

  • create_instance: Create a Redis Open-Source Edition or classic DRAM-based instance
  • create_tair_instance: Create a cloud-native DRAM-based instance

Account Management

  • describe_accounts: Query account information for a Tair instance
  • reset_account_password: Reset the password for a Tair account with security validation

IP Whitelist

  • describe_security_ips: Query IP whitelist configuration for a Tair instance
  • modify_security_ips: Modify IP whitelist for a Tair instance

Configuration Options

Environment Variables

Variable Description Default Required
ALIBABA_CLOUD_ACCESS_KEY_ID Alibaba Cloud Access Key ID - Yes
ALIBABA_CLOUD_ACCESS_KEY_SECRET Alibaba Cloud Access Key Secret - Yes
TAIR_MCP_LOG_LEVEL Log level (DEBUG, INFO, WARNING, ERROR, CRITICAL) INFO No
TAIR_MCP_LOG_FILE Optional log file path - No

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Support

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Metadata

Release files for alibabacloud-tair-openapi-mcp-server 0.1.2

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-tair-openapi-mcp-server 0.1.2
File Size Uploaded
alibabacloud_tair_openapi_mcp_server-0.1.2.tar.gz 10.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for alibabacloud-tair-openapi-mcp-server 0.1.2
File Interpreter ABI Platform
alibabacloud_tair_openapi_mcp_server-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 24.3 kB

Release files / alibabacloud_tair_openapi_mcp_server-0.1.2.tar.gz

Download URL alibabacloud_tair_openapi_mcp_server-0.1.2.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
65ca59ac00420cdbf2be093993383109cdb5c45a900685c38fc1d82035dfee73
BLAKE2b-256 checksum
How to use checksums
a51004965fb2c692723d8c17aedc9fcf77661f61d98bc6d5f74f6d706a2a4b99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7

Release files / alibabacloud_tair_openapi_mcp_server-0.1.2-py3-none-any.whl

Download URL alibabacloud_tair_openapi_mcp_server-0.1.2-py3-none-any.whl
Size 14.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7192e6f38766a1e93884bbaf186852c83979742890fa0b91ae7dc7956991bcad
BLAKE2b-256 checksum
How to use checksums
bc3b218c5bcd21d257df7c49cea21650f7bc603a5a7c2b093ef94876c01e2440
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.1

2 release files

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