
Redash Mcp
io.github.seob717由 GitHub 账号 seob717 发布v3.5.0更新于 Oct 30, 2026
Connect Redash to Claude -- query data, manage dashboards, and run SQL with natural language.
概览
本地 MCP 服务器,把助手连接到 Redash 实例,用自然语言执行 SQL、管理已保存查询、图表、仪表盘和告警。
- 可以做什么
- 浏览数据源、数据表和字段
- 执行临时 SQL,并带参数获取已保存查询的结果
- 列出、读取、创建、更新、派生和归档已保存查询
- 在已保存查询上创建折线、柱状、面积、饼图、散点图和计数器
- 列出、读取和创建仪表盘,并按自动布局放置组件
- 列出、读取和创建告警;智能查询工具可挑选数据表并引导生成 SQL
- 适用场景
- 适合团队把分析数据放在 Redash 中,希望助手直接回答数据问题、起草或保存 SQL,并搭建图表、仪表盘和告警而无需切换工具的场景。对已有 Redash 访问权限、想要一个带防护的本地桥接的分析师和工程师最有用。
- 运行要求
- 以 npm 包形式在本地运行(npx redash-mcp),需要 Node.js 20 或更高版本,并在 Claude Desktop、Claude Code、Cursor、Gemini CLI 或 Codex CLI 等 MCP 客户端中配置。需要实例的 REDASH_URL 和 Redash 用户 API 密钥 REDASH_API_KEY。需能访问该 Redash 实例的网络;ANTHROPIC_API_KEY 为可选的智能查询回退。
安装
在 SourceWeft 中
- 打开 控制台中的 Redash Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
redash-mcp
[npm version] [Downloads] [Node] [Glama] [Claude] [Cursor] [Gemini CLI] [Codex CLI]
MCP server that connects Redash to Claude, Cursor, Gemini CLI, Codex, and any MCP client — query data, build charts and dashboards, and run SQL with natural language.
Install · Tools · Env · Examples · Troubleshooting · Privacy
What's new in 3.5
create_visualization— create line / column / area / pie / scatter charts or counters on a saved query. If the query has been run, column names are checked against its latest result, so a typo returns an error instead of an empty chart.- Dashboard auto-layout —
add_widgetplaces new widgets below existing ones; half-width widgets pair up side by side (previously they all overlapped at the top-left).
Full history: Releases
Why redash-mcp?
Built for letting an LLM touch production data safely:
- 🛡️ SQL Safety Guard — blocks
DROP/TRUNCATE/ALTERandDELETE/UPDATEwithoutWHERE;strict/warn/offmodes, PII detection, and auto-LIMIT. - 🧠 BIRD Smart Query — analyzes the question, auto-selects tables, and guides SQL generation (BIRD text-to-SQL). Optional Claude Haiku fallback.
- 📊 End-to-end — query, save, chart, dashboards, and alerts — 25 tools.
- ⚡ One-command setup —
npx redash-mcp setupconfigures Claude Desktop / Claude Code / Cursor / Gemini CLI / Codex CLI. - 🔒 Fully local — talks directly to your Redash. API key and results never leave your machine.
Installation
Requirements: Node.js 20+ and a Redash API key (Redash → Profile → Edit Profile → API Key).
The wizard configures any combination of Claude Desktop, Claude Code, Cursor, Gemini CLI, and Codex CLI.
Alternatively, install Node.js, Claude Desktop, and the MCP config in one go:
Manual setup
- Claude Desktop —
~/Library/Application Support/Claude/claude_desktop_config.json - Cursor —
~/.cursor/mcp.json(create it if missing)
Fully quit and restart Claude Desktop after saving.
Claude Code
Gemini CLI
Codex CLI
Tools
SQL Safety Guard
Applies to ad-hoc SQL run through run_query. Saved queries executed with get_query_result are not checked, so give the Redash data source a read-only DB account.
- Always blocked (unless
REDASH_SAFETY_MODE=off):DROP,TRUNCATE,ALTER TABLE,GRANT/REVOKE,DELETE/UPDATEwithoutWHERE - Warned (
warn) / blocked (strict):SELECT *, queries withoutWHEREorLIMIT, PII column access - Auto-LIMIT: appends
LIMIT NwhenREDASH_AUTO_LIMITis set
Details: docs/sql-safety-guard.md. Query results are also cached in memory (see REDASH_MCP_CACHE_* below).
Environment Variables
Usage Examples
Just ask in natural language:
- "How many new users signed up this month?" →
smart_querypicks the tables →run_query - "What percentage of last week's new users made a purchase?" →
smart_queryguides the JOIN →run_query - "Create an alert when daily signups drop below 100" →
create_alert
Build a dashboard: "Save a monthly revenue query, chart it as a line, and put it on a new Revenue dashboard."
create_query— save "Monthly Revenue"get_query_result— run it once so the chart columns can be checkedcreate_visualization—type: "line",x_column: "month",y_columns: ["revenue"]create_dashboard— create "Revenue"add_widget— place the chart; more widgets stack below or pair side by side
Troubleshooting
Development
Privacy Policy
redash-mcp is a local MCP server that talks directly to your Redash instance. No intermediate servers are involved.
We do not sell or share user data with third parties.
Retention: config files stay in ~/.redash-mcp/ until you delete them; the query cache is in-memory and cleared on shutdown; the schema cache is in-memory with a 10-minute TTL.
Contact: inquiries and security reports via 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
来源:README.md,提交 9ad5b52
工具
0版本历史
2- v3.5.0最新Oct 23, 2026
- v3.3.0Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分