用于将 Redash 与像 Claude 这样的AI助手集成的模型上下文协议(MCP)服务器。
<a href="https://glama.ai/mcp/servers/j9bl90s3tw"> <img width="380" height="200" src="https://gips0.baidu.com/it/u=845300022,1519329149&fm=3081&app=3081&f=PNG?w=760&h=400" alt="Redash Server MCP 服务器" /> </a>服务器需要以下环境变量:
REDASH_URL:您的 Redash 实例 URL(例如,https://redash.example.com)REDASH_API_KEY:您的 Redash API 密钥可选变量:
REDASH_TIMEOUT:API 请求超时时间(以毫秒为单位,默认值:30000)REDASH_MAX_RESULTS:返回的最大结果数(默认值:1000)克隆此仓库:
git clone https://github.com/suthio/redash-mcp.git
cd redash-mcp
安装依赖项:
npm install
使用您的 Redash 配置创建一个 .env 文件:
REDASH_URL=https://your-redash-instance.com
REDASH_API_KEY=your_api_key
构建项目:
npm run build
启动服务器:
npm start
要将此 MCP 服务器与桌面版 Claude 结合使用,请在您的桌面版 Claude 配置文件中进行配置:
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:执行查询并返回结果execute-adhoc-query:执行临时查询而不将其保存到 Redashlist-dashboards:列出所有可用的仪表板get-dashboard:获取仪表板的详细信息和可视化内容get-visualization:获取特定可视化的详细信息create-visualization:为查询创建新的可视化update-visualization:更新现有的可视化delete-visualization:删除可视化在开发模式下运行:
npm run dev
MIT