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

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
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 Solution

Accepted Solutions
marksouzacosta
MVP
MVP

Thank you @Daniele_Purrone and @Laurent_Cornilleau. It is finally working on my side now.

On Qlik Cloud side
-------------------------------------------------

Create an oAuth Client and add the following callback URLs:

https://antigravity.google/oauth-callback
http://localhost:7777/oauth/callback

For reference, I have used these properties in my oAuth Client:
Client Type: Native
Scopes: user_defaul and mcp:execute
Published: no
Consent method: required


On Windows side
-------------------------------------------------

Antigravity

Config file location:
C:\Users\<you>\.gemini\config\mcp_config.json

MCP Server:

{
  "mcpServers": {
    "data-voyagers-qlik-mcp": {
      "serverUrl": "https://<your-tenant>.us.qlikcloud.com/api/ai/mcp",
      "oauth": {
        "clientId": "<your-client-id>"
      }
    }
  }
}

 

Result:

marksouzacosta_0-1780419304231.png

Antigravity IDE

Shares Antigravity configuration. Only need to re-authenticate.

marksouzacosta_1-1780419427377.png

Gemini CLI

Config file location:
C:\Users\<you>\.gemini\settings.json

MCP Server:

{
  "mcpServers": {
    "data-voyagers-qlik-mcp": {
      "url": "https://<your-tenant>.us.qlikcloud.com/api/ai/mcp",
      "oauth": {
        "clientId": "<your-client-id>",
        "redirectUri": "http://localhost:7777/oauth/callback"
      }
    }
  }
}

Open your Gemini CLI and type:

/mcp auth <name-of-your-mcp-server>

In my example:

/mcp auth data-voyagers-qlik-mcp

 

Result:

marksouzacosta_2-1780420883672.png

Regards,

Mark Costa

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

View solution in original post

10 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

Daniele_Purrone
Support
Support

@marksouzacosta , I currently don't have a Gemini CLI setup to test it myself, but I've heard internally that it is possible to connect.
And here's the Gemini page about Oauth Support: https://geminicli.com/docs/tools/mcp-server/#oauth-support-for-remote-mcp-servers 

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

I confirmed that it works. A an alternative you can use Antigravity 2.0 (IDE or CLI). Even if Google will still continue to support Gemini CLI for Enterprise customers (N.B it will be stopped for for Google AI Pro and Ultra on June 18th), they recommand to move to Antigravity CLI.

marksouzacosta
MVP
MVP

Thank you @Daniele_Purrone and @Laurent_Cornilleau. It is finally working on my side now.

On Qlik Cloud side
-------------------------------------------------

Create an oAuth Client and add the following callback URLs:

https://antigravity.google/oauth-callback
http://localhost:7777/oauth/callback

For reference, I have used these properties in my oAuth Client:
Client Type: Native
Scopes: user_defaul and mcp:execute
Published: no
Consent method: required


On Windows side
-------------------------------------------------

Antigravity

Config file location:
C:\Users\<you>\.gemini\config\mcp_config.json

MCP Server:

{
  "mcpServers": {
    "data-voyagers-qlik-mcp": {
      "serverUrl": "https://<your-tenant>.us.qlikcloud.com/api/ai/mcp",
      "oauth": {
        "clientId": "<your-client-id>"
      }
    }
  }
}

 

Result:

marksouzacosta_0-1780419304231.png

Antigravity IDE

Shares Antigravity configuration. Only need to re-authenticate.

marksouzacosta_1-1780419427377.png

Gemini CLI

Config file location:
C:\Users\<you>\.gemini\settings.json

MCP Server:

{
  "mcpServers": {
    "data-voyagers-qlik-mcp": {
      "url": "https://<your-tenant>.us.qlikcloud.com/api/ai/mcp",
      "oauth": {
        "clientId": "<your-client-id>",
        "redirectUri": "http://localhost:7777/oauth/callback"
      }
    }
  }
}

Open your Gemini CLI and type:

/mcp auth <name-of-your-mcp-server>

In my example:

/mcp auth data-voyagers-qlik-mcp

 

Result:

marksouzacosta_2-1780420883672.png

Regards,

Mark Costa

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