Redshift MCP Server (TypeScript)

Redshift MCP Server (TypeScript)

redshift-js-mcp-server•bypaschmaria

A TypeScript Model Context Protocol server that gives MCP-compatible clients access to an Amazon Redshift data warehouse for schema inspection and read-only queries.

License: MIT•Runtime: Awaiting documentation review•Category: databases storage

WHAT IT DOES

  • •Provides a query tool that executes read-only SQL queries against the connected Redshift database.
  • •Provides a describe_table tool for retrieving detailed structural information about a specific table.
  • •Provides a find_column tool to locate tables containing columns matching name patterns.
  • •Exposes resources for schema listings, table schemas, sample data and table statistics.

BEST FOR

  • •Exploring a Redshift warehouse's schemas and table structures from an MCP-compatible client.
  • •Running read-only analytical queries against Redshift data.
  • •Locating tables by column name patterns across a database.

ABOUT REDSHIFT-JS-MCP-SERVER

Redshift MCP Server (TypeScript) is cataloged as an MCP server attributed to paschmaria. A TypeScript Model Context Protocol server that gives MCP-compatible clients access to an Amazon Redshift data warehouse for schema inspection and read-only queries. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Redshift MCP Server (TypeScript) are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does the server allow data modifications in Redshift?

No; the server uses read-only transactions for queries to prevent modifications.

Is sensitive data exposed when viewing sample rows?

Sample data is limited to 5 rows and sensitive data such as email and phone is automatically redacted.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 42dda1b7f3cb · 采集于 2026-11-13 11:48:50 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Redshift MCP Server (TypeScript)

This is a Model Context Protocol (MCP) server for Amazon Redshift implemented in TypeScript. It follows Anthropic's implementation pattern and provides Cursor IDE and other MCP-compatible clients with rich contextual information about your Redshift data warehouse. This server enables LLMs to inspect database schemas and execute read-only queries.

Integration with MCP Clients

Project-Specific Configuration

Create a .cursor/mcp.json file in your project directory:

{
  "mcpServers": {
    "redshift-mcp": {
      "command": "node",
      "args": ["path/to/dist/index.js"],
      "env": {
        "DATABASE_URL": "redshift://username:password@hostname:port/database?ssl=true"
      }
    }
  }
}

Global Configuration

For using across all projects, create ~/.cursor/mcp.json in your home directory with the same configuration.

Client-Specific Setup

Cursor IDE

  1. The server will be automatically detected if configured in mcp.json
  2. Tools will appear under "Available Tools" in MCP settings
  3. Agent will automatically use the tools when relevant

Other MCP Clients

Configure the server using stdio transport:

{
  "servers": [
    {
      "name": "redshift-mcp",
      "transport": {
        "kind": "stdio",
        "command": ["node", "path/to/dist/index.js"]
      }
    }
  ]
}

Prerequisites

  • Node.js 16 or higher
  • TypeScript
  • Access to an Amazon Redshift cluster
  • Basic knowledge of Redshift and SQL
  • Cursor IDE installed

Installation

  1. Clone this repository or copy the files to your local system
  2. Install the dependencies:
npm install
  1. Build the TypeScript code:
npm run build

Usage

The server requires a Redshift connection URL via the DATABASE_URL environment variable:

export DATABASE_URL="redshift://username:password@hostname:port/database?ssl=true"
npm start

Or you can run directly:

DATABASE_URL="redshift://username:password@hostname:port/database?ssl=true" node dist/index.js

For development, you can use:

DATABASE_URL="redshift://username:password@hostname:port/database?ssl=true" npm run dev

Connection URL Format

redshift://username:password@hostname:port/database?ssl=true
  • username: Your Redshift username
  • password: Your Redshift password
  • hostname: Your Redshift cluster endpoint
  • port: Usually 5439 for Redshift
  • database: The name of your database
  • ssl: Set to "true" for secure connection (recommended)

Additional connection parameters:

  • ssl=true: Required for secure connections (recommended)
  • timeout=10: Connection timeout in seconds
  • keepalives=1: Enable TCP keepalive
  • keepalives_idle=130: TCP keepalive idle time

Project Structure

  • src/index.ts: Main TypeScript implementation
  • dist/: Compiled JavaScript output
  • package.json: Project dependencies and scripts
  • tsconfig.json: TypeScript configuration

Components

Tools Available in Cursor

  • query

    • Execute read-only SQL queries against the connected Redshift database
    • Example: "Write a query to show all tables in the public schema"
  • describe_table

    • Get detailed information about a specific table
    • Example: "Show me the structure of the users table"
  • find_column

    • Find tables containing columns with specific name patterns
    • Example: "Find all tables that have a column containing 'email'"

Resources Available to Cursor

The server provides schema information that Cursor can use:

  • Schema Listings (redshift://<host>/schema/<schema_name>)

    • Lists all tables within a specific schema
    • Automatically discovered from database metadata
  • Table Schemas (redshift://<host>/<schema>/<table>/schema)

    • JSON schema information for each table
    • Includes column names, data types, and Redshift-specific attributes (distribution and sort keys)
  • Sample Data (redshift://<host>/<schema>/<table>/sample)

    • Sample rows from each table (limited to 5)
    • Sensitive data is automatically redacted
  • Statistics (redshift://<host>/<schema>/<table>/statistics)

    • Table statistics including size, row count, and creation time
    • Distribution and compression information

Security Considerations

This server:

  • Uses read-only transactions for queries to prevent modifications
  • Sanitizes inputs to prevent SQL injection
  • Does not expose raw password information in resource URIs
  • Automatically redacts sensitive data in sample results (email, phone)
  • Should be used in a secure environment since it has access to your database

Example Cursor Interactions

Here are some example questions you can ask Cursor once connected:

  1. "Show me all tables in the public schema"
  2. "What's the structure of the customers table?"
  3. "Find all tables that contain customer information"
  4. "Write a query to count orders by status"
  5. "Show me sample data from the products table"

Extending the Server

You can extend this server by:

  1. Adding new resource types in the ListResourcesRequestSchema and ReadResourceRequestSchema handlers
  2. Adding new tools in the ListToolsRequestSchema and CallToolRequestSchema handlers
  3. Enhancing security features or adding authentication

Development

For development, you can use the npm run dev command, which uses ts-node to run the TypeScript code directly without pre-compilation.

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Redshift MCP Server (TypeScript) from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/redshift-js-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related databases storage MCP Servers

Alternative and complementary servers in the same category

View all in databases storage →
AIStor MCP server
mcp-server-aistor•minio

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

Repository stats unavailable
Databases & Storage
InfluxDB v2 MCP Server
influxdb-mcp-server•idoru

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.

Repository stats unavailable
Databases & Storage