![]() |
VOOZH | about |
Claude Code is an AI-powered development environment that brings intelligent code generation, automation, and interactive reasoning directly into your workflow. By integrating it with CData Connect AI, you can enable Claude Code to securely access, query, and interact with live enterprise data, such as Amazon Athena, through a standardized MCP tool interface.
CData Connect AI is a managed MCP platform that exposes your enterprise data sources through the Model Context Protocol (MCP). This allows Claude Code to work with catalogs, schemas, tables, metadata, and SQL-enabled data access from hundreds of data sources, without requiring ETL pipelines or custom integration code.
This article explains how to register the CData Connect AI MCP endpoint in Claude Code, configure your Amazon Athena or other data source connection, and begin issuing real-time data queries directly from the coding environment. We explore how Claude Code uses the built-in MCP tools, such as getCatalogs, getSchemas, getTables, and queryData to help you write, debug, and automate development workflows powered by live Amazon Athena data securely and interactively.
CData provides the easiest way to access and integrate live data from Amazon Athena. Customers use CData connectivity to:
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.
For Claude Code to access Amazon Athena, create a connection to Amazon Athena in CData Connect AI. This connection is then exposed to Claude Code using the remote MCP server.
To authorize Amazon Athena requests, provide the credentials for an administrator account or for an IAM user with custom permissions: Set to the access key Id. Set 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.
To obtain the credentials for an IAM user, follow the steps below:
To obtain the credentials for your AWS root account, follow the steps below:
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 to true and leave and empty. The CData Data Provider for Amazon Athena 2018 will automatically obtain your IAM Role credentials and authenticate with them.
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 . 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 and of an IAM user to assume the role for. Roles may not be used when specifying the and of an AWS root user.
For users and roles that require Multi-factor Authentication, specify the and 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 (default 3600 seconds).
In addition to the and properties, specify , and . Set to the region where your Amazon Athena data is hosted. Set to a folder in S3 where you would like to store the results of queries.
If is not set in the connection, the data provider connects to the default database set in Amazon Athena.
π Configuring a connection (Salesforce is shown)Claude Code authenticates to Connect AI using an account email and a Personal Access Token (PAT). Creating separate PATs for each integration is recommended to maintain access control granularity.
With the Amazon Athena connection configured and a PAT generated, Claude Code is prepared to connect to Amazon Athena data through the CData MCP server.
Claude Code is distributed as an npm package. You can install it globally.
To install Claude Code on your system, open PowerShell, Terminal, or CMD as an Administrator and run:
npm install -g @anthropic-ai/claude-code
Verify the installation using the following command:
npm list -g @anthropic-ai/claude-code
Expected output should be:
C:\Users\User\AppData\Roaming pm `-- @anthropic-ai/[email protected]
Link your local Claude Code environment with your Claude.ai account to enable secure access. In the terminal, run:
claude login
Claude Code outputs a URL, like:
Please visit https://claude.ai/login?code=
Once verified, you'll need to authenticate with Claude Code using an authentication code. Once done, your terminal should display:
You're all set up for Claude Code.
Claude Code is now linked to your Claude.ai account.
To set up a workspace where Claude Code can store MCP configuration files, start by creating a new directory:
mkdir ClaudeCode cd ClaudeCode
Now, open it in Visual Studio Code:
code .
Before Claude Code can interact with Amazon Athena, you must register your CData Connect AI MCP endpoint. Claude Code uses this remote MCP server to securely access metadata, schemas, tables, and live query results.
Now register the CData Connect AI MCP server by running the following command in your Claude Code project directory:
claude mcp add connectmcp https://mcp.cloud.cdata.com/mcp \ --transport http \ --header "Authorization: Basic base64encoded(EMAIL:PAT)" \ --header "Content-Type: application/json"
Once added, verify that Claude recognizes your MCP server:
claude mcp list
If successful, you should see:
connectmcp: https://mcp.cloud.cdata.com/mcp (HTTP) - β OK
Start the Claude Code assistant and verify that it detects your MCP server. To run, use the given command:
claude
Once Claude Code loads, you should see:
Loaded MCP Server: connectmcp
This confirms that Claude Code is now connected to your CData Connect AI instance.
You can now use Claude Code's natural-language interface to list catalogs, schemas, and tables in Amazon Athena. Ask Claude:
List all AmazonAthena catalogs using getCatalogs.
Claude automatically calls the appropriate MCP tool when you issue a request.
Try additional queries such as:
Claude Code uses the following MCP tools to interact with Amazon Athena in real time:
These tools allow Claude Code to retrieve metadata and query live Amazon Athena data.
Use real Amazon Athena metadata to build working scripts directly inside your IDE.
Example prompt:
Write a Python script that queries Salesforce Contacts where LastName starts with 'A' using the MCP queryData tool.π Prompt Amazon Athena connection to build working scripts.
Claude Code writes accurate code because it has:
All delivered through CData Connect AI.
Use Claude Code to generate, refine, and automate code that works with your Amazon Athena data using CData Connect AI.
With the CData Connect AI integration in place, Claude Code can help you build development workflows that rely on your Amazon Athena data. Although Claude Code does not include built-in real-time data connectivity, your configured MCP connection through CData Connect AI provides it with access to the metadata and query results for your request.
You can use Claude Code to automate tasks such as:
In this setup, Claude Code acts as an intelligent coding assistant that uses live Amazon Athena data from CData Connect AI to help you write and refine data-driven logic.
Add, remove, or inspect MCP servers in your project.
List MCP servers using the following command:
claude mcp list
To remove one, use:
claude mcp remove connectmcp
Modify the config by editing:
.claude/mcp.json
To get live data access to hundreds of SaaS, Big Data, and NoSQL sources directly from your cloud applications, try CData Connect AI today!
Learn more about CData Connect AI or sign up for free trial access:
Free Trial