Redshift Utils▌

by vinodismyname
Redshift Utils offers essential Amazon Redshift database admin tools for health monitoring, query analysis, and automate
Provides Amazon Redshift database administration tools for cluster health monitoring, query performance analysis, workload management, and diagnostic operations through AWS Data API integration with over 40 curated SQL scripts for production database maintenance.
best for
- / Data engineers managing Redshift clusters
- / Database administrators monitoring warehouse performance
- / Data analysts troubleshooting query issues
- / Teams integrating AI with data warehouse operations
capabilities
- / Monitor Redshift cluster health and performance
- / Analyze query execution and workload patterns
- / Execute diagnostic SQL scripts for database maintenance
- / Access database schema and structure information
- / Perform workload management operations
- / Run production database health checks
what it does
Provides Amazon Redshift database administration and monitoring through 40+ curated SQL scripts accessible via AWS Data API. Enables AI assistants to perform cluster health checks, query performance analysis, and diagnostic operations on Redshift warehouses.
about
Redshift Utils is a community-built MCP server published by vinodismyname that provides AI assistants with tools and capabilities via the Model Context Protocol. Redshift Utils offers essential Amazon Redshift database admin tools for health monitoring, query analysis, and automate It is categorized under databases, analytics data.
how to install
You can install Redshift Utils in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
license
MIT
Redshift Utils is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
readme
Redshift Utils MCP Server
<div align="center"> <!-- Container for side-by-side images --> <div style="display: flex; justify-content: center; align-items: center; gap: 20px;"> <img src="docs/banner.png" width="320"> <a href="https://glama.ai/mcp/servers/@vinodismyname/redshift-utils-mcp"> <img width="400" src="https://glama.ai/mcp/servers/@vinodismyname/redshift-utils-mcp/badge" alt="redshift-utils-mcp MCP server" /> </div> <!-- Stats in a clean format --> <p> <a href="https://pypi.org/project/redshift-utils-mcp/"><img src="https://img.shields.io/pypi/v/redshift-utils-mcp.svg" alt="PyPI version"></a> <a href="https://pypi.org/project/redshift-utils-mcp/"><img src="https://img.shields.io/pypi/dm/redshift-utils-mcp.svg" alt="Downloads"></a> <a href="https://pypi.org/project/redshift-utils-mcp/"><img src="https://img.shields.io/pypi/pyversions/redshift-utils-mcp.svg" alt="Python versions"></a> <img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License"> <img src="https://img.shields.io/badge/Language-Python-blue.svg" alt="Python"> </p> </div>Overview
This project implements a Model Context Protocol (MCP) server designed specifically to interact with Amazon Redshift databases.
It bridges the gap between Large Language Models (LLMs) or AI assistants (like those in Claude, Cursor, or custom applications) and your Redshift data warehouse, enabling secure, standardized data access and interaction. This allows users to query data, understand database structure, and monitoring/diagnostic operations using natural language or AI-driven prompts.
This server is for developers, data analysts, or teams looking to integrate LLM capabilities directly with their Amazon Redshift data environment in a structured and secure manner.
Table of Contents
- Redshift Utils MCP Server
Features
- ✨ 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. - 🩺 Cluster Health Check: Offers a tool (
handle_check_cluster_health) to perform a basic or full health assessment of the cluster using various diagnostic queries. - 🔒 Lock Diagnosis: Provides a tool (
handle_diagnose_locks) to identify and report on current lock contention and blocking sessions. - 📊 Workload Monitoring: Includes a tool (
handle_monitor_workload) to analyze cluster workload patterns over a time window, covering WLM, top queries, and resource usage. - 📝 DDL Retrieval: Offers a tool (
handle_get_table_definition) to retrieve theSHOW TABLEoutput (DDL) for a specified table. - 🛡️ Input Sanitization: Utilizes parameterized queries via the Boto3 Redshift Data API client where applicable to mitigate SQL injection risks.
- 🧩 Standardized MCP Interface: Adheres to the Model Context Protocol specification for seamless integration with compatible clients (e.g., Claude Desktop, Cursor IDE, custom applications).
Prerequisites
Software:
- Python 3.10+
uv(recommended package manager) orpip
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 the necessary permissions within Redshift to perform the actions enabled by this server (e.g.,
CONNECTto the database,SELECTon target tables,SELECTon relevant system views likepg_class,pg_namespace,svv_all_schemas,svv_tables, `svv_table_info``). Using a role with the principle of least privilege is strongly recommended. See Security Considerations.
Credentials:
Your Redshift connection details are managed via AWS Secrets Manager, and the server connects using the Redshift Data API. You need:
- The Redshift cluster identifier.
- The database name within the cluster.
- The ARN of the AWS Secrets Manager secret containing the database credentials (username and password).
- The AWS region where the cluster and secret reside.
- Optionally, an AWS profile name if not using default credentials/region.
These details will be configured via environment variables as detailed in the Configuration section.
Installation
Install from PyPI (Recommended)
The easiest way to install the Redshift Utils MCP Server is directly from PyPI:
# Using pip
pip install redshift-utils-mcp
# Using uv (recommended)
uv pip install redshift-utils-mcp
Install from Source
Alternatively, you can install from the source repository:
# Clone the repository
git clone https://github.com/vinodismyname/redshift-utils-mcp.git
cd redshift-utils-mcp
# Install using uv (recommended)
uv sync
# Or install using pip
pip install -e .
Configuration
Set Environment Variables:
This server requires the following environment variables to connect to your Redshift cluster via the AWS Data API. You can set these directly in your shell, using a systemd service file, a Docker environment file, or by creating a .env file in the project's root directory (if using a tool like uv or python-dotenv that supports loading from .env).
Example using shell export:
export REDSHIFT_CLUSTER_ID="your-cluster-id"
export REDSHIFT_DATABASE="your_database_name"
export REDSHIFT_SECRET_ARN="arn:aws:secretsmanager:us-east-1:123456789012:secret:your-redshift-secret-XXXXXX"
export AWS_REGION="us-east-1" # Or AWS_DEFAULT_REGION
# export AWS_PROFILE="your-aws-profile-name" # Optional
Example .env file (see .env.example):
# .env file for Redshift MCP Server configuration
# Ensure this file is NOT committed to version control if it contains secrets. Add it to .gitignore.
REDSHIFT_CLUSTER_ID="your-cluster-id"
REDSHIFT_DATABASE="your_database_name"
REDSHIFT_SECRET_ARN="arn:aws:secretsmanager:us-east-1:123456789012:secret:your-redshift-secret-XXXXXX"
AWS_REGION="us-east-1" # Or AWS_DEFAULT_REGION
# AWS_PROFILE="your-aws-profile-name" # Optional
Required Variables Table:
| Variable Name | Required | Description | Example Value |
|---|---|---|---|
REDSHIFT_CLUSTER_ID | Yes | Your Redshift cluster identifier. | my-redshift-cluster |
REDSHIFT_DATABASE | Yes | The name of the database to connect to. | mydatabase |
REDSHIFT_SECRET_ARN | Yes | AWS Secrets Manager ARN for Redshift credentials. | arn:aws:secretsmanager:us-east-1:123456789012:secret:mysecret-abcdef |
AWS_REGION | Yes | AWS region for Data API and Secrets Manager. | us-east-1 |
AWS_DEFAULT_REGION | No | Alternative to AWS_REGION for specifying the AWS region. | us-west-2 |
AWS_PROFILE | No | AWS profile name to use from your credentials file (~/.aws/...). | my-redshift-profile |
Note: Ensure the AWS credentials used by Boto3 (via environment, profile, or IAM role) have permissions to access the specified REDSHIFT_SECRET_ARN and use the Redshift Data API (redshift-data:*).
Usage
After installation, you can run the server directly from the command line:
# If installed from PyPI
redshift-utils-mcp
# Or using uvx (no installation required)
uvx redshift-utils-mcp
Connecting with Claude Desktop / Anthropic Console:
Add the following configuration block to your mcp.json file:
{
"mcpServers": {
"redshift-utils-mcp": {
"command": "u
---
FAQ
- What is the Redshift Utils MCP server?
- Redshift Utils is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
- How do MCP servers relate to agent skills?
- Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
- How are reviews shown for Redshift Utils?
- This profile displays 10 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.5 out of 5—verify behavior in your own environment before production use.
Ratings
4.5★★★★★10 reviews- ★★★★★Shikha Mishra· Oct 10, 2024
Redshift Utils is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
- ★★★★★Piyush G· Sep 9, 2024
We evaluated Redshift Utils against two servers with overlapping tools; this profile had the clearer scope statement.
- ★★★★★Chaitanya Patil· Aug 8, 2024
Useful MCP listing: Redshift Utils is the kind of server we cite when onboarding engineers to host + tool permissions.
- ★★★★★Sakshi Patil· Jul 7, 2024
Redshift Utils reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
- ★★★★★Ganesh Mohane· Jun 6, 2024
I recommend Redshift Utils for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
- ★★★★★Oshnikdeep· May 5, 2024
Strong directory entry: Redshift Utils surfaces stars and publisher context so we could sanity-check maintenance before adopting.
- ★★★★★Dhruvi Jain· Apr 4, 2024
Redshift Utils has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
- ★★★★★Rahul Santra· Mar 3, 2024
According to our notes, Redshift Utils benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
- ★★★★★Pratham Ware· Feb 2, 2024
We wired Redshift Utils into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
- ★★★★★Yash Thakker· Jan 1, 2024
Redshift Utils is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.