redash-mcp
MCP server that connects Redash to Claude AI, enabling natural language data queries, dashboard management, and SQL execution.
README
redash-mcp
MCP server that connects Redash to Claude AI — query data, manage dashboards, and run SQL with natural language.
Features · Install · Env · Examples · Privacy
Features
Tools
| Category | Tool | Description |
|---|---|---|
| Data Sources | list_data_sources |
List connected data sources |
| Schema | list_tables |
List tables (supports keyword search) |
| Schema | get_table_columns |
Get column names and types |
| Query | run_query |
Execute SQL and return results |
| Saved Queries | list_queries |
List saved queries |
| Saved Queries | get_query |
Get query details (SQL, visualizations) |
| Saved Queries | get_query_result |
Run a saved query and get results |
| Saved Queries | create_query |
Save a new query |
| Saved Queries | update_query |
Update a saved query |
| Saved Queries | fork_query |
Fork a saved query |
| Saved Queries | archive_query |
Archive (delete) a query |
| Dashboards | list_dashboards |
List dashboards |
| Dashboards | get_dashboard |
Get dashboard details and widgets |
| Dashboards | create_dashboard |
Create a new dashboard |
| Dashboards | add_widget |
Add a visualization widget to a dashboard |
| Alerts | list_alerts |
List alerts |
| Alerts | get_alert |
Get alert details |
| Alerts | create_alert |
Create a new alert |
SQL Safety Guard
Protects your database from dangerous queries:
- Blocked always:
DROP,TRUNCATE,ALTER TABLE,GRANT/REVOKE,DELETE/UPDATEwithoutWHERE - Warned (warn mode) / Blocked (strict mode):
SELECT *, queries withoutWHEREorLIMIT, PII column access - Auto-LIMIT: Automatically appends
LIMIT NwhenREDASH_AUTO_LIMITis 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), or both.
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)
Open ~/.claude/settings.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"
}
}
}
}
macOS: If
npxis not found, runwhich npxto get the full path and use that instead.
Environment Variables
Required
| Variable | Description |
|---|---|
REDASH_URL |
Redash instance URL (e.g. https://redash.example.com) |
REDASH_API_KEY |
Redash user API key |
Optional
| Variable | Default | Description |
|---|---|---|
REDASH_SAFETY_MODE |
warn |
SQL safety level: off / warn / strict |
REDASH_SAFETY_DISABLE_PII |
false |
Disable PII detection |
REDASH_SAFETY_DISABLE_COST |
false |
Disable cost warnings |
REDASH_AUTO_LIMIT |
0 |
Auto-append LIMIT N to queries without one (0 = disabled) |
REDASH_DEFAULT_MAX_AGE |
0 |
Redash cache TTL in seconds |
REDASH_MCP_CACHE_TTL |
300 |
MCP query cache TTL in seconds (0 = disabled) |
REDASH_MCP_CACHE_MAX_MB |
50 |
Max memory for MCP query cache in MB |
REDASH_MCP_CONFIG_DIR |
~/.redash-mcp |
Directory for BIRD few-shot, feedback, eval, keyword-map data |
REDASH_BIRD_ENABLED |
true |
Set to false to disable BIRD smart query tools |
REDASH_HTTP_TIMEOUT_SECS |
30 |
Per-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:
list_data_sources→ Identify the target data sourcesmart_query→ Analyze the question, auto-select theUsertable, provide SQL generation guidancerun_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:
smart_query→ Analyze the question, auto-selectUserandPaymenttables, provide JOIN query guidancerun_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:
smart_query→ Analyze revenue-related tablescreate_query→ Save the "Monthly Revenue Trend" querycreate_dashboard→ Create a "Revenue Dashboard"get_query→ Get the visualization ID from the saved queryadd_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.
| Item | Description |
|---|---|
| Redash API Key | Stored only as a local environment variable (REDASH_API_KEY). Never transmitted externally. |
| Query content & results | Delivered only to the local MCP client (Claude Desktop/Code) via the MCP protocol. |
| BIRD SQL settings | Stored only in local files (~/.redash-mcp/). Includes few-shot examples, keyword maps, and feedback. |
| LLM Fallback | When 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
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。