How to Query Live Bitbucket Data in Perplexity MacOS Desktop

Yazhini G
Yazhini G
Technical Marketing Engineer
Connect to and query live Bitbucket Data in Perplexity Desktop using the CData MCP Server.

Perplexity is an AI-powered research and answer engine that allows users to combine web search, structured data, and connected tools through a unified conversational interface. With Perplexity Desktop for macOS, users can bring local tools and data sources directly into their workflow using MCP, enabling fast, context-aware insights powered by live data.

Model Context Protocol (MCP) is an emerging, open-source standard for connecting LLMs with external services and enterprise data sources. Using MCP Servers, AI clients such as Perplexity Desktop can securely interact with applications and data, performing actions, retrieving live information, and enabling natural language access to data.

In this article, we guide you through installing the CData MCP Server for Bitbucket, configuring the connection to Bitbucket, and interacting with your live Bitbucket data from Perplexity Desktop.

Step 1: Download and install the CData MCP Server for Bitbucket

  1. To begin, download the CData MCP Server for Bitbucket
  2. Find and double-click the installer to begin the installation
  3. Drag the CData MCP Server app into the Applications folder

When the installation is complete, you are ready to configure your MCP Server by connecting to Bitbucket.

NOTE: Since you downloaded the application from the internet and not the Apple App Store, you may see a warning that the application was not opened because Apple could not verify its security. You may continue with the installation.

Installing a trusted, unverified App

CData's solutions are trusted across the globe by some of the largest software vendors in the world. That said, if you have any concerns about continuing, please consult with your IT and/or security team.

  1. In the warning message that pops up, click "Done"
  2. Open "System Settings" on your machine and navigate to the "Privacy & Security" page
  3. Scroll down to the "Security" section and click "Open Anyway"
  4. Authorize the installation (passkey or password)

Step 2: Configure the Connection to Bitbucket

  1. After installation, you can open the CData MCP Server for Bitbucket from the Applications folder on your mac
  2. Click the dropdown menu in MCP Configuration > Configuration Name and select "new configuration"
  3. Name the configuration (e.g. "cdata_bitbucket") and click "OK"
  4. Enter the appropriate connection properties in the configuration wizard.

    For most queries, you must set the Workspace. The only exception to this is the Workspaces table, which does not require this property to be set, as querying it provides a list of workspace slugs that can be used to set Workspace. To query this table, you must set Schema to 'Information' and execute the query SELECT * FROM Workspaces>.

    Setting Schema to 'Information' displays general information. To connect to Bitbucket, set these parameters:

    • Schema: To show general information about a workspace, such as its users, repositories, and projects, set this to Information. Otherwise, set this to the schema of the repository or project you are querying. To get a full set of available schemas, query the sys_schemas table.
    • Workspace: Required if you are not querying the Workspaces table. This property is not required for querying the Workspaces table, as that query only returns a list of workspace slugs that can be used to set Workspace.

    Authenticating to Bitbucket

    Bitbucket supports OAuth authentication only. To enable this authentication from all OAuth flows, you must create a custom OAuth application, and set AuthScheme to OAuth.

    Be sure to review the Help documentation for the required connection properties for you specific authentication needs (desktop applications, web applications, and headless machines).

    Creating a custom OAuth application

    From your Bitbucket account:

    1. Go to Settings (the gear icon) and select Workspace Settings.
    2. In the Apps and Features section, select OAuth Consumers.
    3. Click Add Consumer.
    4. Enter a name and description for your custom application.
    5. Set the callback URL:
      • For desktop applications and headless machines, use http://localhost:33333 or another port number of your choice. The URI you set here becomes the CallbackURL property.
      • For web applications, set the callback URL to a trusted redirect URL. This URL is the web location the user returns to with the token that verifies that your application has been granted access.
    6. If you plan to use client credentials to authenticate, you must select This is a private consumer. In the driver, you must set AuthScheme to client.
    7. Select which permissions to give your OAuth application. These determine what data you can read and write with it.
    8. To save the new custom application, click Save.
    9. After the application has been saved, you can select it to view its settings. The application's Key and Secret are displayed. Record these for future use. You will use the Key to set the OAuthClientId and the Secret to set the OAuthClientSecret.
  5. Click "Connect" to authenticate with Bitbucket through OAuth.
  6. Click "Save Configuration" to save the MCP server

With your MCP Server configured, you are ready to connect it to Perplexity Desktop.

Step 3: Connect the MCP Server to Perplexity Desktop

  1. Download the Perplexity Desktop application for macOS and sign in with your Pro or Premium account
  2. Open Settings > Connectors. If the Perplexity Helper App is not installed, you will be prompted to download it. Install the Helper App, then restart Perplexity Desktop
  3. After restarting, return to Settings > Connectors and click Add Connector
  4. Select the Simple tab and assign a name for the connector (e.g., "CData Bitbucket MCP"). In the Command box, enter the absolute path to your MCP Server executable.

    For example:

    	/Applications/CData MCP Server for Bitbucket.app/Contents/Payload/jre/Contents/Home/bin/java \
    	-jar /Applications/CData MCP Server for Bitbucket.app/Contents/Payload/lib/cdata.mcp.bitbucket.jar \
    	cdata_bitbucket
    
  5. Click Save. Your MCP Server should now appear in the connector list with a "Running" status

Step 4: Query Your Live Bitbucket data in Perplexity Desktop

  1. Open a new chat in Perplexity Desktop. Click the Sources toggle and enable your MCP Server
  2. Start asking questions about your Bitbucket data. For example:

    "List all the tables available in my Bitbucket data connection."

Connect your AI to your Bitbucket data today!

CData MCP Servers make it simple to connect Perplexity and other LLM clients to real-time enterprise data. Download a free, 30-day trial and join the CData Community to share insights, ask questions, and help shape the future of enterprise-ready AI.

Ready to get started?

Download a free Bitbucket MCP Server to get started:

 Download Now

Learn more:

Bitbucket Icon Bitbucket MCP Server

The CData MCP Server for Bitbucket allows you to connect with live Bitbucket data, directly from LLMs that support MCP.