Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
nico19505
Partner - Contributor
Partner - Contributor

Connect Qlik MCP in Gemini CLI

Has anyone already connected the Qlik MCP to Gemini CLI?

I’m trying to retrieve Qlik information within my Gemini setup.

I created a user with the appropriate permissions, as described in the Qlik Help documentation, to connect Gemini to Qlik using OAuth.

I then generated a token using the client ID and client secret of the user, and added it to the Gemini configuration like this:

{
  "mcpServers": {
    "qlik-cloud": {
      "httpUrl": "https://<MY_TENANT_QLIK>.qlikcloud.com/api/ai/mcp",
      "headers": {
        "Authorization": "Bearer <MY_TOKEN_OAUTH>"
      }
    }
  }
}

 

However, when I run /mcp list, Gemini indicates that Qlik Sense is disconnected.

Has anyone experienced this issue before or managed to get it working?

Labels (2)
1 Reply
meri45clark
New Member
New Member

Most likely issue is auth/token or MCP handshake, not your JSON.

Quick checks:

Make sure the OAuth token has correct scopes + audience for /api/ai/mcp

Test endpoint directly:

curl -H "Authorization: Bearer <TOKEN>" https://<TENANT>.qlikcloud.com/api/ai/mcp
If this returns 401/403 → Qlik config/token issue
If it works → Gemini CLI config issue (header/format)
Try removing headers in MCP config to isolate auth behavior
Also ensure token is not expired (very common)

If /mcp list shows “disconnected”, it usually means handshake failed, not just missing data.