# Redash MCP

> Redash MCP is an MCP server for analytics and data. Redash queries, charts and dashboards through an assistant with SQL safety guards. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI
- **Repository:** https://github.com/seob717/redash-mcp
- **MCP Registry name:** io.github.seob717/redash-mcp
- **Categories:** [analytics and data](https://ai-powered.com/categories/analytics-and-data), [databases](https://ai-powered.com/categories/databases)
- **Listing updated:** 2026-11-23

## About

Redash MCP connects an assistant to your Redash instance with a user API key and works locally, so credentials and results do not pass through a third-party server. It covers data sources and schema, ad-hoc SQL, saved queries, charts, dashboards and alerts, and the README counts 25 tools.

Its safety guard applies to SQL run through run_query. Statements such as DROP, TRUNCATE, ALTER TABLE, GRANT and REVOKE are blocked, as are DELETE or UPDATE without a WHERE clause; SELECT *, missing WHERE or LIMIT, and PII column access are warned about in the default warn mode or blocked in strict mode, and an auto-LIMIT can be set. Saved queries run through get_query_result are not checked, so a read-only database account is advised.

Version 3.5 added chart creation on saved queries with column checks, and dashboard widgets that now lay out automatically. A smart_query tool uses BIRD-style text-to-SQL guidance, with an optional Claude Haiku fallback for table selection.

## Features

- **SQL safety guard:** Blocks destructive statements and warns on risky ones, with strict, warn and off modes.
- **Chart creation:** Builds line, column, area, pie, scatter and counter charts on saved queries.
- **Dashboards:** Creates dashboards and auto-places widgets.
- **Smart queries:** Guides table selection and SQL generation for natural-language questions.
- **Local operation:** Talks directly to your Redash; results are cached in memory with a configurable TTL.

## Good for

- Ask a business question and get a query run in Redash
- Save a monthly revenue query and chart it
- Build a dashboard from saved queries
- Create an alert on a daily metric

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add redash-mcp --env REDASH_URL='<REDASH_URL>' --env REDASH_API_KEY='<REDASH_API_KEY>' -- npx -y redash-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "redash-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "redash-mcp"
      ],
      "env": {
        "REDASH_URL": "<REDASH_URL>",
        "REDASH_API_KEY": "<REDASH_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "redash-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "redash-mcp"
      ],
      "env": {
        "REDASH_URL": "<REDASH_URL>",
        "REDASH_API_KEY": "<REDASH_API_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "redash-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "redash-mcp"
      ],
      "env": {
        "REDASH_URL": "<REDASH_URL>",
        "REDASH_API_KEY": "<REDASH_API_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "redash-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "redash-mcp"
      ],
      "env": {
        "REDASH_URL": "<REDASH_URL>",
        "REDASH_API_KEY": "<REDASH_API_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add redash-mcp --env REDASH_URL='<REDASH_URL>' --env REDASH_API_KEY='<REDASH_API_KEY>' -- npx -y redash-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.redash-mcp]
command = "npx"
args = ["-y", "redash-mcp"]
env = { REDASH_URL = "<REDASH_URL>", REDASH_API_KEY = "<REDASH_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "redash-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "redash-mcp"
      ],
      "env": {
        "REDASH_URL": "<REDASH_URL>",
        "REDASH_API_KEY": "<REDASH_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e REDASH_URL='<REDASH_URL>' -e REDASH_API_KEY='<REDASH_API_KEY>' redash-mcp npx -- -y redash-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "redash-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "redash-mcp"
      ],
      "env": {
        "REDASH_URL": "<REDASH_URL>",
        "REDASH_API_KEY": "<REDASH_API_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "redash-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "redash-mcp"
      ],
      "env": {
        "REDASH_URL": "<REDASH_URL>",
        "REDASH_API_KEY": "<REDASH_API_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "redash-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "redash-mcp"
      ],
      "env": {
        "REDASH_URL": "<REDASH_URL>",
        "REDASH_API_KEY": "<REDASH_API_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "redash-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "redash-mcp"
      ],
      "env": {
        "REDASH_URL": "<REDASH_URL>",
        "REDASH_API_KEY": "<REDASH_API_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "redash-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "redash-mcp"
      ],
      "env": {
        "REDASH_URL": "<REDASH_URL>",
        "REDASH_API_KEY": "<REDASH_API_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "redash-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "redash-mcp"
      ],
      "env": {
        "REDASH_URL": "<REDASH_URL>",
        "REDASH_API_KEY": "<REDASH_API_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "redash-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "redash-mcp"
      ],
      "env": {
        "REDASH_URL": "<REDASH_URL>",
        "REDASH_API_KEY": "<REDASH_API_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "redash-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "redash-mcp"
      ],
      "env": {
        "REDASH_URL": "<REDASH_URL>",
        "REDASH_API_KEY": "<REDASH_API_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 6 of 10 tools change data. From the server's own tool labels and tool names; not verified by us.

- `run_query` (name suggests: changes): Executes SQL and returns results.
- `create_visualization` (name suggests: changes): Creates a line, column, area, pie, scatter or counter chart on a saved query.
- `create_dashboard` (name suggests: changes): Creates a dashboard.
- `add_widget` (name suggests: changes): Adds a widget to a dashboard with auto-layout.
- `create_alert` (name suggests: changes): Creates an alert.
- `smart_query` (name suggests: reads): Analyses a question, selects tables and guides SQL generation.
- `list_data_sources` (name suggests: reads): Lists Redash data sources.
- `get_table_columns` (name suggests: reads): Returns columns of a table.
- `create_query` (name suggests: changes): Saves a query.
- `get_query_result` (name suggests: reads): Runs a saved query and returns results.

## FAQ

### What do I need to connect?

Node.js 20+, your Redash URL and a user API key.

### Are saved queries checked by the guard?

No. Only ad-hoc SQL through run_query is checked, so use a read-only database account.

### Which clients are supported?

Claude Desktop, Claude Code, Cursor, Gemini CLI and Codex CLI via npx redash-mcp setup.

### Can the guard be turned off?

Yes, REDASH_SAFETY_MODE=off, though the README advises against it.

### How do I add Redash MCP to Claude Code?

Run this command in your terminal: claude mcp add redash-mcp --env REDASH_URL='<REDASH_URL>' --env REDASH_API_KEY='<REDASH_API_KEY>' -- npx -y redash-mcp

### What are the best alternatives to Redash MCP?

The closest alternatives to Redash MCP are Agent-Native Analytics, dashboard-icons, Google Ads + Meta Ads + SEO/GEO MCP, Tapetide - Indian Stock Market MCP and Pitot.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Agent-Native Analytics](https://ai-powered.com/mcp/agent-native-analytics): Agent-Native Analytics is an open-source MCP server for analytics and data.
- [dashboard-icons](https://ai-powered.com/mcp/dashboard-icons): dashboard-icons is an open-source MCP server for analytics and data.
- [Google Ads + Meta Ads + SEO/GEO MCP](https://ai-powered.com/mcp/google-ads-meta-ads-seo-geo-mcp): Google Ads + Meta Ads + SEO/GEO MCP is a freemium MCP server for marketing and seo.
- [Tapetide - Indian Stock Market MCP](https://ai-powered.com/mcp/tapetide-indian-stock-market-mcp): Tapetide - Indian Stock Market MCP is a freemium MCP server for finance and payments.
- [Pitot](https://ai-powered.com/mcp/pitot): Pitot is an open-source MCP server for cloud and infrastructure.
- [World Monitor](https://ai-powered.com/mcp/world-monitor): World Monitor is a freemium MCP server for analytics and data.
- [Australian Economic Data (ABS, RBA & APRA)](https://ai-powered.com/mcp/australian-economic-data-abs-rba-and-apra): Australian Economic Data (ABS, RBA & APRA) is an open-source MCP server for analytics and data.
- [Midplane](https://ai-powered.com/mcp/midplane): Midplane is an open-source MCP server for databases.

---
Source: https://ai-powered.com/mcp/redash-mcp
