Skip to main content
Glama
redash-mcp

redash-mcp

by frauniki
README.md
# redash-mcp

MCP Server for [Redash](https://redash.io/) — execute queries, create visualizations, and build dashboards from Claude Code or any MCP client.

## Tools

| Tool                   | Description                                       |
| ---------------------- | ------------------------------------------------- |
| `list_data_sources`    | List all available data sources                   |
| `list_queries`         | Search and list saved queries                     |
| `get_query`            | Get a query with visualizations                   |
| `get_query_result`     | Get the latest result of a saved query            |
| `create_query`         | Create a new query                                |
| `update_query`         | Update an existing query                          |
| `archive_query`        | Archive (delete) a query                          |
| `execute_query`        | Execute SQL and return results (with job polling) |
| `create_visualization` | Create a visualization for a query                |
| `update_visualization` | Update a visualization                            |
| `delete_visualization` | Delete a visualization                            |
| `create_dashboard`     | Create a new dashboard                            |
| `get_dashboard`        | Get a dashboard with its widgets                  |
| `update_dashboard`     | Update a dashboard (name, tags, options, filters) |
| `publish_dashboard`    | Publish a draft dashboard                         |
| `archive_dashboard`    | Archive (delete) a dashboard                      |
| `add_widget`           | Add a widget to a dashboard                       |
| `update_widget`        | Update a widget (text or options)                 |
| `delete_widget`        | Delete a widget from a dashboard                  |

## Setup

### Prerequisites

- Node.js >= 20
- pnpm
- A Redash instance with an API key

### Usage with npx

```bash
REDASH_URL=https://redash.example.com REDASH_API_KEY=your-api-key npx @frauniki/redash-mcp
```

### Claude Code

```bash
claude mcp add redash -e REDASH_URL=https://redash.example.com -e REDASH_API_KEY=your-api-key -- npx @frauniki/redash-mcp
```

Or add to `~/.claude.json` manually:

```json
{
  "mcpServers": {
    "redash": {
      "command": "npx",
      "args": ["@frauniki/redash-mcp"],
      "env": {
        "REDASH_URL": "https://redash.example.com",
        "REDASH_API_KEY": "your-api-key"
      }
    }
  }
}
```

### Environment Variables

| Variable         | Description                                                           |
| ---------------- | --------------------------------------------------------------------- |
| `REDASH_URL`     | Base URL of your Redash instance (e.g., `https://redash.example.com`) |
| `REDASH_API_KEY` | Your Redash API key                                                   |

### Install from source

```bash
pnpm install
pnpm build
```

## Development

```bash
pnpm test          # Run tests
pnpm test:watch    # Run tests in watch mode
pnpm lint          # Lint
pnpm lint:fix      # Lint and fix
pnpm format        # Format with Prettier
pnpm format:check  # Check formatting
pnpm build         # Build
```

## License

ISC

TDQS

B3/5.0

Scored across 19 tools

Disambiguation4/5

Most tools map to a distinct resource+action pair, and descriptions clarify the subtle ones like get_query_result (latest saved result) vs execute_query (run arbitrary SQL). The only mild overlaps are get_query (which includes visualizations) versus get_query_result, and archive_* versus delete_* semantics across resource types.

Naming Consistency4/5

Nearly all tools follow a verb_noun snake_case pattern (create_query, update_dashboard, delete_widget). Minor deviations: widgets use add_widget instead of create_widget, and deletion is inconsistently expressed as archive_query/archive_dashboard versus delete_visualization/delete_widget.

Tool Count4/5

19 tools is on the higher side but is justified by four distinct entity types (queries, visualizations, dashboards, widgets) each needing multiple operations. No obvious redundancy; each tool covers a real operation.

Completeness3/5

Query and dashboard lifecycles are well covered, but there is no list_dashboards tool, so an agent cannot discover dashboards by name/ID without external knowledge. Other notable gaps include no standalone get_visualization/list_visualizations and no unarchive/restore operations.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues