Back to Browse

Redash MCP Server

Developer ToolsModerate6.6Local
Free

Connect Redash to Claude -- query data, manage dashboards, and run SQL with natural language.

About

Connect Redash to Claude -- query data, manage dashboards, and run SQL with natural language.

Security Report

6.6
Moderate6.6Moderate Risk

redash-mcp is a well-structured MCP server for querying Redash with comprehensive SQL safety guards. Authentication uses environment variables (REDASH_URL, REDASH_API_KEY) appropriately. The codebase demonstrates good security practices with input validation, no credential hardcoding, and permissions scoped to HTTP API calls. Minor code quality issues exist (broad error handling, potential logging of errors), but these are low-severity and do not significantly impact security. Supply chain analysis found 2 known vulnerabilities in dependencies (0 critical, 1 high severity). Package verification found 1 issue.

4 files analyzed · 7 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

env_vars

Check that this permission is expected for this type of plugin.

HTTP Network Access

Connects to external APIs or services over the internet.

File System Read

Reads files on your machine. Normal for tools that analyze or process local data.

File System Write

Writes or modifies files on your machine. Check that this is expected for the tool.

What You'll Need

Set these up before or after installing:

Your Redash instance URL (e.g. https://redash.example.com)Optional

Environment variable: REDASH_URL

Your Redash user API key (found in Settings > Account)Required

Environment variable: REDASH_API_KEY

SQL safety mode: 'strict' blocks risky queries, 'warn' (default) returns warnings, 'off' disables guards (not recommended).Optional

Environment variable: REDASH_SAFETY_MODE

Set to 'true' to disable the PII column guard. Not recommended.Optional

Environment variable: REDASH_SAFETY_DISABLE_PII

Set to 'true' to disable the query cost guard. Not recommended.Optional

Environment variable: REDASH_SAFETY_DISABLE_COST

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-seob717-redash-mcp": {
      "env": {
        "REDASH_URL": "your-redash-url-here",
        "REDASH_API_KEY": "your-redash-api-key-here",
        "REDASH_SAFETY_MODE": "your-redash-safety-mode-here",
        "REDASH_SAFETY_DISABLE_PII": "your-redash-safety-disable-pii-here",
        "REDASH_SAFETY_DISABLE_COST": "your-redash-safety-disable-cost-here"
      },
      "args": [
        "-y",
        "redash-mcp"
      ],
      "command": "npx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

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 setupnpx 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_KEYIf 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

Reviews

No reviews yet

Be the first to review this server!

Redash MCP Server - Connect Redash to Claude -- query data, manage dashboards, | MCP Marketplace