npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@squadbase/mcp-redshift

v0.0.1

Published

MCP Server for Amazon Redshift

Readme

@squadbase/mcp-redshift

MCP (Model Context Protocol) server for Amazon Redshift.

Features

  • Execute SQL queries against Redshift clusters
  • Browse databases, schemas, and tables
  • Inspect table schemas with distribution and sort key info
  • Get table statistics and storage information
  • Designed for AI/LLM data analysis workflows

Installation

# No installation needed - use npx
npx -y @squadbase/mcp-redshift

# Or install globally
npm install -g @squadbase/mcp-redshift
mcp-redshift

Usage

Direct Execution

npx -y @squadbase/mcp-redshift

Via Launcher

npx -y @squadbase/mcp redshift

MCP Client Configuration

Add to your mcp.json:

Via Launcher (recommended):

{
  "mcpServers": {
    "redshift": {
      "command": "npx",
      "args": ["-y", "@squadbase/mcp", "redshift"],
      "env": {
        "REDSHIFT_HOST": "your-cluster.region.redshift.amazonaws.com",
        "REDSHIFT_PORT": "5439",
        "REDSHIFT_DATABASE": "dev",
        "REDSHIFT_USERNAME": "admin",
        "REDSHIFT_PASSWORD": "your-password"
      }
    }
  }
}

Direct:

{
  "mcpServers": {
    "redshift": {
      "command": "npx",
      "args": ["-y", "@squadbase/mcp-redshift"],
      "env": {
        "REDSHIFT_HOST": "your-cluster.region.redshift.amazonaws.com",
        "REDSHIFT_PORT": "5439",
        "REDSHIFT_DATABASE": "dev",
        "REDSHIFT_USERNAME": "admin",
        "REDSHIFT_PASSWORD": "your-password"
      }
    }
  }
}

Environment Variables

| Variable | Description | Required | |----------|-------------|----------| | REDSHIFT_HOST | Cluster endpoint | Yes | | REDSHIFT_PORT | Port number (default: 5439) | Yes | | REDSHIFT_DATABASE | Database name | Yes | | REDSHIFT_USERNAME | Username | Yes | | REDSHIFT_PASSWORD | Password | Yes |

Available Tools

ping

Health check - returns server name and version.

Input: None

Output:

{
  "ok": true,
  "server": "mcp-redshift",
  "version": "0.0.1"
}

redshift_info

Get connection requirements and configuration info.

Input: None

Output:

{
  "ok": true,
  "message": "TODO: implement Redshift connectivity via host/username/password",
  "required_env": [
    "REDSHIFT_HOST",
    "REDSHIFT_PORT",
    "REDSHIFT_DATABASE",
    "REDSHIFT_USERNAME",
    "REDSHIFT_PASSWORD"
  ]
}

execute_sql

Execute a SQL query against Redshift.

Input:

{
  "query": "SELECT * FROM public.users LIMIT 10",
  "database": "dev",
  "max_rows": 1000
}

list_databases

List all databases in the Redshift cluster.

Input: None

list_schemas

List all schemas in a database.

Input:

{
  "database": "dev"
}

list_tables

List all tables in a schema.

Input:

{
  "schema": "public",
  "include_views": false
}

describe_table

Get detailed information about a table including columns, distribution style, and sort keys.

Input:

{
  "schema": "public",
  "table": "users"
}

Output includes:

  • Column names, types, nullability
  • Distribution key (distkey) columns
  • Sort key columns
  • Table storage info (diststyle, sortkey type, size)

sample_table

Get sample rows from a table for data exploration.

Input:

{
  "schema": "public",
  "table": "users",
  "limit": 10
}

get_table_stats

Get statistics and storage information for a table.

Input:

{
  "schema": "public",
  "table": "users"
}

Output includes:

  • Row count
  • Size in MB
  • Unsorted percentage
  • Statistics accuracy
  • Last analyzed timestamp

Current Status

This package provides stub implementations. The tools return placeholder data to demonstrate the API structure. Full implementation with actual Redshift connectivity via pg driver is planned.

License

MIT