SAP HANA CLI MCP server
150+ SAP HANA database tools as MCP tools for AI assistants
113 stars
Reviews
Write oneNobody has reviewed SAP HANA CLI yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
SAP HANA CLI tools (16)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
hana_conversation_templatesList available conversation templates for common scenarios. Templates provide step-by-step guided workflows for tasks like data-exploration, troubleshooting, data-migration, performance-tuning, and security-audit.
hana_discover_by_categoryGet all commands in a specific category. Useful for finding commands when you know the general area (e.g., "data-tools", "performance-monitoring").
hana_discover_by_tagSearch commands by tag. Tags help identify commands for specific purposes (e.g., "import", "export", "validation", "performance", "user", "privilege").
hana_discover_categoriesDiscover available command categories and get an overview of what each category does. Use this to find commands for a specific task.
hana_examplesGet real-world usage examples for a specific command with parameter combinations, scenarios, and expected outputs. Essential for understanding how to use commands correctly.
hana_get_docRetrieve the full content of a specific documentation page. Use after hana_search to get complete details from a relevant document.
hana_get_templateGet a detailed conversation template for a specific scenario. Includes all steps, commands, expected outcomes, tips, and common questions with answers.
hana_interpret_resultGet AI-friendly interpretation of command results with insights, recommendations, and analysis. Provides summary, key metrics, concerns detected, and actionable recommendations.
hana_parameter_presetsGet parameter presets/templates for common use cases of a command. Shows pre-configured parameter combinations for scenarios like "quick-import", "safe-import", "large-file" etc.
hana_quickstartGet a beginner-friendly quick start guide with the recommended first 6 commands to run when starting with the database. Perfect for new users or initial database exploration.
hana_recommendGet command recommendations based on natural language intent. Tell me what you want to do, and I'll suggest the best commands. Example: "find duplicate rows", "check database version", "export table to CSV".
hana_searchSearch across all hana-cli resources: documentation, commands, workflows, examples, and presets. Use scope to narrow results. Default searches everything with relevance scoring.
hana_search_workflowsSearch for workflows by tag or purpose. Find workflows for specific scenarios.
hana_troubleshootGet troubleshooting guide for a specific command including common issues, solutions, prerequisites, and tips. Essential when a command isn't working as expected.
hana_workflow_by_idGet detailed steps for a specific workflow. Provides complete instructions including commands, parameters, and expected outputs.
hana_workflowsList available workflows - multi-step task sequences for common scenarios like data validation, performance analysis, security audits, and backup procedures.
Public scan report
scanner v0.1.9 · 2026-09-25 · same rubric, same numbers if you re-run it
- Code scan705 source files scanned3/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 8 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year9/10
Findings (3)
- mediumnpm install lifecycle script present
install.script - mediumnpm install lifecycle script present
install.scriptpackage.json: …, "lint:fix": "eslint . --fix", "postinstall": "node scripts/postinstall.js", "bui…
- highShell command built from a string (injection risk)
exec.shell-concatutils/btp.js: … const { stdout, stderr } = await exec(`btp --format json get services/instance ${id}`) if (stderr) { …
What the publisher says
From the SAP HANA CLI repository's README, as published. We do not edit it. Read it on GitHub
SAP HANA Developer Command Line Interface
⚠️ Important Notice - Major Updates (Feb/March 2026)
Version 4.x introduces significant changes including Express 5 migration, refactored database connection handling, and major performance improvements. While we've tested extensively, please be aware of potential issues in your specific environment.
If you encounter problems:
- Report Issues: Please open an issue on our GitHub Issues page with details about your environment and the problem you're experiencing.
- Rollback to Stable Version: If you need to quickly revert to the last stable release before these major changes, you can install version 3.202601.0 (January 2026):
npm install -g hana-cli@3.202601.0What's Changed: The change log describes all notable changes including Express 5 migration, database connection refactoring, CLI startup performance optimization (60-77% faster), expanded test coverage (85%+ coverage), and the new VitePress documentation site.
📚 Documentation
Complete documentation is available in the docs/ folder and organized with VitePress. This README will maintain a high-level overview and quick links to the most important sections of the documentation but over time expect that more and more detailed documentation will be added to the docs folder as the project evolves.
Quick Links:
- Getting Started - Installation and setup
- Command Reference - All 20+ commands with examples
- Features Guide - CLI, API, MCP, and more
- API Reference - REST API documentation
- FAQ - Frequently asked questions
- Troubleshooting - Common issues and solutions
Run Documentation Locally
cd docs
npm install
npm run docs:dev
# Open http://localhost:5173Build For Production
cd docs
npm run docs:build
npm run docs:serveSee docs/README.md for complete documentation setup details.
Description
This sample is intended to shown how one could build a developer-centric SAP HANA command line tool, particularly designed to be used when performing local SAP HANA development in non-SAP tooling (like VSCode). It utilizes the default-env.json that is often used in local development for connectivity to a remote SAP HANA DB (although it can of course be used with a local SAP HANA, express edition instance as well). There is no intention to replacing the hdbsql tool as a generic SQL console. Instead this sample will focus on simplifying and grouping common and complex commands that otherwise might a lot of separate scripts.
Introduction Video: https://youtu.be/dvVQfi9Qgog
However the tool isn't limited to only local development. It also works well when developing in the cloud. The hana-cli tool can also run well from a cloud shell in the SAP Business Application Studio, Google Cloud Shell, AWS Cloud9, etc. We can also run against a SAP HANA service for SAP BTP or SAP HANA Cloud instance. This demonstrates that the tool can run just about anywhere you can get a command line that has access to the Node.js Runtime. We can also connect to a remote HANA instance even if it isn't running in the same cloud environment in which we are performing our development tasks.
Supported Environments
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Install directly
Runs npx -y hana-cli on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add hana-cli -- npx -y hana-cli
SAP HANA CLI: common questions
- Is SAP HANA CLI MCP server safe?
- With care: it is graded C, so read the findings first (60/100). Read the SAP HANA CLI safety report
- How do I install SAP HANA CLI?
- It runs on your machine. Copy the Claude Code, Claude Desktop or Cursor config from the install section.
- Does SAP HANA CLI need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is SAP HANA CLI maintained?
- The last commit was 10 days ago (2026-09-17). The latest release is v4.202607.1.
- What can I use instead of SAP HANA CLI?
- Servers from other publishers that do the same job: LINQ to DB MCP server, DBHub MCP server and Airtable MCP server. Compare all SAP HANA CLI alternatives.
Alternatives to SAP HANA CLI
Same job from other publishers: the closest match first, then the best rated.
- LINQ to DBInspect database schemas and execute SQL queries across multiple database providers with LINQ to DB.not reviewedEstablishedA
- DBHubToken-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLitenot reviewedWidely usedA
AirtableRead and write access to Airtable database schemas, tables, and records.not reviewedEstablishedB- MCP Toolbox for DatabasesMCP Toolbox for Databases enables your agent to connect to your database.not reviewedEstablishedA
- NeonOfficial Neon MCP server for managing Neon projects and Lakebase Postgres databases.not reviewedEstablishedA