# SAP HANA CLI MCP server

> Provides over 150 SAP HANA database tools to AI assistants for managing databases, cloud services, and development tasks via command line.

- Repository: https://github.com/SAP-samples/hana-developer-cli-tool-example
- Page: https://hostedmcp.org/servers/sap-samples/hana-developer-cli-tool-example
- Official: yes
- Transport: stdio
- Stars: 115
- License: Apache-2.0
- Latest version: 4.202607.1

## Install

### Claude Code

```sh
claude mcp add hana-developer-cli-tool-example -- npx -y hana-cli
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "hana-developer-cli-tool-example": {
      "command": "npx",
      "args": [
        "-y",
        "hana-cli"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "hana-developer-cli-tool-example": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "hana-cli"
      ]
    }
  }
}
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "hana-developer-cli-tool-example": {
      "command": "npx",
      "args": [
        "-y",
        "hana-cli"
      ]
    }
  }
}
```

### Codex (`~/.codex/config.toml`)

```toml
[mcp_servers.hana-developer-cli-tool-example]
command = "npx"
args = ["-y", "hana-cli"]
```

### Gemini CLI (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "hana-developer-cli-tool-example": {
      "command": "npx",
      "args": [
        "-y",
        "hana-cli"
      ]
    }
  }
}
```

## FAQ

### What is the purpose of the SAP HANA CLI?

It is a developer-centric command line tool designed to simplify and group common and complex SAP HANA development commands, especially when using non-SAP tooling like VSCode.

### Can I use this tool in a cloud environment?

Yes, the tool works in cloud shells such as SAP Business Application Studio, Google Cloud Shell, and AWS Cloud9, and can connect to SAP HANA Cloud instances.

### How do I install the tool?

You can install it globally via npm using the command `npm install -g hana-cli`.
