SR 

suthio/redash-mcp 是从 https://github.com/suthio/redash-mcp. 导入的 MCP 服务器候选。
概览
suthio/redash-mcp 是从 https://github.com/suthio/redash-mcp. 导入的 MCP 服务器候选。
概述(AI 翻译)
用于将Redash与Claude等AI助手集成的模型上下文协议(MCP)服务器。
特色
- 通过Redash API连接Redash实例
- 将可用查询和仪表盘列为资源
- 执行查询并检索结果
- 执行已保存的参数化查询,带有类型值和保存默认值
- 创建和管理查询(创建、更新、归档)
- 管理查询参数、仪表盘参数和控件参数映射
- 检查并更新仪表盘控件的布局和网格位置
- 列出用于查询创建的数据源
- 获取仪表盘细节和可视化
- 通过Redash图表特定设置更新图表可视化选项
先修条件
- Node.js(v22.13或更高版本)
- Corepack(随Node.js 22附带;它选择置顶在
package.json中的pnpm版本) - 访问Redash实例
- Redash API 密钥
环境变量
服务器需要以下环境变量:
REDASH_URL:您的 Redash 实例 URL(例如 https://redash.example.com)REDASH_API_KEY:您的Redash API密钥
可选变量:
REDASH_TIMEOUT:API 请求超时(毫秒级)(默认:30000)
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Redash MCP Server
Model Context Protocol (MCP) server for integrating Redash with AI assistants like Claude.
Features
- Connect to Redash instances via the Redash API
- List available queries and dashboards as resources
- Execute queries and retrieve results
- Execute saved parameterized queries with typed values and saved defaults
- Create and manage queries (create, update, archive)
- Manage query parameters, dashboard parameters, and widget parameter mappings
- Inspect and update dashboard widget layouts and grid positions
- List data sources for query creation
- Get dashboard details and visualizations
- Update chart visualization options with Redash chart-specific settings
Prerequisites
- Node.js (v26 or later)
- pnpm (use the version pinned in
package.jsonwhen building from source) - Access to a Redash instance
- Redash API key
Environment Variables
The server requires the following environment variables:
REDASH_URL: Your Redash instance URL (e.g., https://redash.example.com)REDASH_API_KEY: Your Redash API key
Optional variables:
REDASH_TIMEOUT: Timeout for API requests in milliseconds (default: 30000)REDASH_MAX_RESULTS: Maximum number of results to return (default: 1000)REDASH_EXTRA_HEADERS: Extra HTTP headers to include with every Redash request. Accepts either a JSON object string or a semicolon/comma-separated list ofkey=valuepairs.REDASH_SOCKS_PROXY: SOCKS proxy URL for routing requests through a proxy (e.g.,socks5h://localhost:1080). Usesocks5h://(withh) to delegate DNS resolution to the proxy, which is required for internal hostnames that don’t resolve on the local machine.MCP_TRANSPORT: MCP transport to use. Supported values arestdio,http, andstreamable-http(default:stdio).MCP_HTTP_HOST: Host for Streamable HTTP mode (default:127.0.0.1).MCP_HTTP_PORT: Port for Streamable HTTP mode (default:3000).MCP_HTTP_PATH: Streamable HTTP endpoint path (default:/mcp).MCP_HTTP_ALLOWED_HOSTS: Comma-separated Host header allowlist for Streamable HTTP mode. Values are hostnames without a scheme, port, path, or wildcard.MCP_HTTP_ALLOWED_ORIGINS: Comma-separated browser Origin hostname allowlist. Values use the same hostname-only format and also control CORS responses. Set an empty value to reject every request that includes anOriginheader.- OpenTelemetry variables: optional; see OpenTelemetry observability for concrete OTLP and Prometheus configurations.
Examples:
JSON (recommended):
REDASH_EXTRA_HEADERS='{"CF-Access-Client-Id":"","CF-Access-Client-Secret":""}'
Key/value list:
REDASH_EXTRA_HEADERS=CF-Access-Client-Id=;CF-Access-Client-Secret=
Notes:
安装
npx -y @suthio/redash-mcp配置
{
"mcpServers": {
"redash": {
"command": "npx",
"args": [
"-y",
"@suthio/redash-mcp"
],
"env": {
"REDASH_API_KEY": "your-api-key",
"REDASH_URL": "https://your-redash-instance.com"
}
}
}
}