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

加藤龍彦
加藤龍彦
デジタルマーケティング
CData HubDB MCP Server をインストールして、HubDB のデータを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 HubDB, configuring the connection to HubDB, 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 HubDB
  2. Configure the connection to HubDB
  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 HubDB.
  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 HubDB.

Step 2: Configure the connection to HubDB

  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. "cdatahubdb") 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 HubDB

    HubDBデータソースへの接続には、パブリックHubSpotアプリケーションを使用したOAuth認証とプライベートアプリケーショントークンを使用した認証の2つの方法があります。

    カスタムOAuthアプリを使用する

    すべてのOAuthフローでAuthSchemeを"OAuth"に設定する必要があります。特定の認証ニーズ(デスクトップアプリケーション、Webアプリケーション、ヘッドレスマシン)に必要な接続プロパティについては、ヘルプドキュメントを確認してください。

    アプリケーションを登録し、OAuthクライアント認証情報を取得するには、以下の手順を実行してください。

    1. HubSpotアプリ開発者アカウントにログインします。
      • アプリ開発者アカウントである必要があります。標準のHubSpotアカウントではパブリックアプリを作成できません。
    2. 開発者アカウントのホームページで、アプリタブをクリックします。
    3. アプリを作成をクリックします。
    4. アプリ情報タブで、ユーザーが接続する際に表示される値を入力し、必要に応じて変更します。これらの値には、パブリックアプリケーション名、アプリケーションロゴ、アプリケーションの説明が含まれます。
    5. 認証タブで、「リダイレクトURL」ボックスにコールバックURLを入力します。
      • デスクトップアプリケーションを作成する場合は、http://localhost:33333のようなローカルにアクセス可能なURLに設定します。
      • Webアプリケーションを作成する場合は、ユーザーがアプリケーションを承認した際にリダイレクトされる信頼できるURLに設定します。
    6. アプリを作成をクリックします。HubSpotがアプリケーションとそれに関連する認証情報を生成します。
    7. 認証タブで、クライアントIDクライアントシークレットを確認します。これらは後でドライバーを設定する際に使用します。
    8. スコープの下で、アプリケーションの意図する機能に必要なスコープを選択します。

      テーブルにアクセスするには、最低限以下のスコープが必要です:

      • hubdb
      • oauth
      • crm.objects.owners.read
    9. 変更を保存をクリックします。
    10. 統合に必要な機能にアクセスできる本番ポータルにアプリケーションをインストールします。
      • 「インストールURL(OAuth)」の下で、完全なURLをコピーをクリックして、アプリケーションのインストールURLをコピーします。
      • コピーしたリンクをブラウザで開きます。アプリケーションをインストールする標準アカウントを選択します。
      • アプリを接続をクリックします。結果のタブは閉じて構いません。

    プライベートアプリを使用する

    HubSpotプライベートアプリケーショントークンを使用して接続するには、AuthSchemeプロパティを"PrivateApp"に設定します。

    以下の手順に従ってプライベートアプリケーショントークンを生成できます:

    1. HubDBアカウントで、メインナビゲーションバーの設定アイコン(歯車)をクリックします。
    2. 左サイドバーメニューで、統合 > プライベートアプリに移動します。
    3. プライベートアプリを作成をクリックします。
    4. 基本情報タブで、アプリケーションの詳細(名前、ロゴ、説明)を設定します。
    5. スコープタブで、プライベートアプリケーションがアクセスできるようにしたい各スコープに対して読み取りまたは書き込みを選択します。
    6. テーブルにアクセスするには、最低限hubdbとcrm.objects.owners.readが必要です。
    7. アプリケーションの設定が完了したら、右上のアプリを作成をクリックします。
    8. アプリケーションのアクセストークンに関する情報を確認し、作成を続行をクリックし、その後トークンを表示をクリックします。
    9. コピーをクリックして、プライベートアプリケーショントークンをコピーします。

    接続するには、PrivateAppTokenを取得したプライベートアプリケーショントークンに設定します。

    Enter the appropriate connection properties in the configuration wizard.

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

    NOTE: The configuration wizard should open your browser and ask you to sign into HubDB. 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 HubDB のデータ

Now that we have installed the CData MCP Server and configured a connection, we are ready to start with HubDB のデータ 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 HubDB のデータ. For example: "Can you give me a quantitative analysis about my closed-won opportunities by industry?"

    NOTE: Claude may need to explore the HubDB のデータ 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.

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

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

 ダウンロード

詳細:

HubDB Icon HubDB MCP Server お問い合わせ

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