Qlik Sense MCP Server
Qlik Sense MCP 服务器
用于 Qlik Sense Enterprise 的模型上下文协议 (Model Context Protocol) 服务器。它将 Qlik 的存储库 (HTTP) 和引擎 (WebSocket) API 公开为 24 个 MCP 工具,以便 LLM 客户端可以通过单一统一接口发现应用程序、检查数据模型、构建超立方体 (hypercubes) 并管理重载任务。
功能概览
领域 | 工具 | 用途 |
存储库 (应用程序与元数据) |
| 发现应用程序,列出带有基数的表和字段 |
引擎 (数据与脚本) |
| 读取加载脚本,列出可视化对象,查询字段值,构建超立方体 |
重载任务 |
| 检查、触发和管理重载任务 |
完整工具列表及说明:docs/tools.md。
Related MCP server: Looker Admin MCP
快速入门
uvx qlik-sense-mcp-server服务器以 流式 HTTP 模式在 http://127.0.0.1:8000/mcp 上启动。通过环境变量进行配置 — 请参阅 docs/configuration.md。
对于 stdio 模式(传统 MCP 传输),请传递 --stdio。
文档
文档 | 内容 |
要求,通过 | |
所有 | |
传输方式,服务器启动命令,推荐的调用顺序,此服务器强制执行的硬限制 | |
全部 24 个工具清单,响应/错误封装,错误类别 | |
项目布局,组件,连接缓存,严格 ID 匹配,两级超时 | |
| |
常见错误,超立方体规划失败,详细日志记录,配置自测 | |
发行说明 |
v1.4.0 系列的关键事实
缓存引擎 WebSocket 连接。 一旦打开应用程序,针对同一
app_id的后续每次工具调用都会重用相同的 WebSocket 和相同的打开文档。切换app_id会关闭旧文档并在同一套接字上打开新文档。断开的连接会自动透明地重新打开。实现:engine。实现:[engine_api.py](qlik_sense_mcp_server/engine_api.py) 和 [docs/architecture.md`。默认使用流式 HTTP 传输。 服务器是一个长驻进程;多个 MCP 客户端可以并行与其通信。传统的 stdio 模式仍然可以通过
--stdio使用。tool_call_seconds作为每个工具响应的第一个键注入 — 以毫秒为单位的调用挂钟时间。使用它来发现缓慢的工具。硬性超立方体限制。
engine_create_hypercube会立即拒绝max_rows > 5000或columns * max_rows > 9900的请求,并提供结构化错误和指向集合分析 (set-analysis) 或 Top-N 模式的提示。Qlik 引擎本身对于任何超过 10000 个单元格的单页会返回 错误 7009calc-pages-too-large。单一超时旋钮。
QLIK_WS_TIMEOUT(默认180.0秒)控制 WebSocket 握手和每次引擎 API 调用。
要求
Python 3.12(该包是针对此版本构建和测试的;请参阅
pyproject.toml)Qlik Sense Enterprise(存储库端口 4242,引擎端口 4747 — 标准端口)
来自 Qlik Sense 节点的客户端证书、私钥和根 CA
从运行此服务器的主机到 Qlik 的网络访问
免责声明
本项目是一个独立的、社区构建的集成。它不隶属于 Qlik Technologies Inc.、QlikTech International AB 或任何其他 Qlik 实体,也不受其认可、赞助或支持。“Qlik”、“Qlik Sense”、“QlikView”及所有相关产品名称均为其各自所有者的商标。
本项目中使用的关于 Qlik Sense API、端口分配、错误代码、协议行为和使用模式的所有信息均完全从公开来源获得 — Qlik 开发者门户 (help.qlik.com, qlik.dev)、Qlik 社区论坛以及其他公开文档。未使用任何专有、机密或逆向工程材料。
许可证
MIT © 2025-2026 Stanislav Chernov
Available Tools
10 toolsengine_create_hypercubeA
Create hypercube for data analysis with custom sorting options. IMPORTANT: To get top-N records, use qSortByExpression: 1 in dimension sorting with qExpression containing the measure formula (e.g., 'Count(field)' for ascending, '-Count(field)' for descending). Measure sorting is ignored by Qlik Engine.
Inputs: app_id (required), dimensions, measures, max_rows.
get_app_detailsB
Get compact application info with filters by guid or name (case-insensitive). Returns metainfo, tables/fields list, master items, sheets and objects with used fields.
Inputs: app_id, name.
get_app_fieldC
Return values of a single field from app with pagination and wildcard search (supports * and %).
Inputs: app_id (required), field_name (required), limit, offset, +3 more.
get_app_field_statisticsC
Get comprehensive statistics for a field
Inputs: app_id (required), field_name (required).
get_app_objectC
Get specific object layout by calling GetObject and GetLayout sequentially via WebSocket.
Inputs: app_id (required), object_id (required).
get_appsA
Get list of Qlik Sense applications with essential fields and filters (name, stream, published) and pagination.
Inputs: limit, offset, name, stream, +1 more.
get_app_scriptC
Get load script from app
Inputs: app_id (required).
get_app_sheet_objectsC
Get list of objects from specific sheet with object ID, type and description.
Inputs: app_id (required), sheet_id (required).
get_app_sheetsC
Get list of sheets from application with title and description.
Inputs: app_id (required).
get_app_variablesB
Return variables split by source (script/ui) with pagination and wildcard search.
Inputs: app_id (required), limit, offset, created_in_script, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Every tool has a clearly distinct purpose targeting specific Qlik Sense resources like apps, fields, objects, sheets, variables, or hypercubes, with no overlap in functionality. The descriptions reinforce this by detailing unique operations such as retrieving field statistics versus field values, ensuring agents can easily differentiate between tools.
All tool names follow a consistent verb_noun pattern with 'get_' or 'engine_' prefixes, using snake_case uniformly (e.g., get_app_details, get_app_field, engine_create_hypercube). This predictability makes the tool set easy to navigate and understand at a glance.
With 10 tools, the server is well-scoped for interacting with Qlik Sense applications, covering essential operations like listing apps, retrieving details, fields, objects, sheets, variables, scripts, and creating hypercubes. Each tool serves a distinct role without redundancy, fitting the domain appropriately.
The tool set provides comprehensive read and analysis capabilities for Qlik Sense apps, including data retrieval, statistics, and hypercube creation, but lacks write operations (e.g., updating or deleting apps, fields, or objects). This minor gap may limit agents in full lifecycle management but supports core query and analysis workflows effectively.
Maintenance
Related MCP Connectors
Governed data discovery, exact queries, decisions, simulations, and runtime utilities over MCP.
Read and edit GA4, Search Console and Google Tag Manager from any MCP client. 29 tools.
Governed BI MCP. Ask questions of live company data and list workspace sources via OAuth.
Securely query and analyze business data, dashboards, projections, alerts, and knowledge.
Related MCP Servers
- AlicenseBqualityCmaintenanceConnects AI assistants like Claude to Qlik Cloud and Qlik Sense Enterprise environments, enabling natural language interactions for analytics, app management, reloads, user administration, and data governance across 34 tools.3416MIT
- FlicenseNot gradedqualityDmaintenanceProvides over 60 administrative tools for managing users, groups, roles, schedules, alerts, and content access within Looker through the Model Context Protocol. It enables full administration of Looker environments, including permission management and system configuration.1-
- AlicenseAqualityDmaintenanceA comprehensive MCP server that provides complete access to Qlik Sense applications and their detailed information for AI assistants and other MCP clients.918MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI applications to interact with Power BI through the Model Context Protocol, supporting comprehensive API operations including data retrieval and management.-