Get the FREE Ultimate OpenClaw Setup Guide →

alibabacloud-polardb

MCP Servers to access PolarDB.

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio aliyun-alibabacloud-polardb-mcp-server docker run -i aliyun/alibabacloud-polardb-mcp-server:latest

How to use

This MCP server provides access to Alibaba Cloud PolarDB clusters through the PolarDB MCP ecosystem. It supports multiple PolarDB-related endpoints and capabilities, including MySQL-compatible PolarDB (polardb-mysql-mcp-server), PostgreSQL-compatible PolarDB (polardb-postgresql-mcp-server), and PolarDB OpenAPI interactions (polardb-openapi-mcp-server). Once running, you can connect your database tooling and orchestration pipelines to the MCP interface to discover, connect to, and manage your PolarDB clusters, execute queries, and monitor performance metrics. The server exposes MCP endpoints that normalize access to PolarDB resources and enable automated workflows for cluster provisioning, querying, and API interactions. To begin, ensure your environment can reach the running MCP server and you have the necessary PolarDB credentials and endpoints.

How to install

Prerequisites:

  • Docker installed and running on the host
  • Access to Alibaba Cloud PolarDB credentials and cluster endpoints

Installation steps (Docker-based):

  1. Pull and run the MCP server image: docker pull aliyun/alibabacloud-polardb-mcp-server:latest docker run -d --name alibabacloud-polardb-mcp -p 8080:8080 aliyun/alibabacloud-polardb-mcp-server:latest

  2. Configure environment variables as needed (examples):

    • POLARDB_API_KEY
    • POLARDB_API_SECRET
    • POLARDB_ENDPOINT
  3. Verify the server is running: curl http://localhost:8080/v1/status

  4. Connect your MCP clients or tooling to the running endpoint (for example, via the MCP discovery or direct connect to the configured port).

Optional: If you prefer a Node.js or Python deployment, consult the repository's alternative deployment options (if provided) and adapt the docker-based steps accordingly.

Additional notes

Tips and common issues:

  • Ensure network access from your deployment to the PolarDB clusters and the MCP server endpoint.
  • Store API credentials securely (use environment variables or a secret management tool).
  • If using the OpenAPI endpoints, keep track of API version compatibility with your PolarDB clusters.
  • For MySQL- and PostgreSQL-compatible PolarDB, verify compatibility with your application drivers and connection strings.
  • Check logs for authentication or connection errors and confirm that the PolarDB clusters allow access from the MCP server's network range.
  • When updating the MCP image, review breaking changes or parameter changes in the release notes and adjust environment configurations accordingly.

Related MCP Servers

Sponsor this space

Reach thousands of developers