Provides tools for interacting with the Redash API, enabling the execution of SQL queries, retrieval of query results, and the management of data sources.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Redash MCP ServerList all data sources and count the total users from data source 1"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Redash MCPサーバー
Redash APIのMCPサーバーで、クエリの実行、結果の取得などの機能を提供します。
ツール
execute_query_and_waitクエリを実行し、結果が利用可能になるまで待機します
入力パラメータ:
data_source_id(数値): クエリを実行するデータソースのIDquery(文字列): 実行するSQLクエリ
戻り値: 利用可能になったクエリ結果
list_data_sources利用可能なすべてのデータソースを一覧表示します
入力パラメータ: なし
戻り値: データソースの配列
get_data_source特定のデータソースに関する詳細を取得します
入力パラメータ:
data_source_id(数値): データソースのID
戻り値: データソースの詳細情報
セットアップ
APIキー
Redash APIキーを取得してください。
Redashにログイン
「Edit Profile」をクリック
APIキーをコピーする
環境変数
以下の環境変数が必要です:
REDASH_API_KEY: RedashのAPIキーREDASH_BASE_URL: RedashのURL(例: https://redash.example.com)
git clone
このリポジトリをローカルにcloneしてください
npxで利用する場合
ビルドとnpxコマンドの登録を行ってください
Claude DesktopまたはCursorのMCP設定に以下を追加してください
Dockerで利用する場合
ビルドを行ってください
Claude DesktopまたはCursorのMCP設定に以下を追加してください
SSEモードで利用する場合
HTTPサーバーとして起動し、Server-Sent Events (SSE) を使用した通信を行うことも可能です。
開発時
ビルド後
SSEモードではHTTPサーバーがポート3000で起動します。エンドポイント:
GET /sse- SSE接続の確立POST /messages- メッセージの送信