Sisense Mcp Server

io.github.sisense由 GitHub 帳號 sisense 發布v0.2.2更新於 Nov 3, 2026

MCP server leveraging Sisense Intelligence for actionable insights and analytics.

發布方自己的服務:Sisense

已驗證STDIO僅桌面資料庫資料與分析

概覽

AI 產生的概覽

將助理連接到 Sisense 分析執行個體,可列出資料模型與欄位,並依自然語言提示產生圖表。

可以做什麼
  • 列出 Sisense 資料來源與資料模型
  • 查看指定資料來源可用的欄位
  • 依自然語言提示建立圖表,在支援 MCP Apps 的用戶端以互動檢視呈現,或輸出為圖片
  • 在啟用對應功能旗標後,可選擇執行分析查詢
  • 在圖表回應中附上自然語言敘述與洞察
適用情境
適用於使用 Sisense 部署、想讓助理探索資料模型並自動產生圖表或查詢的情境。請注意此儲存庫已標示為棄用且不再維護,Sisense 2026.3.1 起改為提供以 OAuth 為基礎的託管端點。
執行需求
以本機 Node.js 程序執行(需 Node.js 18 以上,專案腳本使用 Bun),從 npm 套件啟動後預設在 3001 埠提供 streamable HTTP 端點。需要可存取 API 的 Sisense 執行個體、SISENSE_URL 與 SISENSE_TOKEN 的值,並為自然語言工具啟用 Cloud-Linked Features。安裝時會自動安裝 Playwright Chromium。
安裝前請注意
Sisense API 權杖屬於憑證,可透過 SISENSE_TOKEN 環境變數或 MCP URL 查詢參數傳入,後者可能出現在日誌或通道網址中。README 提醒不要提交憑證、不要綁定 0.0.0.0、不要在無驗證下執行,並建議使用最小權限的服務帳號、逐次核准工具呼叫以及非正式環境。在 Claude 中呈現圖表需在 Sisense 的 CORS 設定中允許外部來源;工作階段存於記憶體,重新啟動後圖表狀態會遺失。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Sisense Mcp Server,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Sisense MCP Server

[!WARNING] Deprecated. This repository is no longer maintained and will be archived. The Sisense MCP Server is now a hosted endpoint with OAuth 2.1, available in Sisense 2026.3.1. See the Sisense MCP Server documentation to set it up. This repository will not receive further features or fixes.

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 source
    • buildChart: Build charts from natural language prompts
    • buildQuery (optional): Run analytics queries when TOOL_BUILD_QUERY_ENABLED / toolBuildQueryEnabled is enabled
  • MCP Apps: When used in MCP Apps–capable clients (for example Claude), buildChart exposes 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): the bun package is a devDependency, so after npm install or bun install the Bun binary is available under node_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 buildChart and buildQuery. 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 install via postinstall)

Installation

bash
bun install# ornpm install

Usage

Start the server:

bash
# Development mode (hot reload)bun run dev# ornpm run dev
# Production modebun run build && bun run start# ornpm 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):

text
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:

json
{  "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):

text
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:

text
http://localhost:3001/mcp

Behind a public HTTPS tunnel (example):

text
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

ParameterDescription
sisenseUrlFull URL to your Sisense instance (e.g., https://instance.sisense.com). In the query string, pass the value percent-encoded.
sisenseTokenSisense 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 parameterEnv var equivalentDefaultDescription
mcpAppEnabledMCP_APP_ENABLEDtrueRenders the chart in an interactive app UI (supported in Claude); set to false for tool mode (image/screenshot output)
toolBuildQueryEnabledTOOL_BUILD_QUERY_ENABLEDfalseEnable the buildQuery tool for executing analytics queries
toolBuildChartNarrativeEnabledTOOL_BUILD_CHART_NARRATIVE_ENABLEDtrueInclude 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):

text
http://localhost:3001/mcp?sisenseUrl=https://your-instance.sisense.com&sisenseToken=your-api-token&mcpAppEnabled=false&toolBuildQueryEnabled=true&toolBuildChartNarrativeEnabled=false

Development

bash
# Run server in development mode with hot reloadbun 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 testsbun test# or npm test (same as npm run test)
# Type checkingbun run type-check# or npm run type-check
# Lintbun 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)

來源:README.md,提交 2f7337d

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.2.2最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。

其他 Sisense 整合