seob717/redash-mcp

๐Ÿ—„๏ธ Databases
0 Views
0 Installs

๐Ÿ“‡ ๐Ÿ  - Connect Redash to Claude โ€” natural-language SQL with safety guards (blocks DROP/TRUNCATE, PII detection), BIRD-based smart table selection, plus saved queries, dashboards, widgets, and alerts.

Quick Install

One-Click IDE Configuration
claude_desktop_config.json
{
  "mcpServers": {
    "seob717-redash-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "seob717-redash-mcp"
      ]
    }
  }
}
Or

Using an AI coding agent (Claude Code, Cursor, etc.)? Copy a ready-made prompt that tells it to fetch the setup instructions and install this server for you.

Documentation Overview

redash-mcp

npm version Downloads Node Glama Claude Cursor Gemini CLI Codex CLI

English | ํ•œ๊ตญ์–ด | ๆ—ฅๆœฌ่ชž

MCP server that connects Redash to Claude, Cursor, Gemini CLI, Codex, and any MCP client โ€” query data, manage dashboards, and run SQL with natural language.

Why ยท Features ยท Install ยท Env ยท Examples ยท Privacy

redash-mcp demo โ€” Claude explores Redash tables, charts revenue by category, then the SQL safety guard blocks a PII export


Why redash-mcp?

There are several Redash MCP servers. This one is built for letting an LLM touch production data safely:

  • ๐Ÿ›ก๏ธ SQL Safety Guard โ€” blocks DROP/TRUNCATE/ALTER and DELETE/UPDATE without WHERE; strict/warn/off modes, PII detection, and auto-LIMIT. Hand Claude your real Redash without flinching.
  • ๐Ÿง  BIRD Smart Query โ€” analyzes the question, auto-selects the right tables, and guides SQL generation (based on the BIRD text-to-SQL methodology). Optional Claude Haiku fallback for table selection.
  • โšก One-command setup โ€” npx redash-mcp setup configures Claude Desktop / Claude Code / Cursor / Gemini CLI / Codex CLI for you. No hand-editing JSON.
  • ๐Ÿ”’ Fully local โ€” talks directly to your Redash instance. API key and query results never leave your machine.
  • ๐Ÿ“Š End-to-end โ€” query, save, fork, dashboards, widgets, and alerts โ€” 20+ tools across 6 categories.

Features

Tools

CategoryToolDescription
Data Sourceslist_data_sourcesList connected data sources
Schemalist_tablesList tables (supports keyword search)
Schemaget_table_columnsGet column names and types
Smart Querysmart_queryAnalyze a question, auto-select tables, guide SQL generation (BIRD)
Smart Queryget_bird_configInspect the active BIRD smart-query configuration
Smart Queryevaluate_queriesEvaluate generated SQL against expected results
Smart Querysubmit_query_feedbackRecord feedback to improve future table selection
Smart Querymanage_few_shot_examplesAdd/list BIRD few-shot examples
Smart Querymanage_keyword_mapAdd/list keywordโ†’table mappings
Queryrun_queryExecute SQL and return results
Saved Querieslist_queriesList saved queries
Saved Queriesget_queryGet query details (SQL, visualizations)
Saved Queriesget_query_resultRun a saved query and get results
Saved Queriescreate_querySave a new query
Saved Queriesupdate_queryUpdate a saved query
Saved Queriesfork_queryFork a saved query
Saved Queriesarchive_queryArchive (delete) a query
Dashboardslist_dashboardsList dashboards
Dashboardsget_dashboardGet dashboard details and widgets
Dashboardscreate_dashboardCreate a new dashboard
Dashboardsadd_widgetAdd a visualization widget to a dashboard
Alertslist_alertsList alerts
Alertsget_alertGet alert details
Alertscreate_alertCreate a new alert

SQL Safety Guard

Protects your database from dangerous queries:

  • Blocked always: DROP, TRUNCATE, ALTER TABLE, GRANT/REVOKE, DELETE/UPDATE without WHERE
  • Warned (warn mode) / Blocked (strict mode): SELECT *, queries without WHERE or LIMIT, PII column access
  • Auto-LIMIT: Automatically appends LIMIT N when REDASH_AUTO_LIMIT is set

Query Cache

Results are cached in-memory to reduce redundant API calls:

  • TTL: configurable via REDASH_MCP_CACHE_TTL (default: 300s)
  • Max memory: configurable via REDASH_MCP_CACHE_MAX_MB (default: 50MB)

Installation

Auto Setup (Recommended)

npx redash-mcp setup

The setup wizard will guide you through configuring Claude Desktop, Claude Code (CLI), Cursor, Gemini CLI, and Codex CLI โ€” pick any combination.

Shell Script Install

Installs Node.js, Claude Desktop, and MCP config all at once:

curl -fsSL https://raw.githubusercontent.com/seob717/redash-mcp/main/install.sh | bash

Manual Setup

1. Get your Redash API Key

Go to Redash โ†’ Profile (top right) โ†’ Edit Profile โ†’ Copy API Key

2-A. Claude Desktop

Open ~/Library/Application Support/Claude/claude_desktop_config.json and add:

{
  "mcpServers": {
    "redash-mcp": {
      "command": "npx",
      "args": ["-y", "redash-mcp"],
      "env": {
        "REDASH_URL": "https://your-redash-instance.com",
        "REDASH_API_KEY": "your_api_key_here"
      }
    }
  }
}

Fully quit and restart Claude Desktop after saving.

2-B. Claude Code (CLI)

claude mcp add --scope user redash-mcp \
  -e REDASH_URL=https://your-redash-instance.com \
  -e REDASH_API_KEY=your_api_key_here \
  -- npx -y redash-mcp

2-C. Cursor

Open ~/.cursor/mcp.json (create it if missing) and add:

{
  "mcpServers": {
    "redash-mcp": {
      "command": "npx",
      "args": ["-y", "redash-mcp"],
      "env": {
        "REDASH_URL": "https://your-redash-instance.com",
        "REDASH_API_KEY": "your_api_key_here"
      }
    }
  }
}

2-D. Gemini CLI

gemini mcp add -s user \
  -e REDASH_URL=https://your-redash-instance.com \
  -e REDASH_API_KEY=your_api_key_here \
  redash-mcp npx -y redash-mcp

2-E. Codex CLI

codex mcp add redash-mcp \
  --env REDASH_URL=https://your-redash-instance.com \
  --env REDASH_API_KEY=your_api_key_here \
  -- npx -y redash-mcp

macOS: If npx is not found, run which npx to get the full path and use that instead.


Environment Variables

Required

VariableDescription
REDASH_URLRedash instance URL (e.g. https://redash.example.com)
REDASH_API_KEYRedash user API key

Optional

VariableDefaultDescription
REDASH_SAFETY_MODEwarnSQL safety level: off / warn / strict
REDASH_SAFETY_DISABLE_PIIfalseDisable PII detection
REDASH_SAFETY_DISABLE_COSTfalseDisable cost warnings
REDASH_AUTO_LIMIT0Auto-append LIMIT N to queries without one (0 = disabled)
REDASH_DEFAULT_MAX_AGE0Redash cache TTL in seconds
REDASH_MCP_CACHE_TTL300MCP query cache TTL in seconds (0 = disabled)
REDASH_MCP_CACHE_MAX_MB50Max memory for MCP query cache in MB
REDASH_MCP_CONFIG_DIR~/.redash-mcpDirectory for BIRD few-shot, feedback, eval, keyword-map data
REDASH_BIRD_ENABLEDtrueSet to false to disable BIRD smart query tools
REDASH_HTTP_TIMEOUT_SECS30Per-request HTTP timeout against the Redash API
ANTHROPIC_API_KEYโ€”If set, BIRD smart_query falls back to Claude Haiku for table selection when keyword scoring fails

Usage Examples

Just ask Claude in natural language:

  • "Show me the columns in the users table"
  • "Run a query to get order counts for the last 7 days"
  • "List all saved queries"
  • "Show widgets in the revenue dashboard"
  • "Create an alert when daily signups drop below 100"

Example 1: Query data with natural language

Prompt: "How many new users signed up this month?"

Tool flow:

  1. list_data_sources โ†’ Identify the target data source
  2. smart_query โ†’ Analyze the question, auto-select the User table, provide SQL generation guidance
  3. run_query โ†’ Execute the generated SQL

Result:

There were 18,197 new signups this month.

Example 2: Complex business questions

Prompt: "What percentage of last week's new users made a purchase?"

Tool flow:

  1. smart_query โ†’ Analyze the question, auto-select User and Payment tables, provide JOIN query guidance
  2. run_query โ†’ Execute the SQL

Result:

Out of 1,204 new users last week, 312 made a purchase (25.9%).

Example 3: Create a query and dashboard

Prompt: "Create a monthly revenue trend query and add it to a dashboard"

Tool flow:

  1. smart_query โ†’ Analyze revenue-related tables
  2. create_query โ†’ Save the "Monthly Revenue Trend" query
  3. create_dashboard โ†’ Create a "Revenue Dashboard"
  4. get_query โ†’ Get the visualization ID from the saved query
  5. add_widget โ†’ Add the chart widget to the dashboard

Result:

Created "Revenue Dashboard" with the monthly revenue trend chart.
View in Redash: https://your-redash.com/dashboard/monthly-revenue

Privacy Policy

Data Collection and Processing

redash-mcp is a local MCP server that communicates directly with your Redash instance. No intermediate servers are involved.

ItemDescription
Redash API KeyStored only as a local environment variable (REDASH_API_KEY). Never transmitted externally.
Query content & resultsDelivered only to the local MCP client (Claude Desktop/Code) via the MCP protocol.
BIRD SQL settingsStored only in local files (~/.redash-mcp/). Includes few-shot examples, keyword maps, and feedback.
LLM FallbackWhen ANTHROPIC_API_KEY is set, only table name lists are sent to the Anthropic API. Query data and results are never transmitted.

Third-Party Sharing

We do not sell or share user data with third parties. When the LLM Fallback feature is active, only table name lists are sent to the Anthropic API, and only when the user has explicitly configured an ANTHROPIC_API_KEY.

Data Retention

  • Config files: Stored locally in ~/.redash-mcp/ (user can delete at any time)
  • Query cache: In-memory only, cleared on server shutdown
  • Schema cache: In-memory only, auto-expires after 10-minute TTL

Contact

For inquiries and security reports: GitHub Issues


Disclaimer

redash-mcp is an unofficial, community-built integration and is not affiliated with, endorsed by, or sponsored by Redash. "Redash" is a trademark of its respective owners and is used here only to describe compatibility. This project communicates with Redash solely through its public REST API.

License

MIT

Related MCP Servers

modelcontextprotocol/server-postgresVerified

๐Ÿ“‡ ๐Ÿ  - PostgreSQL database integration with schema inspection and query capabilities

๐Ÿ—„๏ธ Databases1 views
Aiven-Open/mcp-aiven

๐Ÿ โ˜๏ธ ๐ŸŽ–๏ธ - Navigate your Aiven projects and interact with the PostgreSQLยฎ, Apache Kafkaยฎ, ClickHouseยฎ and OpenSearchยฎ services

๐Ÿ—„๏ธ Databases0 views
alexanderzuev/supabase-mcp-server

Supabase MCP Server with support for SQL query execution and database exploration tools

๐Ÿ—„๏ธ Databases0 views
aliyun/alibabacloud-tablestore-mcp-server

โ˜• ๐Ÿ โ˜๏ธ - MCP service for Tablestore, features include adding documents, semantic search for documents based on vectors and scalars, RAG-friendly, and serverless.

๐Ÿ—„๏ธ Databases0 views

Engagement

Views
0
Installs
0
Upvotes
0

Views and upvotes are unique per visitor network (hashed IP). Installs count copy actions.

Status

Health: Not checked yet

We have not completed a health check for this listing yet.

No check timestamp yet.

Unclaimed listing (imported or pending owner verification). Claim it โ†’
โ˜… Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Claim this listing

Promote this listing

Optional paid placement. Free listings stay free forever.

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.