Redash
About
Execute queries and retrieve results using the Redash API.
Details
- Author
- yuki9541134
- Categories
- Database, Other
Jump to
Setup
Install Redash in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/yuki9541134/mcp-redash
Follow the installation instructions in the repository README, then restart your MCP client.
Redash APIのMCPサーバーで、クエリの実行、結果の取得などの機能を提供します。
- SQLクエリを実行し、結果が利用可能になるまで待機します
- 入力パラメータ:
- query(文字列): 実行するSQLクエリ
- data_source_id(数値, 任意): クエリを実行するデータソースのID
- max_age(数値, 任意): キャッシュ有効期限(秒)
- 利用可能なすべてのデータソースを一覧表示します
- 入力パラメータ: なし
- 戻り値: データソースの配列
- 特定のデータソースに関する詳細を取得します
- 入力パラメータ:
- data_source_id(数値): データソースのID
- クエリIDにより保存済みクエリの詳細を取得します(SQLテキスト含む)
- 入力パラメータ:
- query_id(数値): クエリID
- キーワードで保存済みクエリを検索します
- 入力パラメータ:
- q(文字列): 検索キーワード
- page(数値, 任意): ページ番号
- page_size(数値, 任意): ページサイズ
- クエリ結果IDにより既存のクエリ結果を取得します(再実行なし)
- 入力パラメータ:
- query_result_id(数値): クエリ結果ID
- クエリIDにより保存済みクエリの最新キャッシュ結果を取得します
- 入力パラメータ:
- query_id(数値): クエリID
- Redashにログイン
- 「Edit Profile」をクリック
- APIキーをコピーする
- REDASH_API_KEY: RedashのAPIキー
- REDASH_BASE_URL: RedashのURL(例:https://redash.example.com)
- DATA_SOURCE_ID(任意): デフォルトのデータソースID(execute_query_and_waitでdata_source_idを省略した場合に使用)
- PORT(任意): HTTPサーバーのポート番号(デフォルト: 3000、Streamable HTTP / SSE で使用)
git clone https://github.com/yuki9541134/mcp-redash.git cd mcp-redash npm install npm run build npm link
標準入出力で通信するモードです。MCPクライアントからローカルで利用する場合はこちらを使用します。
{ "mcpServers": { "redash": { "type": "stdio", "command": "npx", "args": ["mcp-redash"], "env": { "REDASH_API_KEY": "<YOUR_API_KEY>", "REDASH_BASE_URL": "https://redash.example.com" } } } }
docker build -t yuki9541134/mcp-redash .
{ "mcpServers": { "redash": { "type": "stdio", "command": "docker", "args": [ "run", "-i", "--rm", "-e", "REDASH_API_KEY", "-e", "REDASH_BASE_URL", "yuki9541134/mcp-redash" ], "env": { "REDASH_API_KEY": "<YOUR_API_KEY>", "REDASH_BASE_URL": "https://redash.example.com" } } } }
HTTPサーバーとして起動し、Streamable HTTPプロトコルで通信するモードです。Webクライアントやリモート接続に適しています。
.envでPORTREDASH_BASE_URLREDASH_API_KEYを設定してから起動してください。
npm run build node dist/index.js --streamable-http
開発時はnpm run dev -- --streamable-httpでTypeScriptを直接実行できます。
- POST /mcp- リクエストの送信
- GET /mcp- SSEストリームの確立(サーバー → クライアント通知用)
- DELETE /mcp- セッションの終了
{ "mcpServers": { "redash": { "type": "http", "url": "http://localhost:3000/mcp" } } }
[mcp_servers.redash] type = "url" url = "http://localhost:3000/mcp"
非推奨: SSEモードはレガシー互換のために残されています。新規利用にはStreamable HTTPモードを推奨します。
HTTPサーバーとして起動し、Server-Sent Events (SSE) で通信するモードです。
開発時はnpm run dev -- --sseでTypeScriptを直接実行できます。
- GET /sse- SSE接続の確立
- POST /messages- メッセージの送信
{ "mcpServers": { "redash": { "type": "sse", "url": "http://localhost:3000/sse" } } }
Official MCP server for dbt (data build tool) providing integration with dbt Core/Cloud CLI, project metadata discovery, model information, and semantic layer querying capabilities.
Query and analyze data with MotherDuck and local DuckDB
Connect your LLM to the Firebolt Data Warehouse for data querying and analysis.
API-first engine and MCP server that transforms declarative YAML model definitions into optimized SQL for Postgres, Snowflake, ClickHouse, Dremio, and Databricks
An MCP server for interacting with Apache Pinot, a real-time distributed OLAP datastore.
Manage Apache Superset datasets, metrics, and SQL queries.
Enables AI assistants to securely query and interact with the Treasure Data customer data platform.
Build robust data workflows, integrations, and analytics on a single intuitive platform.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





