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)
6 Replies
meri45clark
Contributor
Contributor

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) ezcardinfo com

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

marksouzacosta
MVP
MVP

Hi @nico19505 ,

I don't think Qlik MCP Supports Bearer Authentication and I don't think Gemini Supports Qlik MCP Server.

 

Regards,

Mark Costa

Read more at Data Voyagers - datavoyagers.net
Follow me on my LinkedIn | Know IPC Global at ipc-global.com

Leigh_Kennedy
Employee
Employee

I don't know on the Google side, 

But here is my config that works with LM Studio:

{
  "mcpServers": {
    "Remote_Qlik_MCP": {
      "url": "https://abc.ap.qlikcloud.com/api/ai/mcp",
      "auth": {
        "CLIENT_ID": "myid",
        "CLIENT_SECRET": "my_secret"
      }
    }
  }
}


In the OAUTH config, I have:

Client type: web
Redirect URLS:  http://127.0.0.1:33389/mcp-oauth-callback 


and the rest is as recommended in the docs.

agigliotti
MVP
MVP

Hi @nico19505 ,

I suggest you to use API Key to authenticate Gemini CLI vs Qlik MCP.

Best Regards

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
Daniele_Purrone
Support
Support

@marksouzacosta 

The web based version of Gemini does not support MCP servers.
However, the CLI version does.

Daniele - Principal Technical Support Engineer & SaaS Support Coordinator at Qlik
If a post helps to resolve your issue, please accept it as a Solution.
marksouzacosta
MVP
MVP

@Daniele_Purrone, I was referring to the oAuth authentication. Qlik MCP only works oAuth authentication and Gemini CLI does not - at least as far as I have tested.

Read more at Data Voyagers - datavoyagers.net
Follow me on my LinkedIn | Know IPC Global at ipc-global.com