SAP S/4HANA (HANA SQL)
Read SAP S/4HANA straight from its HANA database with SQL, with SAP's own data dictionary turned into tools: table and field labels, code values, join paths, released CDS views and a guide to the finance, sales and inventory data model. Read-only.
7 天免费 · 无需信用卡 · EU 托管
问 SAP 任何事
通过 AnythingMCP 对 SAP S/4HANA (HANA SQL) 试一个真实提示 — Claude 调用工具并返回答案。在你的消息上按 Enter 即可在 Cloud 安装。
在 Cloud 上安装 SAPClaude 是 AI,可能会出错。请核对回答。
2 分钟设置
- 1在 cloud.anythingmcp.com 开始免费试用。
- 2在连接器商店点击 SAP S/4HANA (HANA SQL)。提示时粘贴凭据。
- 3生成 MCP API 密钥,将 AI 客户端指向生成的 MCP URL。
配置 SAP S/4HANA (HANA SQL)
直接来自连接器定义:在哪里获取凭据、需要哪些权限,以及该适配器调用的是哪个 API。 由连接器作者以英文提供。
What this connects to: the HANA database under an SAP S/4HANA system (on-premise, Private Cloud / RISE, or HANA Enterprise Cloud), read directly with SQL. SAP's table and column names are abbreviations (BUKRS, HSL, VBELN); the tools below read SAP's own dictionary so the model sees what each table and field means before it queries.
Start with sap_guide: it costs nothing and explains the SAP data model (client, dates, currencies, finance, sales, inventory) and the order in which to use the other tools.
Setup (SAP Basis, one-off)
- Create a technical database user in the tenant that holds the ABAP schema (usually
SAPHANADBorSAPABAP1), with a password that does not expire:CREATE USER AMCP_READER PASSWORD "<strong password>" NO FORCE_FIRST_PASSWORD_CHANGE; ALTER USER AMCP_READER DISABLE PASSWORD LIFETIME; - Grant
SELECTon what the agent may read. The dictionary tools needDD02L DD02T DD03L DD03T DD03ND DD04T DD07T DD08L DD05S DDHEADANNO DDFIELDANNO ARS_W_API_STATEandsap_org_structureneedsT001 T001K T001W TKA01 TVKO TVKOT T024E. Add the business tables and CDS views for your use cases, orGRANT SELECT ON SCHEMA SAPHANADBfor broad analytics. Never grant HR tables you do not want read. - Recommended: cap the user's statements on the server side with a workload class (
STATEMENT TIMEOUT,STATEMENT MEMORY LIMIT) mapped to the user. - Fill in the variables:
SAP_HANA_HOST;SAP_HANA_PORT, the tenant's SQL port (3<instance>15 for the first tenant, 3<instance>41 and up for others; the system database port 3<instance>13 also works together with the tenant name);SAP_HANA_TENANT, the tenant database name;SAP_HANA_SCHEMA(e.g.SAPHANADB);SAP_CLIENT, the three-digit SAP client (e.g.100);SAP_LANGUAGE, the one-letter SAP language for texts (EEnglish,DGerman);SAP_HANA_TLS,verify,no-verify(self-signed certificate) oroff;SAP_HANA_USERandSAP_HANA_PASSWORD.
Network: the HANA SQL port is normally reachable only inside the company network. Self-host AnythingMCP there (or connect it through a VPN) and add the host to SSRF_ALLOWED_HOSTS.
Read-only by design: the session runs SET TRANSACTION READ ONLY, writes and locking reads are refused, results are capped at 1000 rows and each statement times out after 60 seconds. SQL bypasses SAP's application authorizations, so the database grants are the real boundary. HR and user/password tables are on the connector's denied-tables list by default (edit it in the connector settings).
Licensing: direct SQL access to the ABAP schema by a third-party application is governed by your SAP HANA licence. A runtime licence bundled with S/4HANA usually does not cover it; a full-use licence does. Check your contract before connecting production.
Driver: the bundled hdb driver needs nothing installed. To use SAP's native @sap/hana-client instead, see the SAP HANA page of the AnythingMCP docs.