MCP server · Audited from source
Hana MCP server
by hatrigt/hana-mcp-serverMIT licenceAudited 7 Oct 2026 · source c912c4910a7f
Is it safe? Yes — SAFE, grade B (89/100). It exposes 38 tools: 35 read, 3 write and 0 destructive. The audit recorded 18 findings (0 critical, 0 high, 0 medium, 16 low). Maintainer's description: SAP HANA MCP server — Enterprise Model Context Protocol server for SAP HANA. Use with Claude Code, VS Code. npm: hana-mcp-server
Cite
Cite this page
ModelsAtlas. “Hana MCP server (hatrigt/hana-mcp-server)”. Retrieved 7 Oct 2026. https://modelsatlas.com/mcp/hatrigt/hana
Trust audit
Audit 0.4.1 · full source read 7 Oct 2026
18 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemDeclared5 observations
- NetworkDeclared5 observations
- ShellDeclared3 observations
- DependenciesNot pinnedSome ranges float
- SecretsNone foundNo keys in source
“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.
Five audit layers
| Layer | What we check | Result |
|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS 3 findings |
L1 Static source | Secrets, path traversal, supply chain | PASS 12 findings |
L2 Instructions | Prompt injection and authority framing in docs and tool descriptions | PASS 3 findings |
L3 Inventory | Declared tools match the source | PASS |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED |
Provenance & runtime
Who published it, and what the audit could and could not run
Provenance
- Repository owner
hatrigtUser accountAccount type recorded when we read the repository. - PackagePublished on npm
hana-mcp-serverat version 0.3.4 - LicenceMITFrom the repository, as read at the audited commit.
- Last pushTodayActivity of the repository when we read it.
- Source commit readc912c4910a7fThe audit covers exactly this commit, read on 7 Oct 2026.
Runtime
- Sandbox runNot run yetThis audit read the source only; it did not execute the server.
- Tool inventory38 declaredRead from the source and classed read, write or destructive.
Every value here is read from the record's own repository and audit.Suggest a correction
Findings (18)
Sorted by severity
LOWFilesystem / pathfs.traversal · hana-mcp-ui/src/components/layout/VerticalSidebar.jsx:3
import { cn } from '../../utils/cn';- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · hana-mcp-ui/src/components/ui/DatabaseTypeBadge.jsx:1
import { getDatabaseTypeColor, getDatabaseTypeShortName } from '../../utils/databaseTypes'- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · hana-mcp-ui/src/components/ui/GlassCard.jsx:2
import { cn } from '../../utils/cn'- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · hana-mcp-ui/src/components/ui/GlassCard.jsx:3
import { colors, shadows, borderRadius } from '../../utils/theme'- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · hana-mcp-ui/src/components/ui/GradientButton.jsx:2
import { cn } from '../../utils/cn'- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · README.md:144
**Cursor / local IDE over HTTP:** set `HANA_*` in the shell (or process manager) that runs `start:http`, then add an HTTP MCP entry with `url` `http://127.0.0.1:3100/mcp` (`"type": "fetch"` or `"type"
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · README.md:148
| Endpoint | `POST` JSON-RPC to `/mcp` (default base `http://127.0.0.1:3100`) |
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · docs/local-http-mcp.md:3
The server exposes **Streamable HTTP** MCP at **`POST /mcp`** (default `http://127.0.0.1:3100/mcp`). HANA credentials apply to the **Node process** that runs the HTTP server, not to the IDE MCP entry
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · docs/local-http-mcp.md:34
"url": "http://127.0.0.1:3100/mcp"
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · docs/local-http-mcp.md:43
curl -s http://127.0.0.1:3100/mcp
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWSupply chainsupply.unpinned · hana-mcp-ui/package.json
@heroicons/react, @tailwindcss/forms, @vitejs/plugin-react, autoprefixer, axios, chalk, clsx, cors
- Why
- 19 dependency range(s) float
- Fix
- pin exact versions or ship a lockfile
LOWSupply chainsupply.unpinned · package.json
@sap/hana-client, axios, jose, nodemon
- Why
- 4 dependency range(s) float
- Fix
- pin exact versions or ship a lockfile
LOWPrompt injectionprompt.transfer_instruction · docs/local-http-mcp.md:3
The server exposes **Streamable HTTP** MCP at **`POST /mcp`** (default `http://127.0.0.1:3100/mcp`). HANA credentials apply to the **Node process** that runs the HTTP server, not to the IDE MCP entry
- Why
- an instruction to move sensitive data to an outside destination
- Fix
- remove; a skill never needs the user's secrets off the machine
LOWPrompt injectionprompt.transfer_instruction · docs/local-http-mcp.md:51
The HTTP transport does **not** implement a full OAuth 2.0 **authorization-server** flow (no hosted `/authorize` or `/token` on this app). It behaves as a **resource endpoint**: callers send **`Author
- Why
- an instruction to move sensitive data to an outside destination
- Fix
- remove; a skill never needs the user's secrets off the machine
LOWPrompt injectionprompt.transfer_instruction · tests/README.md:184
The server can also run over HTTP. One JSON‐RPC request per POST; no persistent session.
- Why
- an instruction to move sensitive data to an outside destination
- Fix
- remove; a skill never needs the user's secrets off the machine
INFOInventory / provenanceinv.oversize · docs/hana_mcp_ui.gif
docs/hana_mcp_ui.gif
- Why
- 4632059 bytes not read
- Fix
- —
INFOInventory / provenanceinv.oversize · hana-mcp-ui/hana_mcp_ui.gif
hana-mcp-ui/hana_mcp_ui.gif
- Why
- 4632059 bytes not read
- Fix
- —
Tools it exposes
38 declared in source · 0 destructive
| Tool | Risk | What it does |
|---|---|---|
hana_explain_plan | write | Run EXPLAIN PLAN for a SELECT/WITH query and return operator tree from EXPLAIN_PLAN_TABLE. Only SELECT/WITH are accepted. |
hana_get_ddl | write | Retrieve the DDL (CREATE statement) for a TABLE, VIEW, PROCEDURE, FUNCTION, TRIGGER, or SEQUENCE from SYS.OBJECT_DEFINITION. Requires appropriate privileges. |
hana_list_sequences | write | List sequences from SYS.SEQUENCES, showing start, min, max, increment, cycle, and cache settings. |
goal | read | What the query should achieve |
hana_connection_test | read | Test HANA database connection and show configuration |
hana_describe_function | read | Return parameter names, types, data types, and positions for a function from SYS.FUNCTION_PARAMETERS. |
hana_describe_index | read | Describe the structure of a specific index |
hana_describe_procedure | read | Return parameter names, types (IN/OUT/INOUT), data types, and positions from SYS.PROCEDURE_PARAMETERS. |
hana_describe_table | read | Describe the structure of a specific table |
hana_describe_view | read | Return the view definition (SQL) and column metadata from SYS.VIEWS and SYS.VIEW_COLUMNS. |
hana_explain_table | read | Return 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). |
hana_get_column_stats | read | Retrieve 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. |
hana_get_dependencies | read | Show what an object depends on or what depends on it, from SYS.OBJECT_DEPENDENCIES. Capped at 200 rows. |
hana_get_expensive_queries | read | Return the most expensive statements from M_EXPENSIVE_STATEMENTS ordered by duration. Requires MONITORING privilege. |
hana_get_partition_info | read | Return partition metadata (type, level, record count, loaded state) from SYS.TABLE_PARTITIONS. Returns empty result for unpartitioned tables. |
hana_get_sample_data | read | Fetch the first N rows from a table using SELECT TOP. Result is shaped by the same row/column/cell caps as hana_execute_query. |
hana_get_session_info | read | Return CURRENT_USER, CURRENT_SCHEMA, connected database name, SYSTEM_ID, and HANA version from DUMMY and M_DATABASE. |
hana_get_table_stats | read | Return 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. |
hana_list_calculation_views | read | List calculation views from the _SYS_BIC schema (SAP BW/S4 analytical views). Supports prefix filter and pagination. |
hana_list_constraints | read | List primary key, unique, check, and foreign key constraints for a table (SYS.CONSTRAINTS + SYS.REFERENTIAL_CONSTRAINTS). |
hana_list_foreign_keys | read | List referential constraints (foreign keys) showing column, referenced table/column, and delete rule from SYS.REFERENTIAL_CONSTRAINTS. |
hana_list_functions | read | List scalar and table functions from SYS.FUNCTIONS. Supports prefix filter and pagination. |
hana_list_indexes | read | List all indexes for a specific table |
hana_list_privileges | read | List effective privileges for a user (or CURRENT_USER if omitted) from SYS.EFFECTIVE_PRIVILEGES. Requires CATALOG READ privilege or querying own privileges. |
hana_list_procedures | read | List stored procedures and their parameter counts from SYS.PROCEDURES. |
hana_list_schemas | read | List schemas in the HANA database with optional prefix filter and pagination (HANA_LIST_DEFAULT_LIMIT / offset). |
hana_list_synonyms | read | List synonyms in a schema from SYS.SYNONYMS, showing target object schema, name, and type. |
hana_list_tables | read | List tables in a schema with optional name prefix and pagination (HANA_LIST_DEFAULT_LIMIT / offset). |
hana_list_views | read | List views in a schema from SYS.VIEWS. Supports prefix filter and pagination. |
hana_query_builder | read | Build a SQL query for HANA database |
hana_query_next_page | read | Fetch 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). |
hana_schema_explorer | read | Explore HANA database schemas and tables |
hana_search_columns | read | Find all columns matching a LIKE pattern across all tables (or within a schema). Uses SYS.TABLE_COLUMNS. Results capped at 1000. |
hana_search_tables | read | Find all tables matching a LIKE pattern across all schemas (or within a specific schema). Uses SYS.TABLES. Results capped at 2000. |
hana_show_config | read | Show the HANA database configuration |
hana_show_env_vars | read | Show all HANA-related environment variables (for debugging) |
hana_test_connection | read | Test connection to HANA database |
schemas | read | List of schema names in the HANA database |
Install
Package version 0.3.4 · audited commit c912c49
One-click links open your editor with the config below filled in, exactly as the snippets show it, pinned to version 0.3.4. The audit covers commit c912c49 only.
claude mcp add hana-mcp-server --env HANA_PASSWORD=${HANA_PASSWORD} --env MCP_HTTP_AUTH_ENABLED=${MCP_HTTP_AUTH_ENABLED} -- npx -y [email protected]{
"mcpServers": {
"hana-mcp-server": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"HANA_PASSWORD": "${HANA_PASSWORD}",
"MCP_HTTP_AUTH_ENABLED": "${MCP_HTTP_AUTH_ENABLED}"
}
}
}
}The command pins the package version recorded in the source (0.3.4); the audit covers commit c912c4910a7f. Transport: not declared. Reads these environment variables: HANA_PASSWORD, MCP_HTTP_AUTH_ENABLED. Give it the narrowest token it needs.
Audit history
- ✓SAFE B 89 / 100
First audit ·
c912c4910a7f
README badge
For maintainers · updates on every re-audit
[](https://modelsatlas.com/mcp/hatrigt/hana/)
The badge always shows the latest audit; a maintainer cannot pin an old verdict.
Other ratings
Cited, never blended into our score
No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.
Questions about Hana MCP server
What is the Hana MCP server?
What tools does Hana expose?
Is Hana safe to connect to an agent?
What credentials does Hana need?
How current is this page?
Sources
- hatrigt/hana-mcp-server on GitHub — the source we read, its licence, stars and activityObserved · 7 Oct 2026
- ModelsAtlas trust audit — SAFE verdict for commit c912c4910a7fObserved · 7 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What is the Hana MCP server?
- What tools does Hana expose?
- Is Hana safe to connect to an agent?