Logotipo de Amazon Athena MCP Server by CData

Amazon Athena MCP Server by CData

Organización
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/).

EditorCDataSoftware
Repositorioamazon-athena-mcp-server-by-cdata
IdiomaJava
Forks
1
Estrellas
1
Herramientas disponibles
0
Tipo de transportestdio
Categorías
LicenciaMIT
Enlaces
  • Conecta herramientas a flujos de trabajo con IA

    Amazon Athena MCP Server by CData ofrece funciones MCP que pueden usar los clientes y agentes de IA compatibles.

  • 0 herramientas disponibles

    Explora a continuación las acciones que se pueden invocar, con sus nombres y descripciones cuando el servidor los proporcione.

  • Configuración lista para copiar

    Usa los ejemplos de instalación para configurar este servidor en tu cliente MCP preferido.

  • Indicadores de interés en el código abierto

    1 estrellas y 1 forks en el repositorio enlazado.

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

Instalación

TypingMind
Requisitos:

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="
      }
    }
  }
}

Usa el MCP de Amazon Athena MCP Server by CData con varios modelos de IA

TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que, una vez conectado Amazon Athena MCP Server by CData, puedes usarlo con distintos modelos de IA en TypingMind sin tener que configurarlo por separado para cada modelo. Esta integración MCP se ejecuta localmente en tu dispositivo a través del conector MCP de TypingMind.

Guía de configuración para usar el conector local

Usa esta opción si el servidor MCP necesita acceder a archivos locales, aplicaciones o recursos privados de tu ordenador.

1

Abre los ajustes de MCP

En TypingMind, ve a Ajustes, luego a Ajustes avanzados y a Model Context Protocol, y elige Configurar conector.

  1. Abre TypingMind en tu navegador.
  2. Haz clic en el icono de Ajustes.
  3. Ve a Ajustes avanzados.
  4. Abre la sección Model Context Protocol.
  5. Haz clic en Configurar conector y elige Este dispositivo.
Pantalla de configuración del conector MCP de TypingMind con «Este dispositivo» seleccionado
2

Ejecuta el comando del conector

Elige Este dispositivo, copia el comando de TypingMind y ejecútalo en Terminal. Mantén el proceso en ejecución mientras uses MCP.

  1. Copia el comando de configuración que muestra TypingMind.
  2. Abre Terminal en macOS o Windows Terminal en Windows.
  3. Pega y ejecuta el comando.
  4. Acepta la instalación del paquete si Terminal te pide confirmación para continuar.
  5. Mantén el proceso en ejecución en la ventana de Terminal mientras uses las herramientas MCP.
3

Añade Amazon Athena MCP Server by CData como servidor

Cuando el estado del conector sea «Listo», haz clic en «Edita servidores» y pega la configuración del servidor MCP.

  1. Espera hasta que el estado del conector indique «Listo».
  2. Haz clic en Edita servidores.
  3. Pega la configuración del servidor MCP de Amazon Athena MCP Server by CData.
  4. Guarda la lista de servidores.
  5. Actualiza para comprobar que el conector sigue listo.
Ajustes de MCP de TypingMind con un servidor activo y el botón «Edita servidores»
{
  "mcpServers": {
    "amazon-athena-mcp-server-by-cdata": {
      "command": "npx",
      "args": [
        "-y",
        "amazon-athena-mcp-server"
      ]
    }
  }
}
4

Úsala con distintos modelos

Guarda la lista de servidores, abre Plugins, activa las herramientas MCP de Amazon Athena MCP Server by CData y selecciona cualquier modelo de IA compatible en TypingMind para usar las herramientas en el chat o asignárselas a un agente de IA.

  1. Abre la página Plugins en TypingMind.
  2. Activa las herramientas MCP de Amazon Athena MCP Server by CData.
  3. Inicia un chat y elige el modelo de IA que quieras usar.
  4. Usa las herramientas MCP en el chat o asígnalas a un agente de IA.
  5. Cambia a otro modelo de IA cuando lo necesites sin volver a conectar MCP.
Chat de TypingMind que usa herramientas MCP activadas con un modelo de IA seleccionado
¿Puedes usar Amazon Athena MCP Server by CData para ayudarme con esta tarea?
Amazon Athena MCP Server by CData
Claro. Lo he leído.
Esto he encontrado usando Amazon Athena MCP Server by CData.

Preguntas frecuentes

¿Para qué sirve el servidor MCP Amazon Athena MCP Server by CData?

Amazon Athena MCP Server by CData es un servidor MCP que permite a los clientes de IA compatibles conectarse a herramientas y contexto externos. En TypingMind, basta con añadir este servidor MCP una vez para que sus herramientas estén disponibles en tu espacio de trabajo de IA.

¿Puedo usar el servidor MCP Amazon Athena MCP Server by CData con varios modelos de IA en TypingMind?

Sí. TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que puedes usar Amazon Athena MCP Server by CData con distintos modelos de IA, como Claude, ChatGPT, Gemini u otros que hayas configurado en TypingMind, sin configurar el servidor MCP por separado para cada modelo.

¿Por qué usar el conector MCP de Amazon Athena MCP Server by CData con TypingMind?

TypingMind es una de las mejores interfaces de chat con LLM porque reúne varios modelos de IA, prompts, plugins, agentes de IA, claves de API y herramientas MCP en un solo espacio de trabajo. Con Amazon Athena MCP Server by CData conectado, puedes usar sus herramientas MCP con tus modelos preferidos y mantener organizado tu flujo de trabajo de chat en TypingMind.

¿Cómo conecto el servidor MCP Amazon Athena MCP Server by CData a TypingMind?

Amazon Athena MCP Server by CData funciona a través del conector MCP local de TypingMind. Es la mejor opción cuando el servidor MCP necesita acceder a archivos locales, aplicaciones de escritorio, herramientas de línea de comandos o recursos privados de tu ordenador.

¿Qué herramientas ofrece el servidor MCP Amazon Athena MCP Server by CData en TypingMind?

Amazon Athena MCP Server by CData ofrece funciones MCP que puedes activar desde la página Plugins de TypingMind y usar en el chat o asignar a agentes de IA.

¿Tengo que compartir mis claves de API con TypingMind para usar el servidor MCP Amazon Athena MCP Server by CData?

No. TypingMind prioriza el funcionamiento local y te permite mantener el control de tus proveedores de modelos, claves de API, prompts y configuración MCP. Si Amazon Athena MCP Server by CData requiere autenticación, añade las cabeceras, los ajustes de OAuth o la configuración local necesarios para ese servidor MCP al crear la conexión.

Servidores MCP relacionados

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇