io.github.sisense/sisense-mcp-server
平台与服务by sisense
基于Sisense Intelligence的MCP server,提供可落地的洞察与分析能力。
什么是 io.github.sisense/sisense-mcp-server?
基于Sisense Intelligence的MCP server,提供可落地的洞察与分析能力。
README
Sisense MCP Server
A Model Context Protocol (MCP) server that provides integration with Sisense analytics platform. This server enables LLMs to interact with Sisense data models and create charts programmatically.
Features
- Transport: Streamable HTTP (
streamable-http) for HTTP-based MCP clients (for example Claude Desktop, Cursor) - MCP tools (three by default; optional fourth when enabled):
getDataSources: Retrieve Sisense data sources (or data models)getDataSourceFields: List all available fields for a specific data sourcebuildChart: Build charts from natural language promptsbuildQuery(optional): Run analytics queries whenTOOL_BUILD_QUERY_ENABLED/toolBuildQueryEnabledis enabled
- MCP Apps: When used in MCP Apps–capable clients (for example Claude),
buildChartexposes an interactive View that renders the chart in an iframe within the app. - Per-session authentication: Sisense credentials via URL parameters and/or server environment variables
- TypeScript: Full type safety and modern ESM support
- Lightweight: Pure Node.js HTTP server, no heavy frameworks
- Fast: Optimized for Bun runtime, also runs on Node.js
Documentation
- Quick start — clone,
.env, run, MCP client setup - Configuration — credentials, tunneling, feature flags, URL examples
- FAQ — common questions and troubleshooting
- Usage examples — prompts and workflows
Prerequisites
- Node.js >= 18.0.0 (required for local development and
npm) - Bun for running project scripts (
dev,build,start, tests): thebunpackage is a devDependency, so afternpm installorbun installthe Bun binary is available undernode_modules/.bin—a global Bun install is not required. A global Bun install is optional. - Sisense instance with API access
- Sisense API token
- Cloud-Linked Features enabled on your Sisense instance (and an LLM provider configured if using Bring Your Own Key (BYOK)). Required for natural-language tools such as
buildChartandbuildQuery. See Generative AI (Cloud-Linked Features). This is separate from your MCP client's LLM (e.g. Claude in Cursor). - Playwright Chromium (installed automatically by
bun install/npm installviapostinstall)
Installation
bun install
# or
npm install
Usage
Start the server:
# Development mode (hot reload)
bun run dev
# or
npm run dev
# Production mode
bun run build && bun run start
# or
npm run build && npm run start
Sessions are in-memory — chart state is lost if the server restarts.
The server prints something like the following (port defaults to 3001, or PORT if set):
Sisense MCP Server running on http://localhost:3001
Connect with:
http://localhost:3001/mcp?sisenseUrl=<SISENSE_URL>&sisenseToken=<SISENSE_TOKEN>
Or set SISENSE_URL and SISENSE_TOKEN in the environment and use http://localhost:3001/mcp
Optional feature-flag query params (override env vars per connection):
mcpAppEnabled=true|false, toolBuildQueryEnabled=true|false, toolBuildChartNarrativeEnabled=true|false
Endpoints:
Health: http://localhost:3001/health
Screenshots: http://localhost:3001/screenshots/
Connecting your MCP client
Use an MCP streamable HTTP URL. For Cursor, Claude Desktop, and similar clients, add a server entry with the MCP path (not a shell command such as bun run dev or npm run dev).
If SISENSE_URL and SISENSE_TOKEN are set in the server environment (for example in .env loaded by the process that runs bun run dev or npm run dev), the client URL does not need to include credentials:
{
"mcpServers": {
"sisense-analytics": {
"url": "http://localhost:3001/mcp"
}
}
}
Note: Depending on your network or client environment, the localhost HTTP setup may not connect. In those cases, you will need to expose your local server publicly via HTTPS using a proxy service such as ngrok. Point the client at your HTTPS tunnel URL with the same /mcp path (and query parameters if you are not using server env credentials).
Credentials: If you do not use server env vars, put sisenseUrl and sisenseToken on the MCP URL as query parameters (URL params take precedence over env when both are present). Always percent-encode each value — see Configuration: URL encoding for details and examples.
Alternative connection patterns (placeholders only; use encoded values for real credentials):
http://localhost:3001/mcp?sisenseUrl=https://your-instance.sisense.com&sisenseToken=your-api-token
With SISENSE_URL and SISENSE_TOKEN in the server environment only:
http://localhost:3001/mcp
Behind a public HTTPS tunnel (example):
https://your-ngrok-url.ngrok-free.app/mcp?sisenseUrl=https://your-instance.sisense.com&sisenseToken=your-api-token
Claude (claude.ai and Desktop): Sisense CORS for interactive charts
In MCP App mode (the default), Anthropic Claude renders charts inside the MCP content UI—on claude.ai or Claude Desktop. The browser loads your Sisense instance from origins under *.claudemcpcontent.com, so Sisense must allow those origins or the widget fails with a network or CORS error.
In your Sisense instance, go to Admin → Security Settings → CORS Allowed Origins and add:
https://*.claudemcpcontent.com
Use this subdomain wildcard form. A single origin such as https://claudemcpcontent.com (no *.) may not match the actual frame origins and charts can still fail to load.
More context: FAQ: Claude MCP App charts and CORS.
Configuration
| Parameter | Description |
|---|---|
sisenseUrl | Full URL to your Sisense instance (e.g., https://instance.sisense.com). In the query string, pass the value percent-encoded. |
sisenseToken | Sisense API authentication token. In the query string, pass the value percent-encoded (required if the token contains &, =, +, etc.). |
PORT | (Optional) Server port, defaults to 3001 |
The server automatically derives its public base URL from request headers, so it works correctly behind proxies like ngrok. For how to build encoded MCP URLs, see URL encoding for query parameters.
Optional feature-flag query parameters
Defaults suit most setups; change flags when you need a specific client behavior. For when to use each flag, copy-paste URL patterns, and env vs query string, see docs/guides/configuration.md.
These query params override the corresponding env vars on a per-connection basis. Accepted values: true, false, 1, 0 (case-insensitive).
| Query parameter | Env var equivalent | Default | Description |
|---|---|---|---|
mcpAppEnabled | MCP_APP_ENABLED | true | Renders the chart in an interactive app UI (supported in Claude); set to false for tool mode (image/screenshot output) |
toolBuildQueryEnabled | TOOL_BUILD_QUERY_ENABLED | false | Enable the buildQuery tool for executing analytics queries |
toolBuildChartNarrativeEnabled | TOOL_BUILD_CHART_NARRATIVE_ENABLED | true | Include NLG narrative/insights in the build chart tool response |
Example URL with all three overrides (encode sisenseUrl and sisenseToken values when they are not simple alphanumeric placeholders):
http://localhost:3001/mcp?sisenseUrl=https://your-instance.sisense.com&sisenseToken=your-api-token&mcpAppEnabled=false&toolBuildQueryEnabled=true&toolBuildChartNarrativeEnabled=false
Development
# Run server in development mode with hot reload
bun run dev
# or npm run dev
# Build the project (View + server)
bun run build
# or npm run build
# Build only the analytics View (dist/view.html)
bun run build:view
# or npm run build:view
# Run tests
bun test
# or npm test (same as npm run test)
# Type checking
bun run type-check
# or npm run type-check
# Lint
bun run lint
# or npm run lint
Security Considerations
⚠️ NEVER commit credentials to version control
⚠️ Use secret managers or vaults - NOT environment variables in production
⚠️ NEVER bind to 0.0.0.0 in production - use 127.0.0.1 or Unix socket
⚠️ Recommended: Use dev or staging Sisense when you have them. Autonomous AI clients can issue many API calls, and prompts can be ambiguous. Non-production reduces the impact of mistakes and surprises.
⚠️ Enable authentication - never run without auth
⚠️ Approve EVERY tool call - review all parameters before execution
⚠️ Create dedicated Sisense service account with minimum required permissions
⚠️ Rotate credentials regularly (every 90 days recommended)
常见问题
io.github.sisense/sisense-mcp-server 是什么?
基于Sisense Intelligence的MCP server,提供可落地的洞察与分析能力。
相关 Skills
Slack动图
by anthropics
面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。
✎ 帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。
MCP构建
by anthropics
聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。
✎ 想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。
接口测试套件
by alirezarezvani
扫描 Next.js、Express、FastAPI、Django REST 的 API 路由,自动生成覆盖鉴权、参数校验、错误码、分页、上传与限流场景的 Vitest 或 Pytest 测试套件。
✎ 帮你把API与集成测试自动化跑顺,减少回归漏测;能力全面,尤其适合复杂接口场景的QA团队。
相关 MCP Server
Slack 消息
编辑精选by Anthropic
Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。
✎ 这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。
by netdata
io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。
✎ 这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。
by d4vinci
Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。
✎ 这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。