【MCP Server】Bitbucket × Claude Desktop 連携ガイド | AI でデータを徹底活用

加藤龍彦
加藤龍彦
デジタルマーケティング
CData Bitbucket MCP Server をインストールして、Bitbucket のデータをAI モデルのClaude から分析する方法を解説します。使い慣れた業務システムのデータをAI で簡単に活用できます。

Model Context Protocol (MCP) is an emerging, open-source standard for connecting LLMs with external services and data sources. Through MCP Servers, AI clients can perform actions like opening Jira tickets, posting Slack messages, committing GitHub branches and more. With CData MCP Servers, these capabilities expand exponentially.

In this article, we guide the reader through installing the CData MCP Server for Bitbucket, configuring the connection to Bitbucket, and asking questions of the data in Claude Desktop.

Prerequisites

You need to download Claude Desktop (download) and create an account before continuing.

Overview

Here's a quick overview of the steps:

  1. Download and install the CData MCP Server for Bitbucket
  2. Configure the connection to Bitbucket
  3. Ask questions about the data in Claude Desktop

Step 1: Download and install the CData MCP Server

  1. To begin, navigate to https://www.cdata.com/solutions/mcp/connectors and download the CData MCP Server for Bitbucket.
  2. Find and double-click the installer to begin the installation.
  3. Follow the prompts to complete the installation.

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

Step 2: Configure the connection to Bitbucket

  1. After installation, the CData MCP Server configuration wizard should open automatically.

    NOTE: If the wizard does not open automatically, search for "CData MCP Server" in the Windows search bar and double-click the application.

  2. Click the dropdown menu in MCP Configuration > Configuration Name and select ""
  3. Name the configuration (e.g. "cdatabitbucket") and click "OK."

    NOTE: This name is used as the name for the MCP server and as the prefix for all of the MCP Server's tools.

  4. Connecting to Bitbucket

    ほとんどのクエリでは、ワークスペースを設定する必要があります。唯一の例外は、Workspacesテーブルです。このテーブルはこのプロパティの設定を必要とせず、クエリを実行すると、Workspaceの設定に使用できるワークスペーススラッグのリストが提供されます。このテーブルにクエリを実行するには、スキーマを'Information'に設定し、SELECT * FROM Workspacesクエリを実行する必要があります。

    Schemaを'Information'に設定すると、一般的な情報が表示されます。Bitbucketに接続するには、以下のパラメータを設定してください。

    • Schema: ワークスペースのユーザー、リポジトリ、プロジェクトなどの一般的な情報を表示するには、これを'Information'に設定します。それ以外の場合は、クエリを実行するリポジトリまたはプロジェクトのスキーマに設定します。利用可能なスキーマの完全なセットを取得するには、sys_schemasテーブルにクエリを実行してください。
    • Workspace: Workspacesテーブルにクエリを実行する場合を除き、必須です。Workspacesテーブルへのクエリにはこのプロパティは必要ありません。そのクエリはWorkspaceの設定に使用できるワークスペーススラッグのリストのみを返すためです。

    Bitbucketでの認証

    BitbucketはOAuth認証のみをサポートしています。すべてのOAuthフローからこの認証を有効にするには、カスタムOAuthアプリケーションを作成し、AuthSchemeをOAuthに設定する必要があります。

    特定の認証ニーズ(デスクトップアプリケーション、Webアプリケーション、ヘッドレスマシン)に必要な接続プロパティについては、ヘルプドキュメントを必ず確認してください。

    カスタムOAuthアプリケーションの作成

    Bitbucketアカウントから、以下のステップを実行します。

    1. 設定(歯車アイコン)に移動し、ワークスペース設定を選択します。
    2. アプリと機能セクションで、OAuthコンシューマーを選択します。
    3. コンシューマーを追加をクリックします。
    4. カスタムアプリケーションの名前と説明を入力します。
    5. コールバックURLを設定します。
      • デスクトップアプリケーションとヘッドレスマシンの場合、http://localhost:33333または任意のポート番号を使用します。ここで設定するURIがCallbackURLプロパティになります。
      • Webアプリケーションの場合、信頼できるリダイレクトURLにコールバックURLを設定します。このURLは、ユーザーがアプリケーションにアクセスが許可されたことを確認するトークンを持って戻るWebの場所です。
    6. クライアント認証情報を使用して認証する予定の場合、これはプライベートコンシューマーですを選択する必要があります。ドライバーでは、AuthSchemeをclientに設定する必要があります。
    7. OAuthアプリケーションに与える権限を選択します。これにより、読み取りおよび書き込みできるデータが決まります。
    8. 新しいカスタムアプリケーションを保存するには、保存をクリックします。
    9. アプリケーションが保存された後、それを選択して設定を表示できます。アプリケーションのKeyとSecretが表示されます。これらを将来の使用のために記録してください。Keyを使用してOAuthClientIdを設定し、Secretを使用してOAuthClientSecretを設定します。

    Enter the appropriate connection properties in the configuration wizard.

  5. Click "Connect" to authenticate with Bitbucket through OAuth.

    NOTE: The configuration wizard should open your browser and ask you to sign into Bitbucket. If your browser does not open, close the configuration wizard and re-open the application using "Run as Administrator" (see below).

  6. Finally, click "Save Configuration" to save the MCP server.

    NOTE: This saves the configuration details to a separate file and updates the Claude Desktop configuration file (claude_desktop_config.json) to start the CData MCP Server when the Claude Desktop client starts.

With the CData MCP Server configured, you are ready to start asking questions of your live data from Claude.

Step 3: Ask AI for answers from live Bitbucket のデータ

Now that we have installed the CData MCP Server and configured a connection, we are ready to start with Bitbucket のデータ in Claude Desktop.

  1. Open Claude Desktop. It may take a moment for the MCP Servers to start, but you will see the list of servers and tools available in the Claude interface (look for the settings icon below the prompt bar).

    You can individually enable and disable specific tools by clicking on the server name.

  2. Now that you have connected, you can ask Claude questions about the Bitbucket のデータ. For example: "Can you give me a quantitative analysis about my closed-won opportunities by industry?"

    NOTE: Claude may need to explore the Bitbucket のデータ to make sense of it before it can begin answering questions of the data. The tabular model presented by CData alongside the database tools available simplify the data exploration and analysis for an LLM.

Connect your AI to your data today!

CData MCP Servers make it easier than ever for LLMs to work with live enterprise data. To explore the technology hands-on, download a free, 30-day trial or visit the CData Community to share insights, ask questions, and help shape the future of enterprise-ready AI.

はじめる準備はできましたか?

Bitbucket MCP Server の無料トライアルをダウンロード:

 ダウンロード

詳細:

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.