SAP HANA CLI logo

SAP HANA CLI

Exposes more than 150 SAP HANA database tools through MCP, using Node.js and configurable HANA connections.

Install SAP HANA CLI

Run the project’s own setup commands, in order.

Setup steps from the project

SAP HANA CLI installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    npm install -g hana-cli
    
  2. 2. Install
    git clone https://github.com/SAP-samples/hana-developer-cli-tool-example
    

Overview

The SAP HANA CLI MCP server exposes more than 150 SAP HANA database tools for AI assistants. It runs through the Node.js-based hana-cli command-line tool and uses local or remote HANA connection configuration, including default-env.json-based setups. Reach for it when developing against SAP HANA locally, in cloud shells, SAP HANA Cloud, or SAP HANA service environments.

Use cases

  • Query SAP HANA databases from an AI assistant
  • Develop against local SAP HANA Express Edition instances
  • Connect to remote SAP HANA systems from cloud shells
  • Manage BTP-related development tasks through hana-cli

Key features

  • More than 150 SAP HANA database tools
  • Node.js command-line interface
  • Local and remote HANA connectivity
  • default-env.json-based configuration
  • SAP BTP CLI integration
  • Support for SAP HANA Cloud environments

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

25/30 checks healthy over the last 111d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars116Stargazers on the source repository.
Last commit1mo agoMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How SAP HANA CLI works

What SAP HANA CLI MCP server does

The SAP HANA CLI MCP server adds more than 150 SAP HANA database tools to MCP-compatible AI assistants. It is built from the SAP HANA Developer Command Line Interface, a developer-focused command-line tool for grouping common and complex HANA development operations rather than acting as a general-purpose SQL console replacement.

The project is intended for work with local SAP HANA development, remote HANA databases, SAP HANA Express Edition, SAP HANA Cloud, and the SAP HANA service for SAP BTP. It can also run from development environments such as Visual Studio Code, SAP Business Application Studio, Google Cloud Shell, and AWS Cloud9, provided the environment has Node.js and network access to the target database.

How it works

The CLI runs on Node.js and connects to HANA using connection details available to the local development environment. One supported pattern uses default-env.json, a configuration file commonly used with SAP development tooling. The project also documents multiple connection-resolution locations and modes, including an administrative configuration file, so connection behavior depends on the configuration present in the environment.

The MCP-facing database capabilities are supplied as tools for an AI assistant, while the underlying project also provides more than 20 CLI commands, REST API documentation, and BTP-related commands.

Setup and configuration

The packaged CLI can be installed globally with:

Terminal
npm install -g hana-cli

Source installation requires Node.js 22 or later. The documented source workflow is to clone the repository, run npm install, and then run npm link from the project root so that hana-cli is available as a command.

A HANA connection must be configured separately. The project primarily uses default-env.json for local-development connectivity, but it can also connect to local or remote HANA systems. The target database does not need to run in the same cloud environment as the development shell.

Some CLI functionality depends on SAP's BTP CLI being installed and available on PATH. On Linux and macOS, the repository includes scripts/install-btp.sh; Windows users are directed to install the BTP CLI through SAP's development tools resources. Running btp --version verifies that dependency, and hana-cli btp reports configured BTP target information.

Limitations and notes

This project is positioned as a developer-oriented command-line tool, not as a replacement for hdbsql as a generic SQL console. Its focus is on grouped development operations and database tools.

Version 4.x introduces substantial changes, including an Express 5 migration and refactored database connection handling. The project notes that users may encounter environment-specific issues and identifies version 3.202601.0 as the last stable release before those changes. Check the repository changelog and documentation for current setup details, supported commands, and troubleshooting guidance.

The SAP HANA CLI MCP server requires a Node.js runtime and access to the configured HANA system. BTP-specific operations add a separate dependency on the BTP CLI; that dependency is not required merely by the documented HANA database connection model unless those BTP commands are used.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about SAP HANA CLI

SAP HANA CLI is an MCP server that connects AI assistants to local or remote SAP HANA databases and exposes more than 150 database tools. It runs through the Node.js-based hana-cli command-line tool and supports development with SAP HANA Express Edition, SAP HANA Cloud, and SAP HANA service for SAP BTP.

Install it globally with `npm install -g hana-cli`. For a source installation, use Node.js 22 or later, clone the repository, run `npm install`, and run `npm link` from the project root.

SAP HANA CLI primarily supports `default-env.json` for local-development connection details. It also checks other documented configuration locations and supports connections to local and remote HANA systems.

Yes, SAP HANA CLI can run in SAP Business Application Studio, Google Cloud Shell, and AWS Cloud9, as well as local development environments. The runtime needs Node.js and network access to the target HANA database.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSAP HANA CLI AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/sap-hana-cli?style=directory)](https://allmcps.com/mcp/sap-hana-cli)
HTML Embed
<a href="https://allmcps.com/mcp/sap-hana-cli"><img src="https://allmcps.com/api/badge/sap-hana-cli?style=directory" alt="SAP HANA CLI on AllMCPs" /></a>