SAP-samples/hana-cli-claude-plugin
A Claude Code plugin that registers the MCP server of hana-cli, so Claude Code can work on SAP HANA CloudSAP HANA CloudThe managed database under most of this: CAP's default target, the store Datasphere and Analytics Cloud sit on, and a service with plans and components.sap official, btp and on-premise SAP HANASAP HANASAP’s relational database platform, which stores application data and executes SQL and SQLScript in the database, available on-premise and as the managed service SAP HANA Cloud.sap official, btp databases.
The repository holds a plugin manifest and an .mcp.json entry, no server code: the entry starts the hana-cli-mcp binary of the hana-cli npm package with npx, so the tools are those of SAP-samples/hana-developer-cli-tool-exampleSAP-samples/hana-developer-cli-tool-exampleA developer-centric command line for SAP HANA, built for local development outside SAP tooling and connecting to a local, cloud or remote HANA instance the same way.sap official, btp, which its README says it wraps. The README counts 166 MCP tools and groups them as schema exploration, object inspection, data import and export, performance monitoring, security, backup and recovery, system administration, developer tools and discovery. It gives two ways in: /plugin install with the repository address from inside Claude Code, or the same .mcp.json entry added to a project by hand. Connection details are read from the credential sources the README lists in order, or set with npx hana-cli connect, and it names Node.jsNode.jsA cross-platform JavaScript runtime that servers, command line tools and scripts written in JavaScript are run with. For the things here, the prerequisite a repository names when its build is a set of npm scripts. 20.19.0 or later and a HANA database with credentials as prerequisites. It adds a registration path for Claude Code and nothing else; the commands, their options and the database connection stay in the CLI it wraps.
Facts
Where it sits
Who is behind it
In the atlas: maintains 222@SAP-samplesmaintainerBryan ThompsonContributes to this
In the atlas: contributes to 1@bryan-anthropicThomas JungContributes to this
Developer Advocate
In the atlas: contributes to 15, wrote 6@jung-thomas2 contributors
Before choosing this
Conditions
PolicySAP API Policy 4.2026a§ 1.1, 1.2, 2.2.2from Agent access to your systemsAn MCP server uses SAP APIs to supply tools, resources or data to an agent.
- § 1.1 Published APIs. Published APIs are made available for the documented purposes identified by SAP, including integration, extensions and data exchange.
- § 1.2 Non-Published APIs. Customer and third-party applications must not access non-published APIs except where documentation permits it or SAP otherwise authorizes it.
- § 2.2.2 AI call sequences and data extraction. Outside SAP-endorsed architectures, data services or expressly identified pathways, the policy prohibits specified agentic API use and systematic or large-scale extraction.
MCP does not replace the API's documented-use boundary. Check that every endpoint is published for the intended use and whether the policy's AI-call or extraction provisions apply to the design.
SAP API Policy 4.2026a →What it declares
Every artifact
- Type
- MCP server
- Origin
- By SAP
- Runtime
- Node.js
As an MCP server
- Tools
- 166
Connections
Giving an AI agent access to the systems you run over MCP
A cross-platform JavaScript runtime that servers, command line tools and scripts written in JavaScript are run with. For the things here, the prerequisite a repository names when its build is a set of npm scripts.
Developer-centric command line for SAP HANA
Download
Architecture
Download
README
quoted from SAP-samples/hana-cli-claude-plugin under Apache-2.0, readhana-cli — Claude Code Plugin
150+ SAP HANA database tools as AI-powered MCP tools for Claude Code.
This plugin connects Claude Code to SAP HANA Cloud and on-premise databases, giving your AI assistant direct access to schema exploration, data import/export, performance monitoring, security audits, backup management, and much more.
Install
In Claude Code, run:
/plugin install https://github.com/SAP-samples/hana-cli-claude-plugin
Or install manually by adding this to your project's .mcp.json:
{
"hana-cli": {
"command": "npx",
"args": ["-y", "-p", "hana-cli", "hana-cli-mcp"]
}
}
What You Get
| Category | Tools | Examples |
|---|---|---|
| Schema exploration | 20+ | List tables, views, procedures, functions, schemas |
| Object inspection | 10+ | Inspect table columns, view definitions, procedure parameters |
| Data tools | 15+ | Import CSV/Excel/JSON, export data, profile data quality, validate data |
| Performance monitoring | 15+ | Expensive statements, memory analysis, blocking sessions, deadlocks |
| Security | 10+ | Users, roles, privilege analysis, security scans, audit logs |
| Backup & recovery | 5+ | Create backups, check status, list backups, restore |
| System admin | 10+ | Health checks, system info, diagnostics, INI configuration |
| Developer tools | 15+ | CDS generation, code templates, test data generation, HDI containers |
| Discovery & help | 15+ | Search commands, examples, troubleshooting, guided workflows |
166 total MCP tools — covering virtually every SAP HANA administration and development task.
Prerequisites
- Node.js 20.19.0 or later
- SAP HANA database (Cloud or on-premise) with connection credentials
Database Connection
The plugin connects to your SAP HANA database using standard connection methods. Configure credentials via any of these (checked in order):
default-env-admin.json— admin connections.cdsrc-private.json— SAP CAP dynamic binding.env/VCAP_SERVICES— environment variablesdefault-env.json— default connection file~/.hana-cli/default.json— global default
Use the hana-cli connect command to set up credentials interactively:
npx hana-cli connect
Or use the __projectContext parameter on any tool call to specify connection details dynamically.
Example Usage
Once installed, just ask Claude:
- "What tables are in my HANA database?"
- "Show me the most expensive SQL statements"
- "Export the PRODUCTS table to CSV"
- "Run a health check on my database"
- "Find duplicate records in the ORDERS table"
- "Profile the data quality of CUSTOMERS"
- "What users have excessive privileges?"
Documentation
License
Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.
Repository Governance
This repository is part of the SAP-samples GitHub organisation. Administrative access is granted at the organisation level (SAP OSPO, SAP-samples maintainers, automation bots) and is not managed per-repository. There are zero direct collaborators on this repository.
The main branch is protected by a repository ruleset:
- Pull requests required (no direct pushes)
- Linear history required
- Force-pushes blocked
- Branch deletion blocked
Contributing
This plugin wraps hana-cli, an open-source SAP sample project. Issues and contributions are welcome at the main repository.
Others providing
Compare all 28 on the Agent access to your systems page →- mcp-integration-suitemcp-integration-suiteAn experimental Node MCP server covering the general CPI functions of the Integration Suite, which its author recommends running alongside the TPM server for Trading Partner Management.independent, btpMCP server for the general Integration Suite functions
- mcp-is-tpmmcp-is-tpmA Java MCP server for Trading Partner Management in the Integration Suite, where trading partners, their agreements and their B2B configuration live, paired by its author with the general server.independent, btpJava MCP server for Integration Suite Trading Partner Management
- calmcpcalmcpAn MCP server in front of the SAP Cloud ALM APIs: four read tools over tasks, projects, features, documents, tests and analytics, run over stdio locally or Streamable HTTP on Cloud Foundry.independent, btpMCP server with read tools over the SAP Cloud ALM APIs
- CostingGeek/sap-mcpCostingGeek/sap-mcpA Python server that fetches sales orders from SAP's business data graph and hands them to Claude Desktop — the only entry here pointed at that API rather than at one system's own services.independent, btpPython MCP server fetching sales orders from SAP's business data graph
- mcp-sap-focusedrunmcp-sap-focusedrunSAP Focused Run's Landscape Management Database as MCP tools — hosts, systems, databases, cloud tenants, technical instances, ABAP clients, software components and product versions.independent, btpMCP tools over SAP Focused Run's Landscape Management Database
- cloud-alm-itsm-mcpcloud-alm-itsm-mcpQueries installations through SAP Cloud ALM's ITSM API — filtered by system type or customer number, with OAuth token handling and caching done for you.independent, btpMCP server querying installations via the SAP Cloud ALM ITSM API
- hana-mcp-serverhana-mcp-serverSchema discovery and guard-railed SQL against SAP HANA and HANA Cloud, with an optional layer of business metadata so an agent reads a coded column the way the business does.independent, btpMCP server for schema discovery and guarded SQL on SAP HANA
- sap_analytics_cloud_mcpsap_analytics_cloud_mcpThe SAP Analytics Cloud REST API as ninety tools across eleven service areas — content, data import and export, user management, transport, scheduling and translation.independent, btpMCP server for the SAP Analytics Cloud REST API
- mcp-sap-cpimcp-sap-cpiThe runtime half of Cloud Integration: failed messages with their full processing logs and traces, artifact deployment, security material, and a health summary.independent, btpMCP server for Cloud Integration runtime: messages, logs, deployment
- AI Core MCP ServerAI Core MCP ServerAn MCP server that exposes SAP AI Core's APIs as tools, defined entirely in one JSON config file for a proxy, so deployments, configurations and scenarios are managed through an assistant.independent, btpSAP AI Core APIs as MCP tools from one JSON config file
- BTP CF MCP ServerBTP CF MCP ServerThe Cloud Foundry V3 API on SAP BTP as MCP tools — apps, orgs, spaces, services, routes and quotas — declared in one JSON config file and run by odata-mcp-proxy.independent, btpCloud Foundry V3 API on SAP BTP as MCP tools
- BTP MCP ServerBTP MCP ServerBTP Core Services as MCP tools, and the only server in this corner that renders dashboards inside the chat — a subaccount overview with drill-down, a geomap of data-centre locations, consumption and users.independent, btpBTP Core Services as MCP tools with in-chat dashboards
- btp-sap-odata-to-mcp-serverbtp-sap-odata-to-mcp-serverExposes every OData service on an S/4HANA or ECC system as MCP tools, in three discovery levels so a large catalogue does not have to be loaded at once.independent, btpExposes S/4HANA or ECC OData services as MCP tools
- CI MCP ServerCI MCP ServerAn MCP server that exposes SAP Cloud Integration's OData APIs as tools, defined entirely in one JSON config file, so an assistant works integration content, logs and configurations in natural language.independent, btpSAP Cloud Integration OData APIs as MCP tools
- odata-mcp-proxyodata-mcp-proxyA config-driven proxy that turns OData and REST endpoints into MCP tools from a JSON file — no code — and runs on BTP Cloud Foundry against BTP Destinations.independent, btpConfig-driven proxy turning OData and REST endpoints into MCP tools
- sap-pi-mcp-serversap-pi-mcp-serverThe only entry pointed at SAP PI and PO rather than at Cloud Integration — monitoring and Integration Directory metadata from the middleware that came before.independent, btpMCP server for SAP PI and PO monitoring and directory metadata
- sap-bdc-mcp-serversap-bdc-mcp-serverAn MCP server over SAP's BDC Connect SDK that creates, validates, publishes and deletes Databricks Delta shares as data products in SAP Business Data Cloud.independent, btpMCP server managing Delta shares in SAP Business Data Cloud
- @mariodefe/sap-datasphere-mcp@mariodefe/sap-datasphere-mcpForty-five tools across a Datasphere tenant — discovery, metadata, analytics, ETL extraction, database users, lineage and column profiling — with config-driven PII masking applied before anything reaches the model.independent, btpMCP server with forty-five tools across a Datasphere tenant
- midasol/sap-mcp-servermidasol/sap-mcp-serverA Python MCP server for SAP Gateway with four read-only tools that authenticate, query, fetch one entity and list services, and one of the few here that publishes its test results.independent, btpPython MCP server for SAP Gateway OData operations
- odata_mcp_goodata_mcp_goA Go binary that bridges any OData v2 or v4 service to MCP — and can collapse the whole service into one tool when the generated tool list is too large to be usable.independent, btpGo binary bridging any OData v2 or v4 service to MCP
- odata_mcpodata_mcpThe Python original: reads an OData v2 service's metadata and generates MCP tools from it, with the SAP-specific conversions the raw protocol leaves to you.independent, btpPython bridge generating MCP tools from OData v2 metadata
- sap-bdc-mcpsap-bdc-mcpDiscovery and contract tooling for SAP Business Data Cloud — ORD discovery, CSN contract checks and non-executing share planning — behind redaction, policy gates and bounded output.independent, btpMCP tooling for SAP Business Data Cloud discovery and contracts
- mcp-sap-datasphere-servermcp-sap-datasphere-serverThe read-only Datasphere server: explore spaces, list assets, preview rows, profile columns and summarise analytical models — and nothing that changes anything, by design.independent, btpRead-only MCP server for exploring SAP Datasphere
- MCP Server for SAP BTP AdministrationMCP Server for SAP BTP AdministrationSAP-hosted MCP endpoint that exposes BTP account administration — accounts, security, services and connectivity — as tools an AI client discovers and calls on your behalf.sap official, btpSAP-hosted MCP endpoint for BTP account administration
- SAP LeanIX MCP ServerSAP LeanIX MCP ServerHosted MCP endpoint onto an SAP LeanIX instance, exposing selected enterprise-architecture APIs as tools — fact sheets, applications, completeness and custom reports.sap official, btpHosted MCP endpoint onto an SAP LeanIX instance
- SAP-samples/hana-developer-cli-tool-exampleSAP-samples/hana-developer-cli-tool-exampleA developer-centric command line for SAP HANA, built for local development outside SAP tooling and connecting to a local, cloud or remote HANA instance the same way.sap official, btpDeveloper-centric command line for SAP HANA
- cpi-mcp-servercpi-mcp-serverA Go server over Cloud Integration's design-time content — integration packages and integration flows, listed and searched by id, version, name, vendor or mode.independent, btpGo MCP server over Cloud Integration packages and integration flows
Details
Sources
Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.
Compatibility and provenance
Contributors
History in the atlas
- First seen.
For your agent
- Ref
artifact:sap-samples-hana-cli-claude-plugin- JSON
- /artifacts/sap-samples-hana-cli-claude-plugin.json
- MCP
- Connecting an agent