Redash MCP Server
Redash MCP 服务器
模型上下文协议 (MCP) 服务器用于将 Redash 与 Claude 等 AI 助手集成。
特征
通过 Redash API 连接到 Redash 实例
将可用的查询和仪表板列为资源
执行查询并检索结果
创建和管理查询(创建、更新、存档)
列出用于创建查询的数据源
获取仪表板详细信息和可视化效果
Related MCP server: redash-mcp
先决条件
Node.js(v18 或更高版本)
npm 或 yarn
访问 Redash 实例
Redash API 密钥
环境变量
服务器需要以下环境变量:
REDASH_URL:您的 Redash 实例 URL(例如https://redash.example.com )REDASH_API_KEY:您的 Redash API 密钥
可选变量:
REDASH_TIMEOUT:API 请求超时时间(毫秒)(默认值:30000)REDASH_MAX_RESULTS:返回的最大结果数(默认值:1000)
安装
克隆此存储库:
git clone https://github.com/suthio/redash-mcp.git cd redash-mcp安装依赖项:
npm install使用您的 Redash 配置创建一个
.env文件:REDASH_URL=https://your-redash-instance.com REDASH_API_KEY=your_api_key构建项目:
npm run build启动服务器:
npm start
与 Claude 桌面版一起使用
要将此 MCP 服务器与 Claude for Desktop 一起使用,请在 Claude for Desktop 配置文件中对其进行配置:
macOS : ~/Library/Application Support/Claude/claude_desktop_config.json Windows : %APPDATA%\Claude\claude_desktop_config.json
添加以下配置(根据需要编辑路径):
{
"mcpServers": {
"redash": {
"command": "npx",
"args": [
"-y",
"@suthio/redash-mcp"
],
"env": {
"REDASH_API_KEY": "your-api-key",
"REDASH_URL": "https://your-redash-instance.com"
}
}
}
}可用工具
查询管理
list-queries:列出 Redash 中所有可用的查询get-query:获取特定查询的详细信息create-query:在 Redash 中创建一个新的查询update-query:更新 Redash 中的现有查询archive-query:存档(软删除)查询list-data-sources:列出所有可用的数据源
查询执行
execute-query:执行查询并返回结果
仪表板管理
list-dashboards:列出所有可用的仪表板get-dashboard:获取仪表板详细信息和可视化效果get-visualization:获取特定可视化的详细信息
发展
以开发模式运行:
npm run dev版本历史记录
v1.1.0:添加查询管理功能(创建、更新、存档)
v1.0.0:初始版本
执照
麻省理工学院
Available Tools
67 toolsadd_alert_subscriptionB
Subscribe to an alert to receive notifications
Inputs: alertId (required), destination_id.
add_dashboard_favoriteB
Add a dashboard to favorites
Inputs: dashboardId (required).
add_query_favoriteB
Add a query to favorites
Inputs: queryId (required).
archive_dashboardB
Archive (soft-delete) a dashboard in Redash
Inputs: dashboardId (required).
archive_queryA
Archive (soft-delete) a query in Redash
Inputs: queryId (required).
create_alertB
Create a new alert in Redash. Alerts notify you when a query result meets a specified condition.
Inputs: name (required), options (required), query_id (required), rearm.
create_dashboardB
Create a new dashboard in Redash
Inputs: name (required), tags.
create_queryC
Create a new query in Redash
Inputs: name (required), query (required), data_source_id (required), tags, +3 more.
create_query_snippetA
Create a new reusable query snippet
Inputs: snippet (required), trigger (required), description.
create_visualizationB
Create a new visualization for a query
Inputs: name (required), type (required), options (required), query_id (required), +1 more.
create_widgetB
Create a new widget on a dashboard
Inputs: width (required), dashboard_id (required), text, options, +2 more.
delete_alertB
Delete an alert from Redash
Inputs: alertId (required).
delete_query_snippetC
Delete a query snippet
Inputs: snippetId (required).
delete_visualizationB
Delete a visualization
Inputs: visualizationId (required).
delete_widgetB
Delete a widget from a dashboard
Inputs: widgetId (required).
execute_adhoc_queryA
Execute an ad-hoc query without saving it to Redash. Creates a temporary query that is automatically deleted after execution.
Inputs: query (required), dataSourceId (required).
execute_parameterized_queryB
Execute a saved parameterized query using its saved parameter definitions and defaults
Inputs: queryId (required), maxAge, parameters, useSavedDefaults.
execute_queryC
Execute a Redash query and return results
Inputs: queryId (required), maxAge, parameters.
fork_dashboardB
Fork (duplicate) an existing dashboard
Inputs: dashboardId (required).
fork_queryB
Fork (duplicate) an existing query
Inputs: queryId (required).
get_alertB
Get details of a specific alert
Inputs: alertId (required).
get_alert_subscriptionsA
Get all subscriptions for an alert
Inputs: alertId (required).
get_dashboardA
Get details of a specific dashboard
Inputs: dashboardId (required).
get_dashboard_by_slugB
Get details of a specific dashboard by its slug
Inputs: slug (required).
get_dashboard_layoutB
Get the current widget layout for a dashboard
Inputs: dashboardId (required).
get_dashboard_parametersA
Get the current dashboard parameter values and widget mappings
Inputs: dashboardId (required).
get_dashboard_tagsA
Get all tags used in dashboards
Inputs: no named parameters.
get_favorite_dashboardsB
Get dashboards marked as favorite by the current user
Inputs: page, pageSize.
get_favorite_queriesB
Get queries marked as favorite by the current user
Inputs: page, pageSize.
get_my_dashboardsA
Get dashboards created by the current user
Inputs: page, pageSize.
get_my_queriesA
Get queries created by the current user
Inputs: page, pageSize.
get_public_dashboardC
Get a public dashboard by its share token
Inputs: token (required).
get_queryB
Get details of a specific query
Inputs: queryId (required).
get_query_parametersA
Get the saved parameter definitions for a query
Inputs: queryId (required).
get_query_results_csvA
Get query results in CSV format. Returns the last cached results, or optionally refreshes the query first to get the latest data. Note: Does not support parameterized queries.
Inputs: queryId (required), refresh.
get_query_snippetA
Get details of a specific query snippet
Inputs: snippetId (required).
get_query_tagsA
Get all tags used in queries
Inputs: no named parameters.
get_recent_queriesC
Get recently accessed queries
Inputs: page, pageSize.
get_schemaC
Get schema of a specific data source
Inputs: dataSourceId (required).
get_visualizationB
Get details of a specific visualization
Inputs: visualizationId (required).
get_widgetC
Get details of a specific widget
Inputs: widgetId (required).
get_widget_parameter_mappingsB
Get the parameter mappings for a widget
Inputs: widgetId (required).
list_alertsB
List all alerts in Redash
Inputs: no named parameters.
list_dashboardsC
List all available dashboards in Redash
Inputs: page, pageSize.
list_data_sourcesA
List all available data sources in Redash
Inputs: no named parameters.
list_destinationsA
List all alert notification destinations (email, Slack, etc.)
Inputs: no named parameters.
list_queriesC
List all available queries in Redash
Inputs: q, page, pageSize.
list_query_snippetsA
List all reusable query snippets
Inputs: no named parameters.
list_widgetsA
List all widgets
Inputs: no named parameters.
mute_alertB
Mute an alert to temporarily stop notifications
Inputs: alertId (required).
remove_alert_subscriptionC
Unsubscribe from an alert
Inputs: alertId (required), subscriptionId (required).
remove_dashboard_favoriteB
Remove a dashboard from favorites
Inputs: dashboardId (required).
remove_query_favoriteA
Remove a query from favorites
Inputs: queryId (required).
update_alertB
Update an existing alert in Redash
Inputs: alertId (required), name, rearm, options, +1 more.
update_chart_visualizationB
Update chart-specific visualization options and merge them with the current Redash chart config by default
Inputs: visualizationId (required), name, type, sortX, +32 more.
update_dashboardC
Update an existing dashboard in Redash
Inputs: dashboardId (required), name, tags, is_draft, +2 more.
update_dashboard_layoutA
Move or resize multiple widgets on a dashboard in one call and report per-widget outcomes
Inputs: widgets (required), dashboardId (required).
update_dashboard_parametersB
Update dashboard parameter values and ordering
Inputs: dashboardId (required), parameters, globalParamOrder, replaceParameters, +1 more.
update_queryC
Update an existing query in Redash
Inputs: queryId (required), name, tags, query, +6 more.
update_query_parametersB
Update a query's saved parameter definitions
Inputs: queryId (required), parameters, replaceParameters, removeParameterNames.
update_query_snippetC
Update an existing query snippet
Inputs: snippetId (required), snippet, trigger, description.
update_visualizationC
Update an existing visualization
Inputs: visualizationId (required), name, type, options, +1 more.
update_widgetC
Update an existing widget
Inputs: widgetId (required), text, width, options, +2 more.
update_widget_layoutC
Move or resize a single widget by updating its grid position
Inputs: position (required), widgetId (required).
update_widget_parameter_mappingsB
Update a widget's parameter mappings
Inputs: widgetId (required), parameterMappings, removeParameterNames, replaceParameterMappings.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 67 tools
Each tool targets a specific resource and action, with clear distinctions even among similar operations (e.g., execute_query vs execute_adhoc_query). The descriptions further clarify any potential overlap.
All tools follow a consistent verb_noun snake_case pattern (e.g., create_dashboard, get_query, delete_alert). No mixing of conventions or vague names.
67 tools is high but appropriate for a comprehensive BI tool covering alerts, dashboards, queries, visualizations, widgets, snippets, data sources, and destinations. Each entity has a logical set of CRUD and utility tools.
The tool surface covers core workflows for alerts, dashboards, queries, and visualizations. Missing update/delete for data sources and destinations, but these are likely admin-level operations. Otherwise, no significant gaps.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server that lets AI assistants use all OneSchema features exposed via the public API.
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
Related MCP Servers
- AlicenseBqualityDmaintenanceMCP-compatible server that enables AI assistants to interact with Lightdash analytics data, providing tools to list and retrieve projects, spaces, charts, dashboards, and metrics through a standardized interface.1353 npm27MIT
- AlicenseAqualityDmaintenanceModel Context Protocol (MCP) server for Redash - manage queries, dashboards, and visualizations through AI assistants like Claude.6202 PyPIMIT
- AlicenseAqualityBmaintenanceMCP server that connects Redash to Claude AI, enabling natural language data queries, dashboard management, and SQL execution.252,645 npm1MIT
- AlicenseAqualityDmaintenanceA Model Context Protocol (MCP) server for Tableau Server. Enables AI assistants to interact with Tableau workbooks, views, datasources, and metadata.2417 PyPIMIT