sap-abap-sql — Claude Code MCP server for ABAP SQL
Checks and prepares ABAP Open SQL for SAP ADT’s data-preview console. Useful when an agent needs to query an on-premise SAP system.
claude mcp add sap-abap-sql -- npx -y sap-abap-sql-mcpWhat sap-abap-sql does
This server checks SQL written for the SAP ADT data-preview console. abap_sql_prepare returns a corrected statement or explains what needs changing; abap_sql_explain interprets console errors, and abap_sql_rules lists dialect constraints. You can also run prepared queries with abap_sql_query after configuring a SAP connection.
Three tools work on the supplied statement without connecting to a system or requiring configuration. Running queries requires the system address and credentials in the server’s environment. This targets the ADT console, not SQL embedded in ABAP programs. The console allows up to 255 characters per statement and 5,000 result rows; results at the row cap are marked as truncated. That limit shapes what a single query can return.
What it helps with
- correct spacing around parentheses in aggregates and conditions
- identify why the ADT console rejected a statement
- check a query against the console’s dialect rules
- run a prepared query against a configured SAP system
Example prompts for the agent
- Check
SELECT COUNT(DISTINCT kunnr) FROM vbakfor the SAP ADT data-preview console. - Explain why the ADT console rejected this query:
SELECT a FROM t WHERE (x = '1' OR y = '2'). - Run a prepared query against the configured SAP system and return its rows.
How to install sap-abap-sql
Platform CLI
claude mcp add sap-abap-sql -- npx -y sap-abap-sql-mcpPlatform CLI
codex mcp add sap-abap-sql -- npx -y sap-abap-sql-mcpConfig file
{
"mcpServers": {
"sap-abap-sql": {
"command": "npx",
"args": [
"-y",
"sap-abap-sql-mcp"
]
}
}
}Config file
{
"servers": {
"sap-abap-sql": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"sap-abap-sql-mcp"
]
}
}
}Platform CLI
gemini mcp add sap-abap-sql npx -y sap-abap-sql-mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about sap-abap-sql
How do I install sap-abap-sql in Claude Code?
Run claude mcp add sap-abap-sql -- npx -y sap-abap-sql-mcp.
What does sap-abap-sql do?
It checks and prepares statements for the SAP ADT data-preview SQL dialect. It can also explain rejected statements or run queries against a configured system.
What query limits does the ADT console enforce?
Statements are limited to 255 characters, and results stop at 5,000 rows. Results at that cap are marked as truncated.