Skip to main content
Glama
HatriGt

HANA Cloud MCP Server

by HatriGt

SAP HANA MCP Server

npm version npm downloads Node.js License MCP

SAP HANA MCP Server implements the Model Context Protocol for SAP HANA and SAP HANA Cloud. AI clients discover schema, run SQL with guardrails, and optionally merge business/domain metadata so agents interpret codes and tables consistently—without replacing your database as the system of record.


📚 Documentation

Document

Purpose

This README

Prerequisites, install, how to wire each client, capability summary, configuration cheat sheet, troubleshooting

CHANGELOG.md

Release history — features and fixes by version (latest 0.3.1)

docs/README.md

Index of /docs

docs/ENVIRONMENT.md

Authoritative env reference: every variable, defaults, hard bounds, HTTP auth, security notes

docs/configuration-samples.md

Copy-paste: connection profiles (single-container, MDC), semantics JSON, paging pointers

docs/local-http-mcp.md

Local HTTP MCP: npm run start:http, Cursor mcp.json, curl smoke checks


Related MCP server: sqlserver

✅ Prerequisites

  • Node.js 18+

  • A SAP HANA or SAP HANA Cloud database reachable on the SQL port from the machine running the server

  • An MCP client (Claude Desktop, Claude Code, VS Code, Cursor, Cline, Windsurf, or custom HTTP client)

  • Credentials supplied via env (see Security)


📦 Installation

Method

Use when

npx + -y hana-mcp-server in MCP config

Default — no global install

npm install -g hana-mcp-server

You need hana-mcp-server on PATH

Clone + node hana-mcp-server.js

Developing or pinning a local build

HTTP entrypoint (from a clone): npm run start:http — default bind 127.0.0.1:3100, path /mcp. See Hosted & HTTP.


🎯 Use cases

Audience

Transport

Next step

Chat / lite users

stdio

Claude Desktop

Developers (Claude Code, VS Code, Cline, Cursor, Windsurf)

stdio

IDEs & code agents

Business apps with AI agents (you host MCP over HTTP)

HTTP

Hosted & HTTP


🖥️ Claude Desktop

  1. Config file path:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

    • Windows: %APPDATA%\claude\claude_desktop_config.json

    • Linux: ~/.config/claude/claude_desktop_config.json

  2. Register the server; put connection settings in env (see Configuration; full profile JSON in configuration-samples.md). The example below includes HANA_INSTANCE_NUMBER / HANA_DATABASE_NAME for MDC—remove them if you use a single-container database.

{
  "mcpServers": {
    "HANA Database": {
      "command": "npx",
      "args": ["-y", "hana-mcp-server"],
      "env": {
        "HANA_HOST": "your-hana-host.com",
        "HANA_PORT": "443",
        "HANA_USER": "your-username",
        "HANA_PASSWORD": "your-password",
        "HANA_SCHEMA": "your-schema",
        "HANA_SSL": "true",
        "HANA_ENCRYPT": "true",
        "HANA_VALIDATE_CERT": "true",
        "HANA_CONNECTION_TYPE": "auto",
        "HANA_INSTANCE_NUMBER": "10",
        "HANA_DATABASE_NAME": "HQQ",
        "LOG_LEVEL": "info",
        "ENABLE_FILE_LOGGING": "true",
        "ENABLE_CONSOLE_LOGGING": "false"
      }
    }
  }
}

If the CLI is on PATH, you may use "command": "hana-mcp-server" and omit args.

  1. Restart Claude Desktop.

Optional: HANA MCP UInpx hana-mcp-ui for editing envs and deploying to Claude Desktop.


💻 IDEs & code agents

stdio only; same env keys as above. Canonical example — Claude Code (~/.claude.json or project .mcp.json). The env block below includes HANA_DATABASE_NAME for MDC tenant HANA; omit it for most single-container setups.

{
  "mcpServers": {
    "hana": {
      "type": "stdio",
      "timeout": 600,
      "command": "npx",
      "args": ["-y", "hana-mcp-server"],
      "env": {
        "HANA_HOST": "<host>",
        "HANA_PORT": "31013",
        "HANA_USER": "<user>",
        "HANA_PASSWORD": "<password>",
        "HANA_SCHEMA": "SAPABAP1",
        "HANA_DATABASE_NAME": "HQQ",
        "HANA_SSL": "false",
        "HANA_ENCRYPT": "false",
        "HANA_VALIDATE_CERT": "false",
        "LOG_LEVEL": "info",
        "ENABLE_FILE_LOGGING": "true",
        "ENABLE_CONSOLE_LOGGING": "false"
      }
    }
  }
}

Use the same command, args, and env in VS Code, Cline, Cursor, and Windsurf. After any change to env, restart the MCP server connection in the IDE.


🌐 Hosted & HTTP

Run the HTTP transport from a checkout of this repository (after npm install). The published npx hana-mcp-server path is stdio only.

npm run start:http

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": "http", depending on Cursor version). See docs/local-http-mcp.md and ./scripts/start-http-mcp.sh.

Topic

Detail

Endpoint

POST JSON-RPC to /mcp (default base http://127.0.0.1:3100)

Tuning

MCP_HTTP_HOST, MCP_HTTP_PORT

Health

GET /health200

CORS

MCP_HTTP_ALLOWED_ORIGINSENVIRONMENT.md §7

Optional Bearer JWT (OAuth2 / OIDC)

Variable

Role

MCP_HTTP_AUTH_ENABLED

true → require Authorization: Bearer <token> on POST /mcp

MCP_HTTP_JWT_ISSUER

Issuer / JWKS (omit on SAP BTP with bound XSUAA)

MCP_HTTP_JWT_AUDIENCE

Optional expected aud

MCP_HTTP_JWT_SCOPES_REQUIRED

Optional scope list

SAP BTP: bind XSUAA, MCP_HTTP_AUTH_ENABLED=true, assign role collections. Details: ENVIRONMENT.md §7.


🔒 Security

  • Secrets: HANA_PASSWORD, JWT material, and URLs with embedded credentials belong in env or a secret manager — not in git.

  • Supply chain: Prefer npx -y from the published package in CI and shared desktops instead of a mutable global install.

  • HTTP: Enable JWT validation for anything beyond localhost; put the service behind a reverse proxy for TLS termination and network policy.

Further notes: ENVIRONMENT.md §9.


🎯 Capabilities

34 tools across six areas, all verified on HANA Cloud.

Area

Tools

What you get

Connection & config

hana_show_config hana_test_connection hana_show_env_vars hana_get_session_info

Verify connectivity, inspect configuration, see current user / schema / database / version

Schema browsing

hana_list_schemas hana_list_tables hana_describe_table hana_explain_table hana_search_tables hana_search_columns

Paginated schema/table lists, column metadata, cross-schema search, optional business-meaning overlay

SQL execution

hana_execute_query hana_query_next_page

Parameterized SQL with optional row/column/cell caps, paging (maxRows/offset/includeTotal), and snapshot continuation

Structural analysis

hana_list_constraints hana_list_foreign_keys hana_list_indexes hana_describe_index hana_list_views hana_describe_view hana_list_synonyms hana_list_privileges hana_get_ddl

PK/UK/FK/check constraints, indexes, views with SQL definition, synonyms, effective privileges, CREATE statement DDL

Code objects

hana_list_procedures hana_describe_procedure hana_list_functions hana_describe_function hana_list_calculation_views hana_list_sequences

Stored procedures, scalar/table functions, SAP BW/S4 calculation views (_SYS_BIC), sequences

Data & performance

hana_get_table_stats hana_get_sample_data hana_get_column_stats hana_explain_plan hana_get_dependencies hana_get_partition_info hana_get_expensive_queries

Row counts, sample rows, distinct/null stats, query execution plan, object dependency graph, partition info, top expensive statements

DML guard

INSERT / UPDATE / DELETE / TRUNCATE blocked by default; opt-in individually via HANA_ALLOW_INSERT / HANA_ALLOW_UPDATE / HANA_ALLOW_DELETE

Resources

hana:///schemas hana:///schemas/{s}/tables/{t}

MCP resource URIs for schema and table enumeration; truncated flag on large payloads

Domain knowledge

via hana_explain_table

Optional JSON semantics overlay (table descriptions, column meanings, code-value maps) — configuration-samples.md


🛠️ Configuration

Variables apply to stdio (env in the client config) and HTTP (process environment). Restart after changes.

Source of truth for names, defaults, and clamp ranges: docs/ENVIRONMENT.md.
Copy-paste connection JSON (single-container / MDC): docs/configuration-samples.md#connection-profiles-env-json.

Required

Parameter

Description

Example

HANA_HOST

Hostname or IP

hana.company.com

HANA_USER

Database user

DBADMIN

HANA_PASSWORD

Database password

(secret)

Connection & TLS

Parameter

Default

Notes

HANA_PORT

443

MDC SQL ports often 3NN13 (e.g. 31013)

HANA_SCHEMA

Default when a tool omits schema_name

HANA_CONNECTION_TYPE

auto

auto, single_container, mdc_system, mdc_tenant

HANA_INSTANCE_NUMBER

MDC instance id (e.g. 10)

HANA_DATABASE_NAME

Tenant name for MDC (e.g. HQQ, HQP) — session database only

HANA_SSL / HANA_ENCRYPT / HANA_VALIDATE_CERT

true

TLS and cert validation flags for the driver

Logging

Parameter

Default

Notes

LOG_LEVEL

info

errordebug

ENABLE_FILE_LOGGING

false*

true enables file logs

ENABLE_CONSOLE_LOGGING

true

Often false for stdio to reduce stderr noise

*Code default; examples frequently set file logging to true.

Limits (queries, lists, resources)

Parameter

Default

Purpose

HANA_QUERY_LIMITS_ENABLED

false

Set to true to enable automatic row/column/cell caps. When false, user-provided maxRows, offset, and includeTotal still work.

HANA_QUERY_TIMEOUT_MS

0

Statement timeout (ms); 0 = disabled. Per-call timeout_ms overrides.

HANA_MAX_RESULT_ROWS

50

Max rows per hana_execute_query page (active when limits enabled)

HANA_MAX_RESULT_COLS

50

Max columns per row returned (active when limits enabled)

HANA_MAX_CELL_CHARS

200

Truncate long cell text (active when limits enabled)

HANA_QUERY_DEFAULT_OFFSET

0

Default offset (active when limits enabled)

HANA_LIST_DEFAULT_LIMIT

200

List tools: default and max page size

HANA_RESOURCE_LIST_MAX_ITEMS

500

Cap embedded names in hana:/// payloads

HANA_QUERY_SNAPSHOT_TTL_MS

300000

Snapshot id lifetime for query paging

HANA_CONNECTION_POOL_SIZE

3

HANA connection pool size (1–20)

DML permissions

INSERT, UPDATE, and DELETE are blocked by default. Set each to true to permit:

Parameter

Default

Purpose

HANA_ALLOW_INSERT

false

Permit INSERT via hana_execute_query

HANA_ALLOW_UPDATE

false

Permit UPDATE via hana_execute_query

HANA_ALLOW_DELETE

false

Permit DELETE and TRUNCATE via hana_execute_query

Business / domain JSON (HANA_SEMANTICS_*)

Parameter

Default

Purpose

HANA_SEMANTICS_PATH

File path to dictionary JSON (wins over URL)

HANA_SEMANTICS_URL

HTTPS URL to same format

HANA_SEMANTICS_TTL_MS

60000

Cache / reload behavior

Samples: configuration-samples.md.


🔧 Troubleshooting

Symptom

Check

spawn npx ENOENT / spawn hana-mcp-server ENOENT in client logs

Client cannot find npx / hana-mcp-server on PATH — see Client cannot find npx below

Connection refused

HANA_HOST, HANA_PORT, network path

Auth failed / no client

Password, user, HANA_DATABASE_NAME on tenants; use connection test tool for driver message

TLS errors

HANA_VALIDATE_CERT, trust store

Wrong or empty objects

MDC: tenant drives visibility; identical schema names can differ by tenant

SQL needs another database prefix

hana_execute_query does not rewrite SQL; use the three-part names your HANA expects (e.g. HSP.SAPABAP1.TABLE) while HANA_DATABASE_NAME stays the tenant you connect to (e.g. HQP)

Debug: LOG_LEVEL=debug, ENABLE_CONSOLE_LOGGING=true, restart.

Client cannot find npx (spawn ENOENT)

GUI clients launched from the Dock or Start Menu (Claude Desktop, Cursor, VS Code, …) inherit a minimal PATH and may not see Node tooling installed under /opt/homebrew/bin, ~/.nvm/..., mise, or volta. This affects every npx-based MCP, not just this server. The error appears in MCP client logs as:

Connection failed: spawn npx ENOENT

Pick one fix:

  1. Symlink npx / node into a GUI-visible path (macOS, Homebrew):

    ln -s "$(which npx)"  /usr/local/bin/npx
    ln -s "$(which node)" /usr/local/bin/node
  2. Use absolute paths in the MCP config — most portable, no PATH dependency. Resolve paths with which node and npm root -g:

    {
      "mcpServers": {
        "hana": {
          "type": "stdio",
          "command": "/opt/homebrew/bin/node",
          "args": ["/opt/homebrew/lib/node_modules/hana-mcp-server/hana-mcp-server.js"],
          "env": { "HANA_HOST": "...", "HANA_USER": "...", "HANA_PASSWORD": "..." }
        }
      }
    }

    Requires a one-time npm install -g hana-mcp-server.

  3. Inject PATH into the MCP env block — keeps the npx form:

    "env": {
      "PATH": "/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin",
      "HANA_HOST": "...",
      "HANA_USER": "...",
      "HANA_PASSWORD": "..."
    }

Restart the MCP client after the change. If npx then fails with EPERM on ~/.npm/_cacache, the npm cache has root-owned files from a previous sudo npm — fix with sudo chown -R "$(whoami)" ~/.npm or set "NPM_CONFIG_CACHE": "/tmp/hana-mcp-npm-cache" in the same env block.


🖥️ HANA MCP UI

npx hana-mcp-ui

HANA MCP UI


🏗️ Architecture

HANA MCP Server Architecture

hana-mcp-server/
├── src/
│   ├── server/           # MCP lifecycle, resources, HTTP transport
│   ├── tools/            # 34 tools: schema, SQL, discovery, config
│   ├── database/         # HANA client, connection pool, executor, query runner
│   ├── semantics/        # Optional semantics / domain JSON loader
│   ├── utils/            # Logger, config, validators, formatters
│   ├── query-snapshot-store.js
│   └── constants/        # MCP constants, tool definitions
├── tests/
├── docs/                 # README index, ENVIRONMENT.md, configuration-samples.md, diagrams
└── hana-mcp-server.js    # stdio entry point

📦 Package

Runtime

Node.js 18+

Platforms

macOS, Linux, Windows

Dependencies

@sap/hana-client, axios, jose


🤝 Support

📄 License

MIT — see LICENSE.

Available Tools

9 tools
hana_describe_indexC

Describe the structure of a specific index

ParametersJSON Schema
NameRequiredDescriptionDefault
schema_nameNoName of the schema containing the table (optional)
table_nameYesName of the table containing the index
index_nameYesName of the index to describe

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool describes index structure but doesn't reveal any behavioral traits such as whether it's a read-only operation, potential performance impacts, error handling, or output format. This leaves significant gaps in understanding how the tool behaves beyond its basic purpose.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise and front-loaded with a single, clear sentence that directly states the tool's purpose. There is no wasted language or unnecessary elaboration, making it efficient and easy to parse for an AI agent.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (describing database index structure) and lack of annotations and output schema, the description is insufficiently complete. It doesn't cover behavioral aspects, usage context, or what information is returned, leaving the agent with inadequate guidance for effective tool invocation in a database management scenario.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, clearly documenting all three parameters (schema_name, table_name, index_name) with their types and optionality. The description adds no additional semantic context beyond what the schema provides, such as explaining relationships between parameters or usage examples, so it meets the baseline for high schema coverage without compensating value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with a specific verb ('describe') and resource ('structure of a specific index'), making it easy to understand what it does. However, it doesn't explicitly differentiate from sibling tools like 'hana_describe_table' or 'hana_list_indexes', which would require mentioning it focuses on detailed structural metadata rather than listing or describing tables.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention sibling tools like 'hana_list_indexes' for listing indexes or 'hana_describe_table' for table details, nor does it specify prerequisites or contexts for usage, leaving the agent to infer appropriate scenarios.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

hana_describe_tableC

Describe the structure of a specific table

ParametersJSON Schema
NameRequiredDescriptionDefault
schema_nameNoName of the schema containing the table (optional)
table_nameYesName of the table to describe

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states what the tool does but lacks critical details: it doesn't specify if this is a read-only operation, what permissions are required, what the output format looks like (e.g., column names, types, constraints), or any error conditions (e.g., invalid table names). For a tool with no annotation coverage, this is a significant gap in transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the core purpose ('Describe the structure of a specific table') with zero wasted words. It avoids redundancy and is appropriately sized for a simple tool, making it easy for an agent to parse quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the lack of annotations and output schema, the description is incomplete for effective tool use. It doesn't explain what 'describe' entails (e.g., returns metadata like columns and data types), potential side effects, or error handling. For a tool with no structured output information, the description should compensate by detailing return values or usage constraints, which it fails to do.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with clear documentation for both parameters (schema_name and table_name). The description adds minimal value beyond the schema, as it only implies that table_name is the key input without providing additional context like format examples or relationships between parameters. This meets the baseline for high schema coverage but doesn't enhance understanding.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('describe') and resource ('structure of a specific table'), making the purpose immediately understandable. It distinguishes this from siblings like hana_list_tables (which lists tables) and hana_describe_index (which describes indexes). However, it doesn't explicitly mention the database system (HANA) or differentiate from hana_execute_query, which could also provide structural information through queries.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing a valid table name), compare it to hana_list_tables for discovery or hana_execute_query for custom queries, or specify use cases like schema exploration or query planning. The agent must infer usage from the tool name and context alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

hana_execute_queryC

Execute a custom SQL query against the HANA database

ParametersJSON Schema
NameRequiredDescriptionDefault
queryYesThe SQL query to execute
parametersNoOptional parameters for the query (for prepared statements)

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool executes a custom SQL query but lacks critical details: it doesn't specify if this is read-only or can perform mutations, potential risks like data modification or deletion, authentication requirements, or response handling (e.g., result format, error messages). This is inadequate for a tool that could have significant side effects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that directly states the tool's function without unnecessary words. It is front-loaded and appropriately sized, making it easy to parse quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of executing custom SQL queries (which could involve reads, writes, or schema changes), no annotations, and no output schema, the description is insufficient. It doesn't address behavioral traits, return values, or error conditions, leaving significant gaps for an AI agent to understand how to use the tool safely and effectively.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, clearly documenting both parameters ('query' and 'parameters'). The description adds no additional meaning beyond this, such as query syntax examples or parameter usage details. According to the rules, with high schema coverage, the baseline is 3 even without param info in the description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Execute') and target resource ('custom SQL query against the HANA database'), making the purpose unambiguous. However, it doesn't explicitly differentiate from sibling tools like hana_describe_table or hana_list_tables, which might also involve database queries but for specific purposes.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites, such as needing a valid database connection, or contrast it with sibling tools like hana_list_tables for metadata queries versus this for custom SQL execution, leaving the agent to infer usage context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

hana_list_indexesC

List all indexes for a specific table

ParametersJSON Schema
NameRequiredDescriptionDefault
schema_nameNoName of the schema containing the table (optional)
table_nameYesName of the table to list indexes for

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries full burden for behavioral disclosure. It states it 'lists' indexes, implying a read-only operation, but doesn't clarify if this requires specific permissions, what format the output takes (e.g., list of names vs. detailed properties), or if there are limitations like pagination or performance considerations for large tables. The description adds minimal context beyond the basic action.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that directly states the tool's purpose without unnecessary words. It's front-loaded with the core action ('List all indexes'), making it easy to parse. Every word earns its place, with no redundancy or fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the lack of annotations and output schema, the description is incomplete for a tool that likely returns structured data about indexes. It doesn't hint at what information is included in the listing (e.g., index names, types, columns) or any behavioral aspects like error handling. For a database tool with potential complexity, more context is needed to guide effective use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with both parameters ('schema_name' and 'table_name') clearly documented in the schema. The description mentions 'for a specific table', aligning with the 'table_name' parameter, but adds no additional meaning about parameter usage, defaults, or constraints beyond what the schema provides. This meets the baseline for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('List') and resource ('all indexes for a specific table'), making the purpose immediately understandable. It distinguishes from siblings like 'hana_describe_index' (which likely provides detailed metadata) and 'hana_list_tables' (which lists tables rather than indexes). However, it doesn't explicitly mention the database system (HANA) or differentiate from 'hana_describe_table', which might also include index information.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't specify if this is for quick overviews vs. detailed analysis, or mention prerequisites like connection requirements. Siblings like 'hana_describe_index' and 'hana_describe_table' could potentially overlap in functionality, but no comparison is offered.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

hana_list_schemasB

List all schemas in the HANA database

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

B3.2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the action ('List all schemas') but doesn't describe the return format (e.g., list of schema names, JSON structure), pagination, permissions needed, or error conditions. For a tool with zero annotation coverage, this is a significant gap in transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence with zero waste. It's front-loaded with the core action and resource, making it easy to parse. Every word earns its place, and there's no unnecessary elaboration.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's low complexity (0 parameters, no output schema), the description is minimally complete. It states what the tool does but lacks behavioral details (e.g., output format) that would be helpful for an agent. With no annotations or output schema, the description should ideally provide more context about the return value, but it's adequate for a simple list operation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has 0 parameters, and schema description coverage is 100% (since there are no parameters). The description doesn't need to add parameter semantics, so it meets the baseline of 4 for zero-parameter tools. It correctly implies no inputs are required.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('List') and resource ('all schemas in the HANA database'), making the purpose immediately understandable. It distinguishes from siblings like hana_list_tables and hana_list_indexes by specifying schemas rather than tables or indexes. However, it doesn't explicitly differentiate from other schema-related tools (none exist in siblings), so it's not a perfect 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., connection requirements), when not to use it, or how it relates to siblings like hana_describe_table or hana_execute_query. The agent must infer usage from the name alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

hana_list_tablesC

List all tables in a specific schema

ParametersJSON Schema
NameRequiredDescriptionDefault
schema_nameNoName of the schema to list tables from (optional)

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. It states the tool lists tables but doesn't describe what the output looks like (e.g., format, pagination), whether it requires specific permissions, or any limitations (e.g., performance with large schemas). This leaves significant gaps for a tool that presumably returns data.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the core purpose ('List all tables') without unnecessary words. Every part of the sentence contributes directly to understanding the tool's function, making it optimally concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the lack of annotations and output schema, the description is incomplete. It doesn't address behavioral aspects like output format, error handling, or usage context relative to siblings. For a simple list tool, this might be minimally adequate, but the absence of output details and sibling differentiation is a notable gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 100%, with the single parameter 'schema_name' documented as optional in the schema. The description adds minimal value beyond this, only implying the parameter's purpose without explaining edge cases (e.g., what happens if omitted, default behavior). Baseline 3 is appropriate given the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('List all tables') and resource ('in a specific schema'), making the purpose immediately understandable. However, it doesn't differentiate from sibling tools like 'hana_list_schemas' or 'hana_describe_table' beyond the obvious scope difference, preventing a perfect score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like 'hana_list_schemas' (for listing schemas instead of tables) or 'hana_describe_table' (for detailed table info). It also doesn't mention prerequisites or exclusions, leaving usage context entirely implicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

hana_show_configB

Show the HANA database configuration

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

B3.1/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool shows configuration but doesn't describe what 'configuration' includes (e.g., settings, parameters, status), whether it's read-only or has side effects, or how results are formatted. For a tool with zero annotation coverage, this leaves significant gaps in understanding its behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence with zero waste. It's front-loaded with the core purpose and uses clear language. Every word earns its place, making it easy to parse quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the lack of annotations and output schema, the description is incomplete for a tool that likely returns configuration details. It doesn't specify what 'configuration' entails, potential output formats, or any behavioral traits. For a tool with no structured data to rely on, this minimal description fails to provide sufficient context for effective use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has 0 parameters, and schema description coverage is 100%, so there are no parameters to document. The description doesn't need to compensate for any gaps, and it appropriately doesn't mention parameters. A baseline of 4 is applied since no parameter information is required.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose as 'Show the HANA database configuration' with a specific verb ('Show') and resource ('HANA database configuration'). It distinguishes itself from siblings like hana_list_tables or hana_execute_query by focusing on configuration rather than data or structure. However, it doesn't explicitly differentiate from hana_show_env_vars, which might share conceptual similarity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites, context (e.g., for troubleshooting or setup), or comparisons to siblings like hana_show_env_vars or hana_describe_table. Without this, users must infer usage from the tool name alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

hana_show_env_varsB

Show all HANA-related environment variables (for debugging)

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

B3.2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. It states the tool shows environment variables for debugging, implying read-only behavior, but doesn't explicitly confirm this is a safe operation, doesn't mention authentication requirements, rate limits, or what format the output takes. The description provides basic intent but lacks important behavioral details.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is perfectly concise at just 8 words, with the core purpose stated first ('Show all HANA-related environment variables') and the additional context ('for debugging') efficiently appended parenthetically. Every word earns its place with zero redundancy or unnecessary elaboration.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a zero-parameter, read-oriented tool with no output schema, the description provides adequate but minimal context. It explains what the tool does and suggests a debugging use case, but doesn't describe the output format, scope limitations, or relationship to other debugging tools. Given the simplicity of the tool, the description is complete enough but could benefit from more operational detail.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has 0 parameters with 100% schema description coverage, so the schema already fully documents the parameter situation. The description appropriately doesn't discuss parameters since none exist, maintaining focus on the tool's purpose. This meets the baseline expectation for zero-parameter tools.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('Show') and resource ('all HANA-related environment variables'), making the purpose immediately understandable. It distinguishes from siblings like hana_show_config by specifying 'environment variables' rather than configuration files. The parenthetical '(for debugging)' adds helpful context but doesn't fully differentiate from all siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides minimal guidance with '(for debugging)' suggesting a diagnostic context, but offers no explicit when-to-use rules, no exclusions, and no comparison to alternatives like hana_show_config. There's no mention of prerequisites, timing considerations, or when this tool would be preferred over other debugging methods.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

hana_test_connectionB

Test connection to HANA database

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

B3.2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the action ('Test connection') but doesn't explain what this entails—e.g., whether it performs authentication checks, network pings, returns success/failure status, or has side effects like logging. For a tool with zero annotation coverage, this is a significant gap in transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, clear sentence with no wasted words. It's front-loaded with the core purpose and efficiently communicates the essential action without unnecessary elaboration, making it highly concise and well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (0 parameters, no output schema, no annotations), the description is minimally adequate. It states what the tool does but lacks details on behavior, output, or usage context. For a connection-testing tool, more information on what 'test' means and what results to expect would improve completeness, but it meets the basic threshold.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has 0 parameters, and the schema description coverage is 100%, so there are no parameters to document. The description doesn't need to add parameter semantics, and it appropriately doesn't mention any. A baseline of 4 is applied for zero-parameter tools, as there's nothing to compensate for.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with a specific verb ('Test') and resource ('connection to HANA database'), making it immediately understandable. However, it doesn't explicitly differentiate from sibling tools like 'hana_show_config' or 'hana_show_env_vars' which might also provide connection-related information, so it doesn't reach the highest score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites, timing (e.g., before executing queries), or how it differs from siblings like 'hana_show_config' that might show connection details. This lack of context leaves the agent with minimal usage direction.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

TDQS

A3.5/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose targeting specific database operations like describing structures, listing resources, executing queries, or showing configuration. There is no overlap in functionality that would cause confusion between tools.

Naming Consistency5/5

All tools follow a consistent 'hana_verb_noun' pattern with snake_case throughout, using clear verbs like describe, list, execute, show, and test. This predictable naming makes the tool set easy to navigate and understand.

Tool Count5/5

With 9 tools, this server is well-scoped for database interaction, covering essential operations like connection testing, schema exploration, query execution, and configuration viewing. Each tool earns its place without feeling excessive or insufficient.

Completeness4/5

The tool set provides strong coverage for database exploration and querying, including CRUD-like operations via custom SQL. Minor gaps exist, such as no explicit tools for creating or modifying database objects, but agents can work around this using the execute_query tool for most needs.

Maintenance

ActivitySlowing
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • F
    license
    A
    quality
    D
    maintenance
    Enables AI assistants to query, analyze, and manage SQL Server databases through natural language via the Model Context Protocol.
    6
    1
  • F
    license
    Not graded
    quality
    D
    maintenance
    Integrates Harness with GenAI applications via the Model Context Protocol, enabling continuous delivery and cloud cost management through natural language.
  • A
    license
    Not graded
    quality
    B
    maintenance
    A Model Context Protocol (MCP) server that enables AI assistants like Claude to work directly inside SAP BW/4HANA systems — reading, creating and modifying BW modeling objects via the internal REST API used by Eclipse BWMT.
    63
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/HatriGt/hana-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server