
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.
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:
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 READMEhana_explain_tableProvides explanation of table structure with optional business semantics overlay
hana_execute_queryExecutes SQL queries with guardrails and paged results
hana_query_next_pageRetrieves the next page of results for a paged query
hana_get_tablesLists tables in the database with paging support
hana_get_columnsRetrieves column metadata for a specific table
hana_check_connectionTests connectivity to the SAP HANA database
hana_list_resourcesLists available resources via hana:/// URIs
hana_read_resourceReads content from a resource using hana:/// URI
hana_get_indexesLists indexes on a specific table
hana_get_proceduresLists stored procedures in the database
hana_get_viewsLists database views
hana_pingBasic connectivity test to the HANA database
Comparable tools
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-serverMethod 3: Clone and run
git clone <repository-url>
cd hana-mcp-server
npm install
node hana-mcp-server.jsFAQ
- 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
Last updated · Auto-generated from public README + GitHub signals.