Sap Abap SQL MCP server
run.daslab/sap-abap-sql·v0.3.0·1 starsChecks and fixes ABAP Open SQL for SAP's ADT data-preview console. Connects to nothing.
1 stars36 downloads/wk
Reviews
Write oneNobody has reviewed Sap Abap SQL yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Sap Abap SQL tools (4)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
abap_sql_explainThe console rejected a statement and its error does not say why. Reports every dialect
abap_sql_prepareCall this before sending any SELECT to an SAP ADT data-preview console.
abap_sql_queryPrepare a SELECT and run it against the SAP system this server is configured for, returning rows.
abap_sql_rulesThe five ways this dialect differs from standard SQL, each with the correct form.
Public scan report
scanner v0.1.9 · 2026-09-23 · same rubric, same numbers if you re-run it
- Code scan4 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 47 days ago12/15
- Maintainer identitynamespace and repository owner differ4/10
How Sap Abap SQL compares
Against every graded Databases MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 82/100
- higher than 55% of 802 Databases servers
- Tools
- 4
- the typical Databases server has 8
- Tools that change things
- 0%
- typical: 10%. Fewer write tools means less an agent can break
- GitHub stars
- 1
- more than 45% of 602 Databases servers
- Downloads a week
- 36
- more than 23% of 328 Databases servers with a package
What its tools let an agent do: 4 read
Install Sap Abap SQL in Claude Code, Cursor or VS Code
Runs npx -y sap-abap-sql-mcp on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add sap-abap-sql -- npx -y sap-abap-sql-mcp
What the publisher says
From the Sap Abap SQL repository's README, as published. We do not edit it. Read it on GitHub
SAP ABAP SQL (MCP server)
Checks and fixes ABAP Open SQL before it reaches SAP's ADT data-preview console.
If you have pointed an LLM at an on-premise SAP system, you have seen these:
Three errors, three apparent rules, one actual cause: the parser wants a space on the inside of every parenthesis. It even tells you in the third one. All three pass once spaced.
Nothing in those messages says "add spaces", so a model guesses. In one recorded session the same malformed statement went out ten times in a row, varying only a literal. Across two sessions, 57 of 211 tool calls failed, most of them on dialect.
This server knows the rules, so your agent does not have to rediscover them.
Which dialect this is
The ADT data-preview console (/sap/bc/adt/datapreview/freestyle), which is where agents and ADT clients read tables over HTTP. Open SQL written inside an ABAP program is a different dialect: it has INTO TABLE, UP TO n ROWS, @host variables, and no character ceiling. Do not point this at program source and expect it to be right.
On-premise systems (ECC, S/4HANA on-prem, private cloud). If you are on S/4HANA Cloud with proper OData APIs, you do not need any of this.
Does it touch my system?
Only if you tell it to, and only from your own machine.
Three of the four tools are pure functions over a statement you pass in: no connection, no credential, no network call. They are the default, and they work with no configuration at all.
The fourth, abapsqlquery, runs a statement against a system you configure and returns rows. Credentials live in this server's environment on your machine. Nothing is proxied through anyone else and nothing is stored.
{
"mcpServers": {
"sap-abap-sql": {
"command": "npx",
"args": ["-y", "sap-abap-sql-mcp"],
"env": {
"SAP_URL": "https://your-system:44300",
"SAP_USER": "...",
"SAP_PASSWORD": "...",
"SAP_HEADERS": "X-Your-Proxy-Token: ..."
}
}
}
}SAP_HEADERS is optional, one Name: value per line. On-premise systems are rarely reached directly: they sit behind a tunnel or proxy, and if that gates on a header of its own then every request is rejected before SAP ever sees it. The symptom is a 403 that reads exactly like "ADT is switched off", and is not.
Read-only by construction: the data-preview console cannot write, so there is no write path to misuse.
Install
{
"mcpServers": {
"sap-abap-sql": {
"command": "npx",
"args": ["-y", "sap-abap-sql-mcp"]
}
}
}Tools
All read-only, no side effects.
abap_sql_prepare SELECT COUNT(DISTINCT kunnr) FROM vbak
→ { "ok": true, "statement": "SELECT COUNT( DISTINCT kunnr ) FROM vbak", "length": 40, "limit": 255 }
abap_sql_prepare SELECT a FROM t LIMIT 10
→ { "ok": false, "rule": "no-limit",
"fix": "ABAP Open SQL has no LIMIT. Cap the result with the reader's row limit instead." }Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Sap Abap SQL: common questions
- Is Sap Abap SQL MCP server safe?
- Mostly: it is graded B (82/100). Read the Sap Abap SQL safety report
- How do I install Sap Abap SQL?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Sap Abap SQL need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Sap Abap SQL maintained?
- The last commit was 88 days ago (2026-08-08). The latest release is v0.3.0.
- What can I use instead of Sap Abap SQL?
- Servers from other publishers that do the same job: AnythingMCP MCP server, DBHub MCP server and Motherduck MCP server.
- How does Sap Abap SQL compare with other Databases MCP servers?
- safety score 82/100 (higher than 55% of 802 Databases servers); tools 4 (the typical Databases server has 8); tools that change things 0% (typical: 10%. Fewer write tools means less an agent can break). Full comparison.
Alternatives to Sap Abap SQL
Same job from other publishers: the closest match first, then the best rated.
AnythingMCPMCP gateway and company brain: 694 connectors (SAP, ERP, SQL), file search, memory and skills.not reviewedEstablishedB- DBHubToken-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLitenot reviewedWidely usedA
- MotherduckSQL analytics and data engineering for AI Assistants and IDEsnot reviewedEstablishedA
- KeboolaConnect your AI assistants to Keboola and expose your data, transformations, SQL queries, ...not reviewedEstablishedA
- GeoLensRead-only access to a self-hosted GeoLens spatial catalog: datasets, features, maps, sandboxed SQL.not reviewedEstablishedB