About Hana MCP Server
Hana MCP Server is an MCP server published by HatriGt in the Data category: sAP HANA MCP server — Enterprise Model Context Protocol server for SAP HANA. Use with Claude Code, VS Code. npm: hana-mcp-server. Conduid read 34 tools from its source: hana_describe_function, hana_describe_index, hana_describe_procedure, hana_describe_table, hana_describe_view, hana_execute_query and 28 more. It is published to npm as hana-mcp-server and starts with npx.
The repository has 77 stars and 31 forks, is licensed MIT, and its last commit was on 7 Oct 2026. The latest release is v0.3.0. It is the only release Conduid has on record for this repository. It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass No dynamic code execution and Scoped permissions. Its topics include data.
Install
claude mcp add hana-mcp-server -- npx -y hana-mcp-servernpx -y hana-mcp-servergit clone https://github.com/HatriGt/hana-mcp-serverTools (34)
hana_describe_functionReturn parameter names, types, data types, and positions for a function from SYS.FUNCTION_PARAMETERS.| Parameter | Type | Description |
|---|---|---|
| catalog_database | string | MDC catalog database for SYS.* |
| function_name * | string | Function name |
| schema_name | string | Schema name (defaults to HANA_SCHEMA) |
hana_describe_indexDescribe the structure of a specific index| Parameter | Type | Description |
|---|---|---|
| catalog_database | string | Optional HANA database for SYS.INDEXES / SYS.INDEX_COLUMNS (MDC). Overrides HANA_METADATA_CATALOG_DATABASE when set. |
| index_name * | string | Name of the index to describe |
| schema_name | string | Name of the schema containing the table (optional) |
| table_name * | string | Name of the table containing the index |
hana_describe_procedureReturn parameter names, types (IN/OUT/INOUT), data types, and positions from SYS.PROCEDURE_PARAMETERS.| Parameter | Type | Description |
|---|---|---|
| catalog_database | string | MDC catalog database for SYS.* |
| procedure_name * | string | Procedure name |
| schema_name | string | Schema name (defaults to HANA_SCHEMA) |
hana_describe_tableDescribe the structure of a specific table| Parameter | Type | Description |
|---|---|---|
| catalog_database | string | Optional HANA database for SYS.TABLE_COLUMNS (e.g. HSP when connected to another tenant). Overrides HANA_METADATA_CATALOG_DATABASE when set. |
| schema_name | string | Name of the schema containing the table (optional) |
| table_name * | string | Name of the table to describe |
hana_describe_viewReturn the view definition (SQL) and column metadata from SYS.VIEWS and SYS.VIEW_COLUMNS.| Parameter | Type | Description |
|---|---|---|
| catalog_database | string | MDC catalog database for SYS.* |
| schema_name | string | Schema name (defaults to HANA_SCHEMA) |
| view_name * | string | View name |
hana_execute_queryExecute SQL against HANA. When HANA_QUERY_LIMITS_ENABLED=true, SELECT/WITH queries are wrapped with LIMIT/OFFSET (HANA_MAX_RESULT_ROWS) and row/column/cell caps apply; results are returned as-is otherwise. INSERT/UPDATE/DELETE are blocked by default; set HANA_ALLOW_INSERT, HANA_ALLOW_UPDATE, HANA_ALLOW_DELETE=true individually to permit each. Use limit, offset, maxRows, includeTotal as needed. If truncated, snapshotId may be returned for hana_query_next_page.| Parameter | Type | Description |
|---|---|---|
| includeTotal | boolean | If true, run COUNT(*) on the same SELECT subquery (extra cost). Only for SELECT/WITH. |
| limit | number | Deprecated alias for maxRows; prefer maxRows |
| maxRows | number | Max data rows to return this page (capped by HANA_MAX_RESULT_ROWS) |
| offset | number | Row offset for paged reads (SELECT/WITH only) |
| parameters | array | Optional parameters for the query (for prepared statements) |
| query * | string | The SQL query to execute |
| timeout_ms | number | Query timeout in milliseconds. 0 or omitted uses HANA_QUERY_TIMEOUT_MS (default 0 = disabled). |
hana_explain_planRun EXPLAIN PLAN for a SELECT/WITH query and return operator tree from EXPLAIN_PLAN_TABLE. Only SELECT/WITH are accepted.| Parameter | Type | Description |
|---|---|---|
| query * | string | SELECT or WITH query to explain (must not contain DML/DDL) |
hana_explain_tableReturn column metadata merged with optional business semantics from HANA_SEMANTICS_PATH or HANA_SEMANTICS_URL (JSON keys: SCHEMA.TABLE or DB.SCHEMA.TABLE when catalog_database is set). Optional catalog_database reads SYS.* from another MDC database (e.g. HSP).| Parameter | Type | Description |
|---|---|---|
| catalog_database | string | Optional HANA database for SYS.TABLE_COLUMNS (MDC cross-tenant). Overrides HANA_METADATA_CATALOG_DATABASE when set. |
| schema_name | string | Schema containing the table (optional if HANA_SCHEMA is set) |
| table_name * | string | Table name |
hana_get_column_statsRetrieve column statistics (distinct count, null count, min/max) from SYS.COLUMN_STATISTICS (cached) or via live COUNT queries (live=true). With live=true a specific column_name is required.| Parameter | Type | Description |
|---|---|---|
| column_name | string | Optional: single column to inspect. Required when live=true. |
| live | boolean | If true, run live COUNT(*)/COUNT(DISTINCT) queries instead of reading SYS.COLUMN_STATISTICS. |
| schema_name | string | Schema name (defaults to HANA_SCHEMA) |
| table_name * | string | Table name |
hana_get_ddlRetrieve the DDL (CREATE statement) for a TABLE, VIEW, PROCEDURE, FUNCTION, TRIGGER, or SEQUENCE from SYS.OBJECT_DEFINITION. Requires appropriate privileges.| Parameter | Type | Description |
|---|---|---|
| object_name * | string | Object name |
| object_type | string | Optional filter: TABLE, VIEW, PROCEDURE, FUNCTION, TRIGGER, SEQUENCE |
| schema_name | string | Schema name (defaults to HANA_SCHEMA) |
hana_get_dependenciesShow what an object depends on or what depends on it, from SYS.OBJECT_DEPENDENCIES. Capped at 200 rows.| Parameter | Type | Description |
|---|---|---|
| direction | string | base (what this depends on), dependent (what depends on this), both (default) |
| object_name * | string | Object name |
| schema_name | string | Schema name (defaults to HANA_SCHEMA) |
hana_get_expensive_queriesReturn the most expensive statements from M_EXPENSIVE_STATEMENTS ordered by duration. Requires MONITORING privilege.| Parameter | Type | Description |
|---|---|---|
| limit | number | Number of statements to return (default 20, max 100) |
hana_get_partition_infoReturn partition metadata (type, level, record count, loaded state) from SYS.TABLE_PARTITIONS. Returns empty result for unpartitioned tables.| Parameter | Type | Description |
|---|---|---|
| schema_name | string | Schema name (defaults to HANA_SCHEMA) |
| table_name * | string | Table name |
hana_get_sample_dataFetch the first N rows from a table using SELECT TOP. Result is shaped by the same row/column/cell caps as hana_execute_query.| Parameter | Type | Description |
|---|---|---|
| limit | number | Number of rows (default 10, max HANA_MAX_RESULT_ROWS) |
| schema_name | string | Schema name (defaults to HANA_SCHEMA) |
| table_name * | string | Table name |
hana_get_session_infoReturn CURRENT_USER, CURRENT_SCHEMA, connected database name, SYSTEM_ID, and HANA version from DUMMY and M_DATABASE.hana_get_table_statsReturn row count, table type, column-store flag, primary key flag, and disk size (requires MONITORING privilege for disk size) from SYS.TABLES and SYS.M_TABLE_SIZES.| Parameter | Type | Description |
|---|---|---|
| schema_name | string | Schema name (defaults to HANA_SCHEMA) |
| table_name * | string | Table name |
hana_list_calculation_viewsList calculation views from the _SYS_BIC schema (SAP BW/S4 analytical views). Supports prefix filter and pagination.| Parameter | Type | Description |
|---|---|---|
| limit | number | |
| offset | number | |
| prefix | string | Filter view names by prefix |
hana_list_constraintsList primary key, unique, check, and foreign key constraints for a table (SYS.CONSTRAINTS + SYS.REFERENTIAL_CONSTRAINTS).| Parameter | Type | Description |
|---|---|---|
| catalog_database | string | MDC catalog database for SYS.* (overrides HANA_METADATA_CATALOG_DATABASE) |
| schema_name | string | Schema name (defaults to HANA_SCHEMA) |
| table_name * | string | Table name |
hana_list_foreign_keysList referential constraints (foreign keys) showing column, referenced table/column, and delete rule from SYS.REFERENTIAL_CONSTRAINTS.| Parameter | Type | Description |
|---|---|---|
| catalog_database | string | MDC catalog database for SYS.* |
| schema_name | string | Schema name (defaults to HANA_SCHEMA) |
| table_name * | string | Table name |
hana_list_functionsList scalar and table functions from SYS.FUNCTIONS. Supports prefix filter and pagination.| Parameter | Type | Description |
|---|---|---|
| limit | number | |
| offset | number | |
| prefix | string | Filter function names by prefix |
| schema_name | string | Schema name (defaults to HANA_SCHEMA) |
hana_list_indexesList all indexes for a specific table| Parameter | Type | Description |
|---|---|---|
| catalog_database | string | Optional HANA database for SYS.INDEXES / SYS.INDEX_COLUMNS (MDC). Overrides HANA_METADATA_CATALOG_DATABASE when set. |
| schema_name | string | Name of the schema containing the table (optional) |
| table_name * | string | Name of the table to list indexes for |
hana_list_privilegesList effective privileges for a user (or CURRENT_USER if omitted) from SYS.EFFECTIVE_PRIVILEGES. Requires CATALOG READ privilege or querying own privileges.| Parameter | Type | Description |
|---|---|---|
| grantee | string | Database user to query. Omit for current user. |
hana_list_proceduresList stored procedures and their parameter counts from SYS.PROCEDURES.| Parameter | Type | Description |
|---|---|---|
| limit | number | |
| offset | number | |
| prefix | string | Filter procedure names by prefix |
| schema_name | string | Schema name (defaults to HANA_SCHEMA) |
hana_list_schemasList schemas in the HANA database with optional prefix filter and pagination (HANA_LIST_DEFAULT_LIMIT / offset).| Parameter | Type | Description |
|---|---|---|
| limit | number | Max schemas to return (capped by server) |
| offset | number | Skip this many schemas (paging) |
| prefix | string | Optional case-sensitive prefix filter (SQL LIKE prefix%) |
hana_list_sequencesList sequences from SYS.SEQUENCES, showing start, min, max, increment, cycle, and cache settings.| Parameter | Type | Description |
|---|---|---|
| limit | number | |
| offset | number | |
| prefix | string | Filter sequence names by prefix |
| schema_name | string | Schema name (defaults to HANA_SCHEMA) |
hana_list_synonymsList synonyms in a schema from SYS.SYNONYMS, showing target object schema, name, and type.| Parameter | Type | Description |
|---|---|---|
| limit | number | |
| offset | number | |
| prefix | string | Filter synonym names by prefix |
| schema_name | string | Schema name (defaults to HANA_SCHEMA) |
hana_list_tablesList tables in a schema with optional name prefix and pagination (HANA_LIST_DEFAULT_LIMIT / offset).| Parameter | Type | Description |
|---|---|---|
| catalog_database | string | Optional HANA database name whose SYS.TABLES catalog to read (MDC cross-tenant). Omit for connected DB. Overrides HANA_METADATA_CATALOG_DATABASE when set. |
| limit | number | Max tables to return (capped by server) |
| offset | number | Skip this many tables (paging) |
| prefix | string | Optional table name prefix filter (SQL LIKE prefix%) |
| schema_name | string | Name of the schema to list tables from (optional) |
hana_list_viewsList views in a schema from SYS.VIEWS. Supports prefix filter and pagination.| Parameter | Type | Description |
|---|---|---|
| limit | number | Max results (capped by HANA_LIST_DEFAULT_LIMIT) |
| offset | number | Pagination offset |
| prefix | string | Filter view names by prefix |
| schema_name | string | Schema name (defaults to HANA_SCHEMA) |
hana_query_next_pageFetch the next page of a truncated SELECT using snapshotId from a previous hana_execute_query result (same SQL and parameters; TTL HANA_QUERY_SNAPSHOT_TTL_MS).| Parameter | Type | Description |
|---|---|---|
| max_rows | number | Optional page size override (capped by server) |
| offset * | number | Offset for this page (usually prior nextOffset) |
| snapshot_id * | string | snapshotId from structuredContent of a truncated query result |
hana_search_columnsFind all columns matching a LIKE pattern across all tables (or within a schema). Uses SYS.TABLE_COLUMNS. Results capped at 1000.| Parameter | Type | Description |
|---|---|---|
| column_pattern * | string | LIKE pattern (e.g. %CUSTOMER_ID%, BUKRS) |
| limit | number | Max results (hard cap 1000) |
| schema_name | string | Optional schema filter |
hana_search_tablesFind all tables matching a LIKE pattern across all schemas (or within a specific schema). Uses SYS.TABLES. Results capped at 2000.| Parameter | Type | Description |
|---|---|---|
| limit | number | Max results (hard cap 2000) |
| schema_name | string | Optional schema filter |
| table_pattern * | string | LIKE pattern (e.g. %ORDERS%, BKPF) |
hana_show_configShow the HANA database configurationhana_show_env_varsShow all HANA-related environment variables (for debugging)hana_test_connectionTest connection to HANA databaseSecurity checks
Static checks derived from the repository 11 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 2.0K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json.
- !No dynamic code executionScanned 69 source files and found 6 calls to eval or shell execution, in hana-mcp-ui/bin/cli.js:46, hana-mcp-ui/bin/cli.js:54 and hana-mcp-ui/start.js:48 among others. Review how tool inputs reach them before granting credentials.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- None found in the source
- Starts other programs
- 8 callshana-mcp-ui/bin/cli.js:32, hana-mcp-ui/bin/cli.js:46, hana-mcp-ui/bin/cli.js:54
- Outbound network calls
- 9 callshana-mcp-ui/src/components/MainApp.jsx:140, hana-mcp-ui/src/components/MainApp.jsx:149, hana-mcp-ui/src/components/MainApp.jsx:158
- Writes or deletes files
- 1 callsrc/utils/audit-logger.js:43
- Lockfile
- package-lock.json
Pattern matches on the source text of 69 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 2.0K words, fetched a month ago. The original in the repository is authoritative.
Read full README