1. Conduid
  2. Data
  3. Hana MCP Server
MCP server · Data

Hana MCP Server

SAP HANA MCP server — Enterprise Model Context Protocol server for SAP HANA. Use with Claude Code, VS Code. npm: hana-mcp-server

Unclaimed MIT data
61Good

Scored 21 hours ago · breakdown

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 Code
claude mcp add hana-mcp-server -- npx -y hana-mcp-server
npx
npx -y hana-mcp-server
From source
git clone https://github.com/HatriGt/hana-mcp-server

Tools (34)

hana_describe_functionReturn parameter names, types, data types, and positions for a function from SYS.FUNCTION_PARAMETERS.
ParameterTypeDescription
catalog_databasestringMDC catalog database for SYS.*
function_name *stringFunction name
schema_namestringSchema name (defaults to HANA_SCHEMA)
hana_describe_indexDescribe the structure of a specific index
ParameterTypeDescription
catalog_databasestringOptional HANA database for SYS.INDEXES / SYS.INDEX_COLUMNS (MDC). Overrides HANA_METADATA_CATALOG_DATABASE when set.
index_name *stringName of the index to describe
schema_namestringName of the schema containing the table (optional)
table_name *stringName of the table containing the index
hana_describe_procedureReturn parameter names, types (IN/OUT/INOUT), data types, and positions from SYS.PROCEDURE_PARAMETERS.
ParameterTypeDescription
catalog_databasestringMDC catalog database for SYS.*
procedure_name *stringProcedure name
schema_namestringSchema name (defaults to HANA_SCHEMA)
hana_describe_tableDescribe the structure of a specific table
ParameterTypeDescription
catalog_databasestringOptional HANA database for SYS.TABLE_COLUMNS (e.g. HSP when connected to another tenant). Overrides HANA_METADATA_CATALOG_DATABASE when set.
schema_namestringName of the schema containing the table (optional)
table_name *stringName of the table to describe
hana_describe_viewReturn the view definition (SQL) and column metadata from SYS.VIEWS and SYS.VIEW_COLUMNS.
ParameterTypeDescription
catalog_databasestringMDC catalog database for SYS.*
schema_namestringSchema name (defaults to HANA_SCHEMA)
view_name *stringView 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.
ParameterTypeDescription
includeTotalbooleanIf true, run COUNT(*) on the same SELECT subquery (extra cost). Only for SELECT/WITH.
limitnumberDeprecated alias for maxRows; prefer maxRows
maxRowsnumberMax data rows to return this page (capped by HANA_MAX_RESULT_ROWS)
offsetnumberRow offset for paged reads (SELECT/WITH only)
parametersarrayOptional parameters for the query (for prepared statements)
query *stringThe SQL query to execute
timeout_msnumberQuery 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.
ParameterTypeDescription
query *stringSELECT 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).
ParameterTypeDescription
catalog_databasestringOptional HANA database for SYS.TABLE_COLUMNS (MDC cross-tenant). Overrides HANA_METADATA_CATALOG_DATABASE when set.
schema_namestringSchema containing the table (optional if HANA_SCHEMA is set)
table_name *stringTable 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.
ParameterTypeDescription
column_namestringOptional: single column to inspect. Required when live=true.
livebooleanIf true, run live COUNT(*)/COUNT(DISTINCT) queries instead of reading SYS.COLUMN_STATISTICS.
schema_namestringSchema name (defaults to HANA_SCHEMA)
table_name *stringTable name
hana_get_ddlRetrieve the DDL (CREATE statement) for a TABLE, VIEW, PROCEDURE, FUNCTION, TRIGGER, or SEQUENCE from SYS.OBJECT_DEFINITION. Requires appropriate privileges.
ParameterTypeDescription
object_name *stringObject name
object_typestringOptional filter: TABLE, VIEW, PROCEDURE, FUNCTION, TRIGGER, SEQUENCE
schema_namestringSchema 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.
ParameterTypeDescription
directionstringbase (what this depends on), dependent (what depends on this), both (default)
object_name *stringObject name
schema_namestringSchema name (defaults to HANA_SCHEMA)
hana_get_expensive_queriesReturn the most expensive statements from M_EXPENSIVE_STATEMENTS ordered by duration. Requires MONITORING privilege.
ParameterTypeDescription
limitnumberNumber 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.
ParameterTypeDescription
schema_namestringSchema name (defaults to HANA_SCHEMA)
table_name *stringTable 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.
ParameterTypeDescription
limitnumberNumber of rows (default 10, max HANA_MAX_RESULT_ROWS)
schema_namestringSchema name (defaults to HANA_SCHEMA)
table_name *stringTable 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.
ParameterTypeDescription
schema_namestringSchema name (defaults to HANA_SCHEMA)
table_name *stringTable name
hana_list_calculation_viewsList calculation views from the _SYS_BIC schema (SAP BW/S4 analytical views). Supports prefix filter and pagination.
ParameterTypeDescription
limitnumber
offsetnumber
prefixstringFilter view names by prefix
hana_list_constraintsList primary key, unique, check, and foreign key constraints for a table (SYS.CONSTRAINTS + SYS.REFERENTIAL_CONSTRAINTS).
ParameterTypeDescription
catalog_databasestringMDC catalog database for SYS.* (overrides HANA_METADATA_CATALOG_DATABASE)
schema_namestringSchema name (defaults to HANA_SCHEMA)
table_name *stringTable name
hana_list_foreign_keysList referential constraints (foreign keys) showing column, referenced table/column, and delete rule from SYS.REFERENTIAL_CONSTRAINTS.
ParameterTypeDescription
catalog_databasestringMDC catalog database for SYS.*
schema_namestringSchema name (defaults to HANA_SCHEMA)
table_name *stringTable name
hana_list_functionsList scalar and table functions from SYS.FUNCTIONS. Supports prefix filter and pagination.
ParameterTypeDescription
limitnumber
offsetnumber
prefixstringFilter function names by prefix
schema_namestringSchema name (defaults to HANA_SCHEMA)
hana_list_indexesList all indexes for a specific table
ParameterTypeDescription
catalog_databasestringOptional HANA database for SYS.INDEXES / SYS.INDEX_COLUMNS (MDC). Overrides HANA_METADATA_CATALOG_DATABASE when set.
schema_namestringName of the schema containing the table (optional)
table_name *stringName 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.
ParameterTypeDescription
granteestringDatabase user to query. Omit for current user.
hana_list_proceduresList stored procedures and their parameter counts from SYS.PROCEDURES.
ParameterTypeDescription
limitnumber
offsetnumber
prefixstringFilter procedure names by prefix
schema_namestringSchema name (defaults to HANA_SCHEMA)
hana_list_schemasList schemas in the HANA database with optional prefix filter and pagination (HANA_LIST_DEFAULT_LIMIT / offset).
ParameterTypeDescription
limitnumberMax schemas to return (capped by server)
offsetnumberSkip this many schemas (paging)
prefixstringOptional case-sensitive prefix filter (SQL LIKE prefix%)
hana_list_sequencesList sequences from SYS.SEQUENCES, showing start, min, max, increment, cycle, and cache settings.
ParameterTypeDescription
limitnumber
offsetnumber
prefixstringFilter sequence names by prefix
schema_namestringSchema name (defaults to HANA_SCHEMA)
hana_list_synonymsList synonyms in a schema from SYS.SYNONYMS, showing target object schema, name, and type.
ParameterTypeDescription
limitnumber
offsetnumber
prefixstringFilter synonym names by prefix
schema_namestringSchema name (defaults to HANA_SCHEMA)
hana_list_tablesList tables in a schema with optional name prefix and pagination (HANA_LIST_DEFAULT_LIMIT / offset).
ParameterTypeDescription
catalog_databasestringOptional HANA database name whose SYS.TABLES catalog to read (MDC cross-tenant). Omit for connected DB. Overrides HANA_METADATA_CATALOG_DATABASE when set.
limitnumberMax tables to return (capped by server)
offsetnumberSkip this many tables (paging)
prefixstringOptional table name prefix filter (SQL LIKE prefix%)
schema_namestringName of the schema to list tables from (optional)
hana_list_viewsList views in a schema from SYS.VIEWS. Supports prefix filter and pagination.
ParameterTypeDescription
limitnumberMax results (capped by HANA_LIST_DEFAULT_LIMIT)
offsetnumberPagination offset
prefixstringFilter view names by prefix
schema_namestringSchema 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).
ParameterTypeDescription
max_rowsnumberOptional page size override (capped by server)
offset *numberOffset for this page (usually prior nextOffset)
snapshot_id *stringsnapshotId 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.
ParameterTypeDescription
column_pattern *stringLIKE pattern (e.g. %CUSTOMER_ID%, BUKRS)
limitnumberMax results (hard cap 1000)
schema_namestringOptional 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.
ParameterTypeDescription
limitnumberMax results (hard cap 2000)
schema_namestringOptional schema filter
table_pattern *stringLIKE pattern (e.g. %ORDERS%, BKPF)
hana_show_configShow the HANA database configuration
hana_show_env_varsShow all HANA-related environment variables (for debugging)
hana_test_connectionTest connection to HANA database

Security 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

v0.3.0v0.3.0

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
Questions

About Hana MCP Server

How do I install Hana MCP Server?

In Claude Code, run claude mcp add hana-mcp-server -- npx -y hana-mcp-server. Other MCP clients take the command after "--" in their server configuration.

Is Hana MCP Server safe to use with an AI agent?

Its trust score is 61 out of 100 (good). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass No dynamic code execution and Scoped permissions. Conduid's scan of 69 source files found that it starts other programs (8 calls), makes outbound network calls (9 calls) and writes or deletes files (1 call). Its dependencies are pinned by package-lock.json. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Hana MCP Server still maintained?

Yes — the last commit was a month ago. The repository has 77 stars and 31 forks and 5 open issues.

What tools does Hana MCP Server provide?

Conduid read 34 tools from the source: hana_describe_function, hana_describe_index, hana_describe_procedure, hana_describe_table, hana_describe_view, hana_execute_query, hana_explain_plan, hana_explain_table and 26 more. 30 of them publish their parameters, listed under Tools above.

What license is Hana MCP Server released under?

The repository declares the MIT license. That applies to the latest release, v0.3.0, as well.