beginner⏱️ 24-34 minutes📅 Updated June 2026

Step-by-step guide to integrate Alibaba Cloud AnalyticDB for PostgreSQL MCP server with Claude Desktop App. Includes execute_sql and analyze_table_statistics.

Alibaba Cloud AnalyticDB for PostgreSQL + Claude Desktop App: Complete MCP Integration

Alibaba Cloud AnalyticDB for PostgreSQL is a MCP server that An MCP server to connect to AnalyticDB for PostgreSQL instances, query and analyze data..

When integrated with Claude Desktop App, you can:

  • Execute SQL queries (SELECT, DML, DDL) on PostgreSQL
  • Get comprehensive table statistics and metadata
  • Retrieve and analyze query execution plans

This guide provides step-by-step instructions to set up Alibaba Cloud AnalyticDB for PostgreSQL in Claude Desktop App, including configuration, examples, and troubleshooting.

What You'll Achieve

After completing this setup:

  • Alibaba Cloud AnalyticDB for PostgreSQL will be fully integrated and operational
  • You can use Alibaba Cloud AnalyticDB for PostgreSQL tools directly in Claude Desktop App
  • All Alibaba Cloud AnalyticDB for PostgreSQL capabilities will be available for your workflows
  • Access to 6 different tools

Prerequisites

Before starting, ensure you have:

  • AnalyticDB for PostgreSQL host endpoint
  • Database username
  • Database password
  • Database name
  • Claude Desktop App installed and configured
  • Compatible operating system (Windows, macOS, Linux)

Installation

Step 1: Install Alibaba Cloud AnalyticDB for PostgreSQL

Configuration

Step 2: Configure Claude Desktop App

  1. Locate your configuration file:

    • Windows: %APPDATA%\\Claude\\claude_desktop_config.json
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Linux: ~/.config/Claude/claude_desktop_config.json
  2. Add server configuration:

{
  "mcpServers": {
    "alibaba-cloud-analyticdb-for-postgresql": {
      "command": "alibaba cloud analyticdb for postgresql",
      "args": [""],
      "env": {
        "ADBPG_HOST": "adbpg-cluster-123.ads.aliyuncs.com",
        "ADBPG_PORT": "5432",
        "ADBPG_USER": "analytics_user",
        "ADBPG_PASSWORD": "secure_password123",
        "ADBPG_DATABASE": "analytics_db",
        "GRAPHRAG_ENABLED": "true",
        "LLM_MEMORY_SERVICE_URL": "https://memory-service.example.com"
      }
    }
  }
}

  1. Restart Claude Desktop App

Completely quit and restart Claude Desktop App to load the new configuration.

Examples

Once configured, you can use Alibaba Cloud AnalyticDB for PostgreSQL in Claude Desktop App:

Advanced Analytics Pipeline

undefined

Ask Claude Desktop App: "Analyze customer behavior patterns and generate insights"

Expected Result: undefined

Knowledge Graph Construction

undefined

Ask Claude Desktop App: "Create knowledge graph connecting customers, products, and transactions"

Expected Result: undefined

Intelligent Memory Management

undefined

Ask Claude Desktop App: "Store and retrieve conversation history for personalized responses"

Expected Result: undefined

Testing Your Setup

  1. Start a new conversation in Claude Desktop App
  2. Ask Claude Desktop App to list available tools
  3. Try using Alibaba Cloud AnalyticDB for PostgreSQL functionality

Test prompts:

  • "Can you list the available tools from Alibaba Cloud AnalyticDB for PostgreSQL?"
  • "Please use Alibaba Cloud AnalyticDB for PostgreSQL to {example_task}"

Troubleshooting

Common Issues

Server Not Appearing

Symptoms: No server in interface, Tools not available

Cause: Configuration file error or server installation issue

Solution:

  • Validate JSON syntax using online validator
  • Check configuration file location
  • Verify server installation
  • Restart Claude Desktop completely

Server Error on Startup

Symptoms: Error messages in logs, Server fails to start

Cause: Missing dependencies or environment variables

Solution:

  • Check server requirements are met
  • Verify environment variables are set
  • Check system logs for detailed errors

Alibaba Cloud AnalyticDB for PostgreSQL not appearing in Claude Desktop App

Symptoms: Server not listed, Tools not available

Cause: Configuration or installation issue

Solution:

  • Verify configuration syntax
  • Check Alibaba Cloud AnalyticDB for PostgreSQL installation
  • Restart Claude Desktop App
  • Check logs for error messages

Next Steps

Now that Alibaba Cloud AnalyticDB for PostgreSQL is integrated with Claude Desktop App:

  • Explore all Alibaba Cloud AnalyticDB for PostgreSQL capabilities through Claude Desktop App
  • Check out other MCP servers that work with Claude Desktop App
  • Join the MCP community for tips and support
  • Consider contributing to Alibaba Cloud AnalyticDB for PostgreSQL development

Need Help?

Related Resources

More Integrations

Explore other MCP servers that work with Claude Desktop App

Need Help?

Join the MCP community for support and discussions

Alibaba Cloud AnalyticDB for PostgreSQL + Claude Desktop App: MCP Setup Guide (2026)