MCP Catalogs
Homehana-mcp-server screenshot

hana-mcp-server

by HatriGt·54·Score 47

SAP HANA MCP server enables AI clients to query HANA databases with guardrails and merge business metadata.

databasedeveloper-toolsai-llm
25
Forks
4
Open issues
2 mo ago
Last commit
2d ago
Indexed

Overview

The SAP HANA MCP Server implements the Model Context Protocol for SAP HANA and SAP HANA Cloud. It allows AI clients to discover database schema, execute SQL queries with guardrails, and optionally merge business/domain metadata to ensure consistent interpretation of codes and tables. The server supports both stdio and HTTP transports, making it compatible with Claude Desktop, Claude Code, VS Code, Cursor, and other MCP clients. It provides comprehensive configuration options including connection parameters, TLS settings, query limits, and optional business semantics overlays.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:Enable AI assistants to query SAP HANA databases with proper authentication and SQL guardrails
you:Connect AI development tools like Claude Code and VS Code to enterprise HANA data
you:Provide HTTP API for business applications to integrate with HANA via MCP protocol
you:How do I connect to SAP HANA Cloud?
you:Can I use this with multiple HANA tenants?

When to choose this

Choose this server if you need to integrate AI assistants with SAP HANA databases, especially when you require SQL guardrails and business metadata enrichment.

When NOT to choose this

Avoid this if you're not using SAP HANA databases or need write capabilities beyond SQL query execution.

Tools this server exposes

12 tools extracted from the README
  • hana_explain_table

    Provides explanation of table structure with optional business semantics overlay

  • hana_execute_query

    Executes SQL queries with guardrails and paged results

  • hana_query_next_page

    Retrieves the next page of results for a paged query

  • hana_get_tables

    Lists tables in the database with paging support

  • hana_get_columns

    Retrieves column metadata for a specific table

  • hana_check_connection

    Tests connectivity to the SAP HANA database

  • hana_list_resources

    Lists available resources via hana:/// URIs

  • hana_read_resource

    Reads content from a resource using hana:/// URI

  • hana_get_indexes

    Lists indexes on a specific table

  • hana_get_procedures

    Lists stored procedures in the database

  • hana_get_views

    Lists database views

  • hana_ping

    Basic connectivity test to the HANA database

Comparable tools

sap-mcp-serversql-mcp-serverhana-mcp-ui

Installation

Installation

Method 1: Using npx (recommended)

Add to your Claude Desktop config:

{
  "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",
        "LOG_LEVEL": "info"
      }
    }
  }
}

Method 2: Global install

npm install -g hana-mcp-server

Method 3: Clone and run

git clone <repository-url>
cd hana-mcp-server
npm install
node hana-mcp-server.js

FAQ

How do I connect to SAP HANA Cloud?
Use the same configuration as on-prem HANA, but set HANA_SSL=true, HANA_ENCRYPT=true, and provide the appropriate host and port for your HANA Cloud instance.
Can I use this with multiple HANA tenants?
Yes, for MDC (Multitenant Database Container), specify HANA_INSTANCE_NUMBER and HANA_DATABASE_NAME in your environment variables to connect to specific tenants.

Compare hana-mcp-server with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.