How to Query Live Amazon Athena Data in Perplexity MacOS Desktop

Yazhini G
Yazhini G
Technical Marketing Engineer
Connect to and query live Amazon Athena 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 Amazon Athena, configuring the connection to Amazon Athena, and interacting with your live Amazon Athena data from Perplexity Desktop.

About Amazon Athena Data Integration

CData provides the easiest way to access and integrate live data from Amazon Athena. Customers use CData connectivity to:

  • Authenticate securely using a variety of methods, including IAM credentials, access keys, and Instance Profiles, catering to diverse security needs and simplifying the authentication process.
  • Streamline their setup and quickly resolve issue with detailed error messaging.
  • Enhance performance and minimize strain on client resources with server-side query execution.

Users frequently integrate Athena with analytics tools like Tableau, Power BI, and Excel for in-depth analytics from their preferred tools.

To learn more about unique Amazon Athena use cases with CData, check out our blog post: https://www.cdata.com/blog/amazon-athena-use-cases.


Getting Started


Step 1: Download and install the CData MCP Server for Amazon Athena

  1. To begin, download the CData MCP Server for Amazon Athena
  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 Amazon Athena.

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 Amazon Athena

  1. After installation, you can open the CData MCP Server for Amazon Athena 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_amazonathena") and click "OK"
  4. Enter the appropriate connection properties in the configuration wizard.

    Authenticating to Amazon Athena

    To authorize Amazon Athena requests, provide the credentials for an administrator account or for an IAM user with custom permissions: Set AccessKey to the access key Id. Set SecretKey to the secret access key.

    Note: Though you can connect as the AWS account administrator, it is recommended to use IAM user credentials to access AWS services.

    Obtaining the Access Key

    To obtain the credentials for an IAM user, follow the steps below:

    1. Sign into the IAM console.
    2. In the navigation pane, select Users.
    3. To create or manage the access keys for a user, select the user and then select the Security Credentials tab.

    To obtain the credentials for your AWS root account, follow the steps below:

    1. Sign into the AWS Management console with the credentials for your root account.
    2. Select your account name or number and select My Security Credentials in the menu that is displayed.
    3. Click Continue to Security Credentials and expand the Access Keys section to manage or create root account access keys.

    Authenticating from an EC2 Instance

    If you are using the CData Data Provider for Amazon Athena 2018 from an EC2 Instance and have an IAM Role assigned to the instance, you can use the IAM Role to authenticate. To do so, set UseEC2Roles to true and leave AccessKey and SecretKey empty. The CData Data Provider for Amazon Athena 2018 will automatically obtain your IAM Role credentials and authenticate with them.

    Authenticating as an AWS Role

    In many situations it may be preferable to use an IAM role for authentication instead of the direct security credentials of an AWS root user. An AWS role may be used instead by specifying the RoleARN. This will cause the CData Data Provider for Amazon Athena 2018 to attempt to retrieve credentials for the specified role. If you are connecting to AWS (instead of already being connected such as on an EC2 instance), you must additionally specify the AccessKey and SecretKey of an IAM user to assume the role for. Roles may not be used when specifying the AccessKey and SecretKey of an AWS root user.

    Authenticating with MFA

    For users and roles that require Multi-factor Authentication, specify the MFASerialNumber and MFAToken connection properties. This will cause the CData Data Provider for Amazon Athena 2018 to submit the MFA credentials in a request to retrieve temporary authentication credentials. Note that the duration of the temporary credentials may be controlled via the TemporaryTokenDuration (default 3600 seconds).

    Connecting to Amazon Athena

    In addition to the AccessKey and SecretKey properties, specify Database, S3StagingDirectory and Region. Set Region to the region where your Amazon Athena data is hosted. Set S3StagingDirectory to a folder in S3 where you would like to store the results of queries.

    If Database is not set in the connection, the data provider connects to the default database set in Amazon Athena.

  5. Click "Connect" to authenticate with Amazon Athena.
  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 Amazon Athena MCP"). In the Command box, enter the absolute path to your MCP Server executable.

    For example:

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

Step 4: Query Your Live Amazon Athena 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 Amazon Athena data. For example:

    "List all the tables available in my Amazon Athena data connection."

Connect your AI to your Amazon Athena 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 Amazon Athena MCP Server to get started:

 Download Now

Learn more:

Amazon Athena Icon Amazon Athena MCP Server

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