Uses .ENV files for configuration management of Qlik Sense connection details, authentication credentials, and API settings.
Integrates with GitHub Actions for automated build and publication processes to PyPI when new version tags are pushed.
Supports installation from PyPI and automated publication of new versions through GitHub Actions workflows.
Provides unified interface for Qlik Sense Enterprise Repository API and Engine API operations, enabling access to applications, users, data models, analytics, and data export functionality through 21 specialized tools.
Qlik Sense MCP Server
Model Context Protocol (MCP) server for integration with Qlik Sense Enterprise APIs. Provides unified interface for Repository API and Engine API operations through MCP protocol.
Table of Contents
- Overview
- Features
- Installation
- Configuration
- Usage
- API Reference
- Architecture
- Development
- Troubleshooting
- License
Overview
Qlik Sense MCP Server bridges Qlik Sense Enterprise with systems supporting Model Context Protocol. Server provides 21 tools for applications, data, users, and analytics operations.
Key Features
- Unified API: Single interface for all Qlik Sense APIs
- Security: Certificate-based authentication support
- Performance: Optimized queries and response handling
- Flexibility: Multiple data export formats
- Analytics: Advanced data analysis tools
Features
Repository API (Fully Working)
Command | Description | Status |
---|---|---|
get_apps | Retrieve list of applications | ✅ |
get_app_details | Get detailed application information | ✅ |
get_app_metadata | Get application metadata via REST API | ✅ |
get_users | Retrieve list of users | ✅ |
get_streams | Get list of streams | ✅ |
get_tasks | Retrieve list of tasks | ✅ |
start_task | Execute task | ✅ |
get_data_connections | Get data connections | ✅ |
get_extensions | Retrieve extensions | ✅ |
get_content_libraries | Get content libraries | ✅ |
Engine API (Fully Working)
Command | Description | Status |
---|---|---|
engine_get_doc_list | List documents via Engine API | ✅ |
engine_open_app | Open application via Engine API | ✅ |
engine_get_script | Get load script from application | ✅ |
engine_get_fields | Retrieve application fields | ✅ |
engine_get_sheets | Get application sheets | ✅ |
engine_get_table_data | Extract data from tables | ✅ |
engine_get_field_values | Get field values with frequency | ✅ |
engine_get_field_statistics | Get comprehensive field statistics | ✅ |
engine_get_data_model | Get complete data model | ✅ |
engine_create_hypercube | Create hypercube for analysis | ✅ |
engine_create_data_export | Export data in multiple formats | ✅ |
Installation
Quick Start with uvx (Recommended)
The easiest way to use Qlik Sense MCP Server is with uvx:
This command will automatically install and run the latest version without affecting your system Python environment.
Alternative Installation Methods
From PyPI
From Source (Development)
System Requirements
- Python 3.12+
- Qlik Sense Enterprise
- Valid certificates for authentication
- Network access to Qlik Sense server
Setup
- Setup certificates
- Create configuration
Configuration
Environment Variables (.env)
MCP Configuration
Create mcp.json
file for MCP client integration:
Usage
Start Server
Example Operations
Get Applications List
Create Data Analysis Hypercube
Export Data
API Reference
Repository API Functions
get_apps
Retrieves list of all Qlik Sense applications.
Parameters:
filter
(optional): Filter query for application search
Returns: Array of application objects with metadata
get_app_details
Gets detailed information about specific application.
Parameters:
app_id
(required): Application identifier
Returns: Application object with complete metadata
get_app_metadata
Retrieves comprehensive application metadata including data model.
Parameters:
app_id
(required): Application identifier
Returns: Object containing app overview, data model summary, sheets information
get_users
Retrieves list of Qlik Sense users.
Parameters:
filter
(optional): Filter query for user search
Returns: Array of user objects
get_streams
Gets list of application streams.
Parameters: None
Returns: Array of stream objects
get_tasks
Retrieves list of tasks (reload, external program).
Parameters:
task_type
(optional): Type filter ("reload", "external", "all")
Returns: Array of task objects with execution history
start_task
Executes specified task.
Parameters:
task_id
(required): Task identifier
Returns: Execution result object
get_data_connections
Gets list of data connections.
Parameters:
filter
(optional): Filter query for connection search
Returns: Array of data connection objects
get_extensions
Retrieves list of Qlik Sense extensions.
Parameters: None
Returns: Array of extension objects
get_content_libraries
Gets list of content libraries.
Parameters: None
Returns: Array of content library objects
Engine API Functions
engine_get_doc_list
Lists available documents via Engine API.
Parameters: None
Returns: Array of document objects with metadata
engine_open_app
Opens application via Engine API for further operations.
Parameters:
app_id
(required): Application identifier
Returns: Application handle object for subsequent operations
engine_get_script
Retrieves load script from application.
Parameters:
app_id
(required): Application identifier
Returns: Object containing script text and metadata
engine_get_fields
Gets list of fields from application.
Parameters:
app_id
(required): Application identifier
Returns: Array of field objects with metadata and statistics
engine_get_sheets
Retrieves application sheets.
Parameters:
app_id
(required): Application identifier
Returns: Array of sheet objects with metadata
engine_get_table_data
Extracts data from application tables.
Parameters:
app_id
(required): Application identifiertable_name
(optional): Specific table namemax_rows
(optional): Maximum rows to return (default: 1000)
Returns: Table data with headers and row information
engine_get_field_values
Gets field values with frequency information.
Parameters:
app_id
(required): Application identifierfield_name
(required): Field namemax_values
(optional): Maximum values to return (default: 100)include_frequency
(optional): Include frequency data (default: true)
Returns: Field values with frequency and metadata
engine_get_field_statistics
Retrieves comprehensive field statistics.
Parameters:
app_id
(required): Application identifierfield_name
(required): Field name
Returns: Statistical analysis including min, max, average, median, mode, standard deviation
engine_get_data_model
Gets complete data model with tables and associations.
Parameters:
app_id
(required): Application identifier
Returns: Data model structure with relationships
engine_create_hypercube
Creates hypercube for data analysis.
Parameters:
app_id
(required): Application identifierdimensions
(required): Array of dimension fieldsmeasures
(required): Array of measure expressionsmax_rows
(optional): Maximum rows to return (default: 1000)
Returns: Hypercube data with dimensions and measures
engine_create_data_export
Exports data in various formats.
Parameters:
app_id
(required): Application identifiertable_name
(optional): Table name for exportfields
(optional): Specific fields to exportformat_type
(optional): Export format ("json", "csv", "simple")max_rows
(optional): Maximum rows to export (default: 10000)filters
(optional): Field filters for data selection
Returns: Exported data in specified format
Architecture
Project Structure
System Components
QlikSenseMCPServer
Main server class handling MCP protocol operations, tool registration, and request routing.
QlikRepositoryAPI
HTTP client for Repository API operations including applications, users, tasks, and metadata management.
QlikEngineAPI
WebSocket client for Engine API operations including data extraction, analytics, and hypercube creation.
QlikSenseConfig
Configuration management class handling environment variables, certificate paths, and connection settings.
Development
Development Environment Setup
The project includes a Makefile with common development tasks:
Version Management and Releases
Use Makefile commands for version management:
This will automatically:
- Bump the version in
pyproject.toml
- Create a new branch
- Commit changes
- Push branch and create PR
Publishing Process
- Merge PR with version bump
- Create and push tag to trigger automatic PyPI publication:
- GitHub Actions will automatically build and publish to PyPI
Clean Git History
If you need to start with a clean git history:
Warning: This completely removes git history!
Adding New Functions
- Add tool definition in server.py
- Add handler in server.py
- Implement method in API client
Code Standards
The project uses standard Python conventions. Build and test the package:
Troubleshooting
Common Issues
Certificate Errors
Solution:
- Verify certificate paths in
.env
- Check certificate expiration
- Set
QLIK_VERIFY_SSL=false
for testing
Connection Errors
Solution:
- Verify port 4747 accessibility
- Check server URL correctness
- Verify firewall settings
Authentication Errors
Solution:
- Verify
QLIK_USER_DIRECTORY
andQLIK_USER_ID
- Check user exists in Qlik Sense
- Verify user permissions
Diagnostics
Test Repository API
Test Engine API
Performance
Optimization Recommendations
- Use filters to limit data volume
- Cache results for frequently used queries
- Limit result size with
max_rows
parameter - Use Repository API for metadata (faster than Engine API)
Benchmarks
Operation | Average Time | Recommendations |
---|---|---|
get_apps | 0.5s | Use filters |
get_app_metadata | 2-5s | Cache results |
engine_create_hypercube | 1-10s | Limit size |
engine_create_data_export | 5-30s | Use pagination |
Security
Recommendations
- Store certificates securely - exclude from git
- Use environment variables for sensitive data
- Limit user permissions in Qlik Sense
- Update certificates regularly
- Monitor API access
Access Control
Create user in QMC with minimal required permissions:
- Read applications
- Execute tasks (if needed)
- Access Engine API
License
MIT License
Copyright (c) 2025 Stanislav Chernov
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Project Status: Production Ready | 21/21 Commands Working | v1.0.0
Installation: uvx qlik-sense-mcp-server
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
Provides unified interface for Qlik Sense Enterprise APIs through Model Context Protocol, offering 21 tools for managing applications, data, users, and analytics operations.
- Table of Contents
- Overview
- Features
- Installation
- Configuration
- Usage
- API Reference
- Architecture
- Development
- Troubleshooting
- Performance
- Security
- License
Related Resources
Related MCP Servers
- AsecurityFlicenseAqualityEnables interaction with Linear's API for managing issues, teams, and projects programmatically through the Model Context Protocol.Last updated -7833JavaScript
- AsecurityAlicenseAqualityAn implementation of the Model Context Protocol for the Opik platform that provides a unified interface for accessing Opik's capabilities, supporting multiple transport mechanisms for flexible integration with IDEs and other environments.Last updated -19138TypeScriptApache 2.0
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI agents to interact with 30+ Ethereum-compatible blockchain networks, providing services like token transfers, contract interactions, and ENS resolution through a unified interface.Last updated -28613301TypeScriptMIT License
- -securityFlicense-qualityEnables AI models to interact with Linear for issue tracking and project management through the Model Context Protocol, supporting capabilities like creating issues, searching, managing sprints, and bulk updating statuses.Last updated -5TypeScript