SAP HANA Analyst
README.md
<div align="center">
<img src="assets/banner.svg" width="100%" alt="SAP HANA Analyst — Claude Desktop extension by Dinesh AI Academy" />
<br/>
<a href="https://github.com/dineshaiacademy/sap-hana-analyst-claude-extension/releases/latest"><img src="https://img.shields.io/github/v/release/dineshaiacademy/sap-hana-analyst-claude-extension?style=for-the-badge&label=Latest%20release&color=F59E0B&labelColor=10233F" alt="Latest release" /></a>
<img src="https://img.shields.io/badge/Claude%20Desktop-Extension-10233F?style=for-the-badge&logo=anthropic&logoColor=FBBF24" alt="Claude Desktop extension" />
<img src="https://img.shields.io/badge/Protocol-MCP-10233F?style=for-the-badge&logo=modelcontextprotocol&logoColor=FBBF24" alt="MCP" />
<img src="https://img.shields.io/badge/Database-SAP%20HANA-10233F?style=for-the-badge&logo=sap&logoColor=FBBF24" alt="SAP HANA" />
<img src="https://img.shields.io/badge/Platforms-Windows%20%7C%20macOS%20%7C%20Linux-10233F?style=for-the-badge" alt="Windows, macOS, Linux" />
<a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-F59E0B?style=for-the-badge&labelColor=10233F" alt="License: MIT" /></a>
</div>
<br/>
# SAP HANA Analyst for Claude Desktop
SAP HANA Analyst connects Claude Desktop to SAP HANA through a locally installed MCP bundle (`.mcpb`). It provides 34 read-only tools for exploring schemas, inspecting tables, sampling data, and running SQL queries.
> **Download:** get the `.mcpb` for your computer from the **[latest release](https://github.com/dineshaiacademy/sap-hana-analyst-claude-extension/releases/latest)** — Windows x64, macOS Apple Silicon, macOS Intel or Linux x86-64.
## Install and configure the extension
1. Get the `.mcpb` for your computer from its release or the matching local `dist/<version>/` folder. Install Python 3.11 to 3.14 with pip and make it available on your PATH as `python` on Windows or `python3` on macOS and Linux. The first launch of the standard bundle downloads SAP's `hdbcli` driver from PyPI.
2. In Claude Desktop, open **Settings → Desktop app → Manage** next to **Extensions**. In the older layout, open **Settings → Extensions**. Select **Advanced settings → Install Extension**, choose the `.mcpb`, and follow the prompts. [Claude Desktop extension guide](https://support.claude.com/en/articles/10949351-getting-started-with-local-mcp-servers-on-claude-desktop)
3. Open **SAP HANA Analyst → Configure** and enter your connection details. Use a HANA user with `SELECT` privileges on the schemas or objects you need.
| Setting | What to enter |
| --- | --- |
| HANA host | The hostname from your HANA SQL endpoint |
| HANA port | The port from your SQL endpoint, usually `443` for HANA Cloud |
| Read-only user and password | The credentials for your HANA database login |
| Default schema | Optional. Leave blank to use the login's default schema |
| TLS encryption and certificate validation | Enable both for HANA Cloud |
## Use it in Claude
Open a new Claude Desktop chat. Use **+ → Connectors** to check that SAP HANA Analyst is available, then start with one of these prompts.
- “Test the SAP HANA connection and show me the active schema.”
- “List the tables in my default schema.”
- “Describe `SALES_ORDERS` and show me five sample rows.”
- “Find my top ten customers by sales this month and show the SQL you used.”
Use table and schema names from your database. The extension accepts single `SELECT` or `WITH` queries. The database user's privileges determine which data Claude can read.
If the tools are missing, restart Claude Desktop and check the extension log in Settings. If the connection fails, review the host, port, and login in **Configure**. Ask your HANA administrator whether your machine can reach the database endpoint. [Claude Desktop troubleshooting](https://support.claude.com/en/articles/10949351-getting-started-with-local-mcp-servers-on-claude-desktop)
## Build the bundles
Install `uv`, then run this command from the repository root on Windows, macOS, or Linux. `uv` can provision a compatible Python and fetch the build dependencies. The first build needs access to the Python package index.
```sh
uv run setup/build_mcpb.py
```
The command builds all four targets. To build a subset, pass the target names, for example `uv run setup/build_mcpb.py windows mac-arm`. [Install uv](https://docs.astral.sh/uv/getting-started/installation/)
| Target | Bundle for version `2.0.0` |
| --- | --- |
| Windows x64 | `sap-hana-analyst-2.0.0-windows.mcpb` |
| macOS Apple Silicon | `sap-hana-analyst-2.0.0-mac-arm.mcpb` |
| macOS Intel | `sap-hana-analyst-2.0.0-mac-intel.mcpb` |
| Linux x86-64 | `sap-hana-analyst-2.0.0-linux.mcpb` |
Each version has its own folder, such as `dist/2.0.0/`, with a `SHA256SUMS.txt` for every bundle in that folder. Running the command again verifies and reuses existing bundles and builds any missing targets. The builder reads its version from `version=` in [`sap-hana-analyst/hana_mcp_server.py`](sap-hana-analyst/hana_mcp_server.py).
## Track and share releases
1. Set a new `MAJOR.MINOR.PATCH` version in the server file for any change that should go into a new `.mcpb`. Add a matching entry to [CHANGELOG.md](CHANGELOG.md) describing what changed for users.
2. Run the build command. Verify the new bundles against `SHA256SUMS.txt`. On Windows, use `Get-FileHash -Algorithm SHA256 <bundle>` and compare the hash with its row. On macOS or Linux, run `shasum -a 256 -c SHA256SUMS.txt` from the version folder.
3. Commit the source and changelog. To share or keep a copy outside your machine, create a GitHub release from that commit with a matching tag such as `v2.0.1`. Attach the `.mcpb` files and `SHA256SUMS.txt` from the corresponding folder. `dist/` is Git-ignored, so preserve the release assets in GitHub or another shared archive.
Use the matching source tag and archived bundle when you need an older version. [Creating a GitHub release](https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository)
## Run the offline checks
```sh
uv run --no-project --with-requirements requirements.txt python -m unittest discover -s tests -v
```
## Security & support
- **Report a vulnerability privately** — see [SECURITY.md](SECURITY.md). Never post credentials or hostnames in public issues.
- **Bugs & feature requests:** open an [issue](https://github.com/dineshaiacademy/sap-hana-analyst-claude-extension/issues).
- **Enterprise rollout, training & custom versions:** [support@dineshaiacademy.com](mailto:support@dineshaiacademy.com) · [dineshaiacademy.com](https://dineshaiacademy.com)
## License
The software is released under the **[MIT License](LICENSE)**. The Dinesh AI Academy name, logo and tagline are trademarks and are not covered by that license — see [BRANDING.md](BRANDING.md). SAP's `hdbcli` driver has its own terms — see [THIRD-PARTY-NOTICES.md](THIRD-PARTY-NOTICES.md).
<sub>SAP and SAP HANA are trademarks or registered trademarks of SAP SE. Claude is a trademark of Anthropic. This project is independent and not affiliated with or endorsed by SAP SE or Anthropic.</sub>
<div align="center">
<br/>
<a href="https://dineshaiacademy.com"><img src="https://img.shields.io/badge/Built%20by-Dinesh%20AI%20Academy-F59E0B?style=for-the-badge&labelColor=10233F" alt="Built by Dinesh AI Academy" /></a>
</div>
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues