Redash MCP
Redash queries, charts and dashboards through an assistant with SQL safety guards
Redash MCP is an MCP server for analytics and data. It runs locally on your machine and is started by your AI client.
- Platforms
- CLI
- Runs
- Locally
- What it can do
- Can change data (6 tools)
- Access
- Needs a secret key or token
- Version
- 3.5.0
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add redash-mcp --env REDASH_URL='<REDASH_URL>' --env REDASH_API_KEY='<REDASH_API_KEY>' -- npx -y redash-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"redash-mcp": {
"command": "npx",
"args": [
"-y",
"redash-mcp"
],
"env": {
"REDASH_URL": "<REDASH_URL>",
"REDASH_API_KEY": "<REDASH_API_KEY>"
}
}
}
}Add to claude_desktop_config.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.
Add to ~/.cursor/mcp.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.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
codex mcp add redash-mcp --env REDASH_URL='<REDASH_URL>' --env REDASH_API_KEY='<REDASH_API_KEY>' -- npx -y redash-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.redash-mcp]
command = "npx"
args = ["-y", "redash-mcp"]
env = { REDASH_URL = "<REDASH_URL>", REDASH_API_KEY = "<REDASH_API_KEY>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"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
Add to ~/.gemini/settings.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
Antigravity
Add to ~/.gemini/config/mcp_config.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 (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.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
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "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.
Junie
Add to ~/.junie/mcp/mcp.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
Add to ~/.kiro/settings/mcp.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.
Using several servers? Build one config file with the MCP config generator.
Configuration
REDASH_URLYour Redash instance URL (e.g. https://redash.example.com)RequiredREDASH_API_KEYYour Redash user API key (found in Settings > Account)RequiredREDASH_SAFETY_MODESQL safety mode: 'strict' blocks risky queries, 'warn' (default) returns warnings, 'off' disables guards (not recommended).REDASH_SAFETY_DISABLE_PIISet to 'true' to disable the PII column guard. Not recommended.REDASH_SAFETY_DISABLE_COSTSet to 'true' to disable the query cost guard. Not recommended.
About Redash MCP
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.
Tools this server provides (10)
Taken from the project documentation; the running server may differ.
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_queryName suggests: changes
- Executes SQL and returns results.
- create_visualizationName suggests: changes
- Creates a line, column, area, pie, scatter or counter chart on a saved query.
- create_dashboardName suggests: changes
- Creates a dashboard.
- add_widgetName suggests: changes
- Adds a widget to a dashboard with auto-layout.
- create_alertName suggests: changes
- Creates an alert.
- smart_queryName suggests: reads
- Analyses a question, selects tables and guides SQL generation.
- list_data_sourcesName suggests: reads
- Lists Redash data sources.
- get_table_columnsName suggests: reads
- Returns columns of a table.
- create_queryName suggests: changes
- Saves a query.
- get_query_resultName suggests: reads
- Runs a saved query and returns results.
What it does
- 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
Redash MCP 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.

