SuperAPI AI Directory

redash-mcp

Redash integration: natural-language SQL with safety guards and PII detection, table selection, saved queries, dashboards, widgets and alerts.

Open website

About this tool

Purpose

redash-mcp is an MCP (Model Context Protocol) server used to connect Redash to Claude, Cursor, Gemini CLI, Codex, and any MCP-supporting client, allowing users to query data, manage dashboards, and run SQL using natural language. It is aimed at use cases that need to give large language models access to production data while also wanting safety constraints.

Main Capabilities

SQL Safety Protection

  • Always block:DROP、TRUNCATE、ALTER TABLE、GRANT/REVOKE, without WHERE the DELETE/UPDATE.
  • Warn (warn mode) or block (strict mode):SELECT *, queries without WHERE or LIMIT , access to PII columns.
  • Automatic LIMIT: when REDASH_AUTO_LIMIT is set, it will automatically append LIMIT N.
  • Supports three modes: strict / warn / off, with PII detection.

Smart Query (BIRD Smart Query)

Based on the BIRD text-to-SQL methodology, it analyzes the question, automatically selects the correct tables, and guides SQL generation; Claude Haiku can optionally be used as a table selection fallback.

End-to-End Toolset

A total of 6 major categories and more than 20 tools, covering queries, saving, forking, dashboards, controls, and alerts.

Local Operation

Communicates directly with the user's Redash instance, and API keys and query results do not leave the local machine. Results are cached in memory to reduce repeated API calls: TTL is configured via REDASH_MCP_CACHE_TTL (default 300 seconds), and maximum memory is configured via REDASH_MCP_CACHE_MAX_MB (default 50MB).

One-Click Configuration

The npx redash-mcp setup command can help configure Claude Desktop, Claude Code (CLI), Cursor, Gemini CLI, and Codex CLI without manually editing JSON. A Shell script installation method is also provided, which can install Node.js, Claude Desktop, and the MCP configuration all at once.

Usage

Get API Key

Go to Redash → Profile in the upper right corner → Edit Profile → copy the API Key.

Configure in Claude Desktop

Open ~/Library/Application Support/Claude/claude_desktop_config.json and add the configuration; after saving, fully quit and restart Claude Desktop.

Configure in Cursor

Open ~/.cursor/mcp.json(create it if it does not exist) and add the configuration. On macOS, if you cannot find npx, you can run which npx to get the full path and use that path.

Environment Variables

The project is configured through environment variables, including REDASH_AUTO_LIMIT、REDASH_MCP_CACHE_TTL、REDASH_MCP_CACHE_MAX_MB、ANTHROPIC_API_KEY , etc. (see the repository documentation for the complete list).

Natural Language Examples

You can directly make requests to Claude in natural language, for example:

  • “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”

Typical Workflow Examples

  1. Query data: ask “How many new users signed up this month?” → list_data_sources determines the target data source → smart_query analyzes the question, automatically selects the User table, and provides SQL generation guidance → run_query executes the generated SQL.
  2. Complex business question: ask “What percentage of last week's new users made a purchase?” → smart_query analyzes and automatically selects the User and Payment tables, and provides JOIN query guidance → run_query executes the SQL.
  3. Create queries and dashboards: ask “Create a monthly revenue trend query and add it to a dashboard” → smart_query analyzes revenue-related tables → create_query Save the "Monthly Revenue Trend" query → create_dashboard Create a "Revenue Dashboard" → get_query Get the visualization ID from the saved query → add_widget Add a chart widget to the dashboard.

Use Cases

  • Developers or data analysts who need to query data in Redash using natural language.
  • Teams that want to preserve security constraints (blocking destructive SQL, detecting PII, automatic LIMIT) when giving large language models access to production data.
  • Users who need to manage Redash queries, dashboards, widgets, and alerts in a conversational way.
  • Users of MCP clients such as Claude Desktop, Claude Code, Cursor, Gemini CLI, and Codex CLI.

Limitations and Privacy

  • This is a local MCP server that communicates directly with the user's Redash instance, with no intermediary server.
  • It does not sell or share user data with third parties. When the LLM Fallback feature is enabled, only if the user has explicitly configured ANTHROPIC_API_KEY will the list of table names be sent to the Anthropic API.
  • Configuration files are stored locally in ~/.redash-mcp/(users can delete them at any time); the query cache exists only in memory and is cleared when the server shuts down; the Schema cache exists only in memory and automatically expires after a 10-minute TTL.
  • 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 owner and is used here only to describe compatibility. This project communicates with Redash only through Redash's public REST API.
  • For the complete list of environment variables, exact installation commands, and configuration snippets, please refer to the repository README; content not covered one by one in this introduction is not provided for now.