Polardbx MCP Server

A Model Context Protocol (MCP) server which provides tools and resources, allowing AI agent to interact with Alibaba cloud PolarDB-X databases.

Local serverstdio

What is the Polardbx MCP Server?

A Model Context Protocol (MCP) server which provides tools and resources, allowing AI agent to interact with Alibaba cloud PolarDB-X databases.

The short version

  1. Install dependencies and build: bash npm install npm run build 3. Configure the PolarDB-X connection in environment variable file .env: POLARDB_X_HOST=your_database_host POLARDB_X_PORT=your_database_port POLARDB_X_USER=your_database_user POLARDB_X_PASSWORD=your_database_password POLARDB_X_DATABASE=your_database_name

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
queryRun a SQL query on PolarDB-X

How to install the Polardbx MCP Server

{
  "mcpServers": {
    "alibabacloud-polardbx": {
      "command": "npx",
      "args": ["-y", "polardbx-mcp"],
      "env": {
        "POLARDB_X_HOST": "your-value",
        "POLARDB_X_PORT": "your-value",
        "POLARDB_X_USER": "your-value",
        "POLARDB_X_PASSWORD": "your-value",
        "POLARDB_X_DATABASE": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
POLARDB_X_HOSTEndpoint or connection string the server talks to.Optional
POLARDB_X_PORTConfiguration value read at startup.Optional
POLARDB_X_USERConfiguration value read at startup.Optional
POLARDB_X_PASSWORDConfiguration value read at startup.Optional
POLARDB_X_DATABASEConfiguration value read at startup.Optional

Example prompts to try

  • “Use Polardbx to query.”
  • “Use Polardbx to Tools.”
  • “Use Polardbx to Resources.”

Frequently asked questions

It provides three tools: `query` to run SQL, `inspect database status` to check database state, and `show all commands` to list all PolarDB-X SQL commands.