Amazon Athena MCP Server by CDataのロゴ

Amazon Athena MCP Server by CData

組織
CDataSoftware

This read-only MCP Server allows you to connect to Amazon Athena data from Claude Desktop through CData JDBC Drivers. For full CRUD support, check out the first managed MCP platform: CData Connect AI (https://www.cdata.com/ai/).

公開者CDataSoftware
リポジトリamazon-athena-mcp-server-by-cdata
言語Java
フォーク
1
スター
1
利用可能なツール
0
通信方式stdio
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    Amazon Athena MCP Server by CDataは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには1件のスターと1件のフォークがあります。

amazon-athena-mcp-server-by-cdata

CData's Model Context Protocol (MCP) Server for Amazon Athena

:heavy_exclamation_mark: This project builds a local, read-only MCP server. For fully remote MCP access, check out the first managed MCP platform: CData Connect AI. For locally hosted, full read, write, update, delete, and action capabilities and a simplified setup, check out our CData MCP Server for Amazon Athena.

Purpose

We created this read-only MCP Server to allow LLMs (like Claude Desktop) to query live data Amazon Athena supported by the CData JDBC Driver for Amazon Athena.

CData JDBC Driver connects to Amazon Athena by exposing them as relational SQL models.

This server wraps that driver and makes Amazon Athena data available through a simple MCP interface, so LLMs can retrieve live information by asking natural language questions — no SQL required.

Setup Guide

  1. Clone the repository:
    bash
    git clone https://github.com/cdatasoftware/amazon-athena-mcp-server-by-cdata.git
    cd amazon-athena-mcp-server-by-cdata
  2. Build the server:
    bash
    mvn clean install
    This creates the JAR file: CDataMCP-jar-with-dependencies.jar
  3. Download and install the CData JDBC Driver for {source}: https://www.cdata.com/drivers/athena/download/jdbc
  4. License the CData JDBC Driver:
    • Navigate to the lib folder in the installation directory, typically:
      • (Windows) C:\Program Files\CData\CData JDBC Driver for Amazon Athena\
      • (Mac/Linux) /Applications/CData JDBC Driver for Amazon Athena/
    • Run the command java -jar cdata.jdbc.amazonathena.jar --license
    • Enter your name, email, and "TRIAL" (or your license key).
  5. Configure your connection to the data source (Salesforce as an example):
    • Run the command java -jar cdata.jdbc.amazonathena.jar to open the Connection String utility.

    • Configure the connection string and click "Test Connection"

      Note: If the data sources uses OAuth, you will need to authenticate in your browser.

    • Once successful, copy the connection string for use later.

  6. Create a .prp file for your JDBC connection (e.g. amazon-athena.prp) using the following properties and format:
    • Prefix - a prefix to be used for the tools exposed
    • ServerName - a name for your server
    • ServerVersion - a version for your server
    • DriverPath - the full path to the JAR file for your JDBC driver
    • DriverClass - the name of the JDBC Driver Class (e.g. cdata.jdbc.amazonathena.AmazonAthenaDriver)
    • JdbcUrl - the JDBC connection string to use with the CData JDBC Driver to connect to your data (copied from above)
    • Tables - leave blank to access all data, otherwise you can explicitly declare the tables you wish to create access for
      env
      Prefix=amazonathena
      ServerName=CDataAmazonAthena
      ServerVersion=1.0
      DriverPath=PATH\TO\cdata.jdbc.amazonathena.jar
      DriverClass=cdata.jdbc.amazonathena.AmazonAthenaDriver
      JdbcUrl=jdbc:amazonathena:InitiateOAuth=GETANDREFRESH;
      Tables=

Using the Server with Claude Desktop

  1. Create the config file for Claude Desktop ( claude_desktop_config.json) to add the new MCP server, using the format below. If the file already exists, add the entry to the mcpServers in the config file.

    Windows

    json
    {
      "mcpServers": {
        "{classname_dash}": {
          "command": "PATH\\TO\\java.exe",
          "args": [
            "-jar",
            "PATH\\TO\\CDataMCP-jar-with-dependencies.jar",
            "PATH\\TO\\amazon-athena.prp"
          ]
        },
        ...
      }
    }

    Linux/Mac

    json
    {
      "mcpServers": {
        "{classname_dash}": {
          "command": "/PATH/TO/java",
          "args": [
            "-jar",
            "/PATH/TO/CDataMCP-jar-with-dependencies.jar",
            "/PATH/TO/amazon-athena.prp"
          ]
        },
        ...
      }
    }

    If needed, copy the config file to the appropriate directory (Claude Desktop as the example). Windows

    bash
    cp C:\PATH\TO\claude_desktop_config.json %APPDATA%\Claude\claude_desktop_config.json

    Linux/Mac

    bash
    cp /PATH/TO/claude_desktop_config.json /Users/{user}/Library/Application\ Support/Claude/claude_desktop_config.json'
  2. Run or refresh your client (Claude Desktop).

Note: You may need to fully exit or quit your Claude Desktop client and re-open it for the MCP Servers to appear.

Running the Server

  1. Run the follow the command to run the MCP Server on its own
    bash
    java -jar /PATH/TO/CDataMCP-jar-with-dependencies.jar /PATH/TO/Salesforce.prp

Note: The server uses stdio so can only be used with clients that run on the same machine as the server.

Usage Details

Once the MCP Server is configured, the AI client will be able to use the built-in tools to read, write, update, and delete the underlying data. In general, you do not need to call the tools explicitly. Simply ask the client to answer questions about the underlying data system. For example:

  • "What is the correlation between my closed won opportunities and the account industry?"
  • "How many open tickets do I have in the SUPPORT project?"
  • "Can you tell me what calendar events I have today?"

The list of tools available and their descriptions follow:

Tools & Descriptions

In the definitions below, {servername} refers to the name of the MCP Server in the config file (e.g. {classname_dash} above).

  • {servername}_get_tables - Retrieves a list of tables available in the data source. Use the {servername}_get_columns tool to list available columns on a table. The output of the tool will be returned in CSV format, with the first line containing column headers.
  • {servername}_get_columns - Retrieves a list of columns for a table. Use the {servername}_get_tables tool to get a list of available tables. The output of the tool will be returned in CSV format, with the first line containing column headers.
  • {servername}_run_query - Execute a SQL SELECT query

JSON-RPC Request Examples

If you are scripting out the requests sent to the MCP Server instead of using an AI Client (e.g. Claude), then you can refer to the JSON payload examples below – following the JSON-RPC 2.0 specification - when calling the available tools.

amazon_athena_get_tables

json
{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
        "name": "amazon_athena_get_tables",
        "arguments": {}
    }
}

amazon_athena_get_columns

json
{
    "jsonrpc": "2.0",
    "id": 2,
    "method": "tools/call",
    "params": {
        "name": "amazon_athena_get_columns",
        "arguments": {
            "table":  "Account"
        }
    }
}

amazon_athena_run_query

json
{
    "jsonrpc": "2.0",
    "id": 3,
    "method": "tools/call",
    "params": {
        "name": "amazon_athena_run_query",
        "arguments": {
            "sql":  "SELECT * FROM [Account] WHERE [IsDeleted] = true"
        }
    }
}

Troubleshooting

  1. If you cannot see your CData MCP Server in Claude Desktop, be sure that you have fully quit Claude Desktop (Windows: use the Task Manager, Mac: use the Activity Monitor)
  2. If Claude Desktop is unable to retrieve data, be sure that you have configured your connection properly. Use the Connection String builder to create the connection string (see above) and copy the connection string into the property (.prp) file.
  3. If you are having trouble connecting to your data source, contact the CData Support Team.
  4. If you are having trouble using the MCP server, or have any other feedback, join the CData Community.

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

All Supported Sources

インストール

TypingMind
前提条件:

Node.js 18+

{
  "mcpServers": {
    "cdata-amazon-athena": {
      "command": "npx",
      "args": [
        "-y",
        "amazon-athena-mcp-server"
      ],
      "env": {
        "JDBC_URL": "jdbc:amazonathena:InitiateOAuth=GETANDREFRESH;",
        "DRIVER_CLASS": "cdata.jdbc.amazonathena.AmazonAthenaDriver",
        "PRP_FILE_CONTENT": "Prefix=amazonathena\nServerName=CDataAmazonAthena\nServerVersion=1.0\nDriverClass=cdata.jdbc.amazonathena.AmazonAthenaDriver\nJdbcUrl=jdbc:amazonathena:InitiateOAuth=GETANDREFRESH;\nTables="
      }
    }
  }
}

Amazon Athena MCP Server by CDataのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Amazon Athena MCP Server by CDataに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Amazon Athena MCP Server by CDataをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. Amazon Athena MCP Server by CDataのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "amazon-athena-mcp-server-by-cdata": {
      "command": "npx",
      "args": [
        "-y",
        "amazon-athena-mcp-server"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてAmazon Athena MCP Server by CDataのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Amazon Athena MCP Server by CDataのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Amazon Athena MCP Server by CDataを使ってこのタスクを手伝ってもらえますか?
Amazon Athena MCP Server by CData
はい、読みました。
Amazon Athena MCP Server by CDataで調べた結果をお伝えします。

よくある質問

Amazon Athena MCP Server by CData MCPサーバーは何に使いますか?

Amazon Athena MCP Server by CDataは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでAmazon Athena MCP Server by CData MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでAmazon Athena MCP Server by CDataを利用できます。

TypingMindでAmazon Athena MCP Server by CData MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Amazon Athena MCP Server by CDataを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Amazon Athena MCP Server by CData MCPをTypingMindに接続するにはどうすればよいですか?

Amazon Athena MCP Server by CDataはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでAmazon Athena MCP Server by CData MCPのどのようなツールを利用できますか?

Amazon Athena MCP Server by CDataはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Amazon Athena MCP Server by CData MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Amazon Athena MCP Server by CDataで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇