The Definitive Guide for Linking SAP HANA to Claude

by Stanley Liu | May 13, 2026

SAP HANA to ClaudeSAP HANA holds some of the most operationally significant data in the enterprise — live transactional records, financial positions, inventory states, and customer accounts. Most AI deployments can't touch any of it directly. They work from copies, summaries, or whatever was last loaded into a vector store, which means the answers they generate are only as current as the last pipeline run.

Connecting SAP HANA directly to Claude solves this at the architecture level. Rather than moving data to the model, you give the model governed access to the data where it already lives—conversational queries against live HANA data, AI-driven reporting that doesn't depend on ETL schedules, and analytics that execute inside the database.

This guide covers how to make that connection work using CData Connect AI: setup, deployment, integration patterns, and the security considerations that matter when wiring an AI assistant into a production SAP environment.

Understanding CData Connect AI and Model Context Protocol

CData Connect AI is a managed platform that exposes hundreds of enterprise data sources through secure MCP endpoints. For SAP HANA, it acts as the governed data layer between your HANA instance and Claude—handling authentication, query translation, and access control so you're not building any of that from scratch.

What is Model Context Protocol (MCP)?

MCP is a standardized communication framework that lets AI assistants interact with external systems without copying data out of them. Instead of exporting records to a vector database or an intermediate API layer, MCP lets Claude discover schemas, execute approved queries, and retrieve live contextual data directly—with full auditability at every step.

The architectural difference matters more than it might initially appear:

Approach

Data Movement

Real-Time Access

Governance

Query Pushdown

ETL pipelines

Copies data

Delayed

Limited

No

Unified APIs

Abstracted models

Partial

Varies

Limited

MCP with CData Connect AI

No replication

Yes

Granular

Yes

The query pushdown behavior is particularly important for SAP HANA workloads. Heavy joins, aggregations, and filters execute inside HANA—not in an intermediary layer—which means you retain HANA's in-memory performance characteristics and don't introduce a new bottleneck between the model and your data.

What you need before starting

Before you configure anything, verify that your environment covers the following:

Requirement

Details

CData Connect AI account

Required for MCP access

SAP HANA instance

Cloud or on-premises

Claude account

Claude Desktop, Claude.ai, or Claude Code

SAP HANA credentials

Read or write permissions depending on use case

Network access

Required between Connect AI and HANA

Optional developer tools

Claude Agent SDK or Claude Code with VS Code

Both SAP HANA Cloud and on-premises HANA deployments are supported. For on-premises, you'll need to confirm that the network path between Connect AI and your HANA host is open—firewall rules that block the HANA service port are the most common setup obstacle, and easier to verify before you start than to debug afterward.

On the credentials side: use a dedicated service account and scope permissions to what the integration requires. If the use case is read-only analytics, there's no reason for the service account to have write access. CData Connect AI supports granular governance controls at the MCP layer, but least-privilege at the database level is still the right starting point.

CData Connect AI is SOC 2 certified, ISO/IEC 27001 certified, and operates under GDPR-aligned controls—relevant when your HANA environment holds regulated data.

Configuring CData Connect AI for SAP HANA

Setup doesn't require custom integration engineering. The configuration is straightforward: connect to HANA, test the connection, then deploy the MCP endpoint.

Step 1: Log into CData Connect AI

From the dashboard, navigate to Add Connection, select SAP HANA, and enter your connection parameters:

Parameter

Description

Server

SAP HANA host name

Port

SAP HANA service port

Database

Target HANA database

Username

Service account username

Password

Service account password

Step 2: Test connectivity

Before deploying the MCP endpoint, validate the connection. This confirms that authentication succeeds, your firewall rules allow the traffic, and HANA is responding correctly. Catching a misconfiguration here takes thirty seconds; catching it later, after Claude has already been registered against a broken endpoint, takes longer.

Configuring the remote MCP server

Once your HANA connection is validated, connecting to the MCP endpoint takes a few steps:

  1. Open your configured SAP HANA connection in Connect AI

  2. Copy the generated MCP endpoint URL

  3. Register the endpoint with Claude or your developer tooling

The Connect AI remote MCP server is the middleware layer that Claude calls when it needs to interact with HANA. Once it's deployed, Claude can invoke operations like getCatalogs, getSchemas, getTables, and queryData directly against your live HANA environment—cloud-to-cloud, hybrid, or on-premises.

Connecting Claude Desktop, Claude Code, and Claude Agent SDK

CData Connect AI supports three integration patterns, each suited to a different workflow.

Connecting Claude Desktop or Claude.ai

To connect Claude.ai to Connect AI, sign in and open Settings from the bottom-left menu. Navigate to Connectors, click Browse connectors, and search for CData Connect AI. Click through to the connector and hit Connect to grant access.

Once connected, you can configure tool permissions — setting individual MCP tools to Always allow, Needs approval, or Block depending on your governance requirements. For a production SAP HANA connection, it's worth reviewing these settings before opening access to end users rather than defaulting everything to always-allow.

Open a new chat and you're ready to start querying. Claude outlines the steps it takes to retrieve data through Connect AI's tools, and depending on your permission settings, may ask for approval before executing.

Connecting Claude Code with VS Code

Developers using Claude Code load the MCP endpoint directly in VS Code. Once configured, the loaded MCP server appears in the interface and you can explore schemas, inspect table structures, generate SQL, and prototype analytics workflows against live HANA data. The practical benefit is iteration speed: developers working against live schemas catch structural issues immediately, rather than discovering them when a query fails against a data warehouse snapshot that was three days old.

Connecting Claude Agent SDK

The Claude Agent SDK is the right pattern for production automation—recurring reports, KPI monitoring, anomaly detection, and operational analytics that run without a human submitting queries manually. The workflow: user or scheduler submits a request → Agent SDK calls the MCP endpoint → SQL executes against HANA → agent analyzes and summarizes results → output is delivered to the business user. Data never leaves HANA, and every step is auditable.

Exploring SAP HANA metadata using MCP tools

Before executing queries, Claude needs to understand what's in your HANA environment. MCP metadata introspection with Connect AI handles this: Claude can inspect schemas, tables, columns, and relationships directly through getCatalogs, getSchemas, getTables, and column metadata operations.

This matters more than it might seem. A prompt like "Summarize quarterly revenue by region" requires Claude to know which schema holds revenue data, which table has the right granularity, and how date and region fields are structured. With live metadata access, Claude resolves these questions against your actual schema rather than hallucinating a plausible one. The accuracy difference in query generation is significant, particularly in complex HANA environments with many schemas and non-obvious table relationships.

Executing live queries and natural language requests

Once the connection is live, Claude translates natural language prompts into SQL that executes directly in SAP HANA:

  • "Show the last five orders."

  • "Summarize quarterly revenue by region."

  • "List overdue customer accounts."

The SQL runs server-side. Data stays in HANA. Query pushdown means the filtering and aggregation happen in the database, not in the connectivity layer, so you're getting HANA's performance characteristics on the results. Governance policies configured in Connect AI—which schemas are accessible, which operations are permitted—remain enforced regardless of what a user asks.

Write operations deserve a different posture than analytical queries. A question like 'summarize overdue invoices by region' is low-risk if Claude generates imperfect SQL — the worst outcome is a wrong number. A write operation that inserts, updates, or deletes HANA records on a misunderstood prompt is a different category of problem. For those workflows, build in an explicit approval step before execution and make sure every write is logged.

Building developer workflows with Claude Code

Developers building analytics features against HANA typically spend a disproportionate amount of time on the data access layer: negotiating credentials, waiting for a DBA to expose a schema, or writing queries against a development dataset that only loosely resembles production. Claude Code with the MCP endpoint connected removes most of that friction. You explore the live schema directly, generate and validate SQL against real table structures, and promote logic that's already been tested against the data it will run on.

The value is in eliminating the ETL delay from the development cycle. SQL that joins incorrectly against a live schema fails immediately; SQL that joins incorrectly against a stale ETL snapshot fails in production, in front of a customer, six weeks after you thought the feature was done.

Using Claude Agent SDK for production automation

At production scale, the Claude Agent SDK handles the automation workflows that would otherwise require manual reporting: KPI monitoring, recurring finance and inventory reports, anomaly detection across HANA datasets, and operational analytics that surface issues before they show up in a dashboard review.

Step

Action

1

User or scheduler submits business request

2

Agent SDK invokes MCP endpoint

3

SQL executes against SAP HANA

4

Agent analyzes and summarizes results

5

Output delivered to business user

Because queries execute inside HANA and results are never staged elsewhere, you get auditability that truly reflects what happened — Connect AI logs what ran, against what, and when. There's no replication layer to reconcile and no secondary store to govern separately.

Security best practices for SAP HANA and Claude integration

A few practices worth holding to regardless of deployment scale:

  • Use a dedicated service account with least-privilege permissions scoped to what the integration actually requires

  • Restrict write operations at the database level—if the use case is analytics, enforce read-only there, not just at the MCP layer

  • Enable audit logging in Connect AI so every query is traceable

  • Separate production and staging environments, and validate the integration in staging first

  • Review MCP usage patterns periodically as the integration expands across teams

Connect AI's governance controls let you define which schemas and operations are exposed through each MCP endpoint, so Claude's access surface is bounded by what you've explicitly approved.

Performance optimization and governance recommendations

SAP HANA is an in-memory columnar database built for high-performance analytical workloads, and the architecture here is designed to take advantage of that. Queries push down to HANA, so complex joins and aggregations run inside the database rather than in an intermediary layer — the MCP layer handles governance without adding a processing step that would work against HANA's performance characteristics.

Human analysts write SQL with implicit filters — they know to scope a query to a date range or a specific region. A model responding to 'summarize all customer activity' doesn't have that instinct. A schema that performs well under targeted human queries can behave very differently when AI-generated ones start hitting it at scale, so it's worth reviewing query patterns before you expand access to new teams or workflows.

Common SAP HANA and Claude integration use cases

Live BI and analytics. Business users query HANA conversationally from Claude Desktop without routing through a BI tool. For ad hoc analysis against operational data, the feedback loop is faster and doesn't require a developer to write a new report.

Automated operational reporting. Claude agents generate recurring finance, sales, and inventory reports on schedule, pulling live HANA data without a data engineering pipeline in the middle.

Data quality monitoring. AI agents detect anomalies, validate records, and flag inconsistencies across HANA datasets—useful in environments where data quality issues downstream are expensive to catch late.

Natural language operational analytics. Queries like "Show overdue invoices by region" or "Which product lines are running below forecast?" return live results from HANA, accessible to business users who don't write SQL.

Troubleshooting common issues

Issue

Recommended Fix

Credential errors

Verify SAP HANA usernames and passwords against the service account

Firewall/network blocks

Confirm that the HANA service port is accessible from Connect AI

Invalid MCP endpoint

Validate endpoint URL syntax in Claude's MCP configuration

Failed metadata discovery

Check schema permissions for the service account

Query failures

Review logs and SQL permissions; check for schema-level access restrictions

Frequently asked questions

How do I configure CData Connect AI for SAP HANA to work with Claude?

Configure your SAP HANA connection in CData Connect AI, deploy a remote MCP endpoint, and register the endpoint URL with Claude Desktop, Claude Code, or the Claude Agent SDK. The process doesn't require custom integration work on the HANA side.

What security measures should I apply when linking SAP HANA to Claude?

Use a least-privilege service account, restrict write operations at the database level, enable audit logging in Connect AI, and review MCP access permissions as the integration expands.

Can this integration support production SAP HANA Cloud deployments?

Yes. CData Connect AI supports both SAP HANA Cloud and on-premises HANA in production environments, provided network connectivity is correctly configured.

What are the most common setup issues?

Invalid credentials, firewall rules blocking the HANA service port, incorrect MCP endpoint URLs, and service accounts without sufficient schema permissions. Most of these are faster to verify upfront than to debug after the fact.

Where can I find additional documentation and examples?

Setup guides, connector-specific documentation, and code samples are available through the CData knowledge base and SAP HANA connector documentation pages.

Unlock real-time SAP HANA analytics with Claude and CData

The data layer is where enterprise AI either works in production or doesn't. Connecting SAP HANA to Claude through CData Connect AI means queries run against live HANA data, governance stays enforced at every step, and your AI workflows don't depend on a replication pipeline staying current.

Explore CData Connect AI or start a trial and get Claude working against your own HANA environment.

Explore CData Connect AI today

See how Connect AI excels at streamlining AI and business processes for real-time insights and action.

Get the trial