SSyncDev

Redshift Utils MCP Server

This project implements a Model Context Protocol (MCP) server designed specifically to interact with Amazon Redshift databases.

Local serverstdioPython

What is the Redshift Utils MCP Server?

This project implements a Model Context Protocol (MCP) server designed specifically to interact with Amazon Redshift databases.

What you get

  • ✨ Secure Redshift Connection (via Data API): Connects to your Amazon Redshift cluster using the AWS Redshift Data API via Boto3, leveraging AWS Secrets Manager for credentials managed securely via environment variables
  • πŸ” Schema Discovery: Exposes MCP resources for listing schemas and tables within a specified schema
  • πŸ“Š Metadata & Statistics: Provides a tool (handle_inspect_table) to gather detailed table metadata, statistics (like size, row counts, skew, stats staleness), and maintenance status
  • πŸ“ Read-Only Query Execution: Offers a secure MCP tool (handle_execute_ad_hoc_query) to execute arbitrary SELECT queries against the Redshift database, enabling data retrieval based on LLM requests
  • πŸ“ˆ Query Performance Analysis: Includes a tool (handle_diagnose_query_performance) to retrieve and analyze the execution plan, metrics, and historical data for a specific query ID
  • πŸ” Table Inspection: Provides a tool (handle_inspect_table) to perform a comprehensive inspection of a table, including design, storage, health, and usage

Configuration and credentials

Software: * Python 3.10+ * uv (recommended package manager) or pip Infrastructure & Access: * Access to an Amazon Redshift cluster. * An AWS account with permissions to use the Redshift Data API (redshift-data:*) and access the specified Secrets Manager secret (secretsmanager:GetSecretValue). * A Redshift user account whose credentials are stored in AWS Secrets Manager. This user needs

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
handle_check_cluster_healthPerforms a health assessment of the Redshift cluster using a set of diagnostic SQL scripts.
handle_diagnose_locksIdentifies active lock contention and blocking sessions in the cluster.
handle_diagnose_query_performanceAnalyzes a specific query's execution performance, including plan, metrics, and historical data.
handle_execute_ad_hoc_queryExecutes an arbitrary SQL query provided by the user via Redshift Data API. Designed as an escape hatch.
handle_get_table_definitionRetrieves the DDL (Data Definition Language) statement (SHOW TABLE) for a specific table.
handle_inspect_tableRetrieves detailed information about a specific Redshift table, covering design, storage, health, and usage.
handle_monitor_workloadAnalyzes cluster workload patterns over a specified time window using various diagnostic scripts.

How to install the Redshift Utils MCP Server

{
  "mcpServers": {
    "redshift-utils": {
      "command": "uvx",
      "args": ["redshift-utils-mcp"],
      "env": {
        "REDSHIFT_CLUSTER_ID": "your-value",
        "REDSHIFT_DATABASE": "your-value",
        "REDSHIFT_SECRET_ARN": "your-value",
        "AWS_REGION": "your-value",
        "AWS_PROFILE": "your-value",
        "AWS_DEFAULT_REGION": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

Software: * Python 3.10+ * uv (recommended package manager) or pip Infrastructure & Access: * Access to an Amazon Redshift cluster. * An AWS account with permissions to use the Redshift Data API (redshift-data:*) and access the specified Secrets Manager secret (secretsmanager:GetSecretValue). * A Redshift user account whose credentials are stored in AWS Secrets Manager. This user needs

VariableDescriptionRequired
REDSHIFT_CLUSTER_IDConfiguration value read at startup.Optional
REDSHIFT_DATABASEConfiguration value read at startup.Optional
REDSHIFT_SECRET_ARNCredential the server authenticates with.Yes
AWS_REGIONConfiguration value read at startup.Optional
AWS_PROFILEConfiguration value read at startup.Optional
AWS_DEFAULT_REGIONConfiguration value read at startup.Optional

Example prompts to try

  • β€œUse Redshift Utils MCP to handle check cluster health.”
  • β€œUse Redshift Utils MCP to handle diagnose locks.”
  • β€œUse Redshift Utils MCP to handle diagnose query performance.”

Frequently asked questions

This project implements a Model Context Protocol (MCP) server designed specifically to interact with Amazon Redshift databases. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.