Skip to main content
Glama
Redash MCP Server

Redash MCP Server

by suthio

Redash MCP 服务器

模型上下文协议 (MCP) 服务器用于将 Redash 与 Claude 等 AI 助手集成。

特征

  • 通过 Redash API 连接到 Redash 实例

  • 将可用的查询和仪表板列为资源

  • 执行查询并检索结果

  • 创建和管理查询(创建、更新、存档)

  • 列出用于创建查询的数据源

  • 获取仪表板详细信息和可视化效果

Related MCP server: redash-mcp

先决条件

  • Node.js(v18 或更高版本)

  • npm 或 yarn

  • 访问 Redash 实例

  • Redash API 密钥

环境变量

服务器需要以下环境变量:

可选变量:

  • REDASH_TIMEOUT :API 请求超时时间(毫秒)(默认值:30000)

  • REDASH_MAX_RESULTS :返回的最大结果数(默认值:1000)

安装

  1. 克隆此存储库:

    git clone https://github.com/suthio/redash-mcp.git
    cd redash-mcp
  2. 安装依赖项:

    npm install
  3. 使用您的 Redash 配置创建一个.env文件:

    REDASH_URL=https://your-redash-instance.com
    REDASH_API_KEY=your_api_key
  4. 构建项目:

    npm run build
  5. 启动服务器:

    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 tools
add_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).

share_dashboardB

Share a dashboard and create a public link

Inputs: dashboardId (required).

unshare_dashboardA

Unshare a dashboard and revoke its public link

Inputs: dashboardId (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

    B3.4/5.0

    Scored across 67 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count4/5

    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.

    Completeness4/5

    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

    ActivityActive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      MCP-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.
      13
      53 npm
      27
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      MCP server that connects Redash to Claude AI, enabling natural language data queries, dashboard management, and SQL execution.
      25
      2,645 npm
      1
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      A Model Context Protocol (MCP) server for Tableau Server. Enables AI assistants to interact with Tableau workbooks, views, datasources, and metadata.
      24
      17 PyPI
      MIT