Sap Abap SQL
概要
作者による説明(英語の原文)
Checks and fixes ABAP Open SQL for SAP's ADT data-preview console. Connects to nothing.
できること
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
- 接続方法: パソコンで動く
- トランスポート: stdio
- カテゴリ: データベース・データセット
インストール
使っているAIアプリを選んで、設定をコピーしてください。
チェック 3/3 合格 · あなたのパソコンで動きます
まず:どの AI を使っていますか?
使っているアプリを選ぶと、下に手順が表示されます。
Claude につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
パソコン版 Claude アプリの設定ファイルを開く
SettingsDeveloperEdit Config
この設定を貼り付けて保存
{ "mcpServers": { "sap-abap-sql": { "command": "npx", "args": [ "-y", "sap-abap-sql-mcp" ] } } }Claude を終了してもう一度開く
試してみる
Sap Abap SQL を使って、私に何ができるか教えて、1 つやってみせて✓ Claude が Sap Abap SQL を使っていると言うか、回答に Sap Abap SQL のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
ChatGPT はまだ Sap Abap SQL につなげません
Sap Abap SQL はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません
代わりにできること
A · Sap Abap SQL につなげるアプリを使う
- 先にパソコンへ Node.js を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
- 先にパソコンへ Node.js を入れてください(1 回だけ)
- 先にパソコンへ Node.js を入れてください(1 回だけ)
- 先にパソコンへ Node.js を入れてください(1 回だけ)
B · データベース・データセット の中で ChatGPT につなげる別のサーバー
同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました
- Supabase✓ ChatGPT
- Appwrite MCP✓ ChatGPT
- Pg Aiguide✓ ChatGPT
Claude Code につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ)
ターミナルを開く
Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く
このコマンドを貼り付けて Enter
claude mcp add sap-abap-sql -- npx -y sap-abap-sql-mcpClaude Code で /mcp と入力
Sap Abap SQL が一覧にあり、接続済みと表示されれば OK です
試してみる
Sap Abap SQL を使って、私に何ができるか教えて、1 つやってみせて✓ Claude Code が Sap Abap SQL を使っていると言うか、回答に Sap Abap SQL のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Cursor につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ)
Cursor の AI チャットを Agent モードで開く
試してみる
Sap Abap SQL を使って、私に何ができるか教えて、1 つやってみせて✓ Cursor が Sap Abap SQL を使っていると言うか、回答に Sap Abap SQL のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
VS Code につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ)
VS Code の AI チャットを Agent モードで開く
試してみる
Sap Abap SQL を使って、私に何ができるか教えて、1 つやってみせて✓ VS Code が Sap Abap SQL を使っていると言うか、回答に Sap Abap SQL のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
開発者向け:ターミナルのコマンドと JSON 設定
パソコンにインストール
Claude Code
claude mcp add sap-abap-sql -- npx -y sap-abap-sql-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"sap-abap-sql": {
"command": "npx",
"args": [
"-y",
"sap-abap-sql-mcp"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"sap-abap-sql": {
"command": "npx",
"args": [
"-y",
"sap-abap-sql-mcp"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"sap-abap-sql": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"sap-abap-sql-mcp"
]
}
}
}この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
ひと目でわかる
使えるアプリ
このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。
パソコン上で動かせるアプリ
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
できること
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
基本チェックi
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月12日にチェック
- ✓ 合格
作者とリポジトリが一致
レジストリ名はドメイン daslab.run で確認済みです(レジストリがドメインの所有を確認しています)
- ✓ 合格
今もメンテナンスされている
コードの最終更新:3 か月前
- ✓ 合格
ライセンスがある
MITを使用
- – 対象外
エンドポイントが応答する
これはパソコンで動くため、インターネット上のエンドポイントはありません
- – 対象外
OAuthでサインイン
パソコンで動き、代わりにローカルの設定を使います
- … 未チェック
ツールの説明に隠れた指示がない
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
話し合い
質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。
ユーザーレビュー
まだレビューはありません
データベース・データセットのほかのサーバーとの比較i
- このカテゴリのほかの1170件のうち79%よりスターが多い
- このカテゴリのほかの1170件のうち21%より最近レジストリに公開
- 基本チェックの結果が、このカテゴリのほかの1170件のうち100%と同じかそれ以上
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
よくある質問
Sap Abap SQLは安全ですか?
当てはまる基本チェック3項目のうち3項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
どんなキーやコードが必要ですか?
レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。
パソコンで動きますか、それともクラウドですか?
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
今もメンテナンスされていますか?
GitHubリポジトリの最終更新は3 か月前、最新バージョン(0.3.0)がレジストリに届いたのは3 か月前です。
どのアプリで使えますか?
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。
代わりに使えるものは?
同じカテゴリには:Dbx, MCP Toolbox for Databases, MCP Toolbox for Databases
代わりの候補
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
MCP Toolbox for Databases
MCP Toolbox for Databases enables your agent to connect to your database.
MCP Toolbox for Databases
MCP Toolbox for Databases enables your agent to connect to your database.
作者のREADME
READMEを開く
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
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:
| You sent | SAP said |
|---|---|
SELECT SUM(netwr) FROM vbap | 400 Unknown column name "SUM(NETWR)" |
SELECT COUNT(DISTINCT kunnr) FROM vbak | 400 ")" is invalid here (due to grammar) |
SELECT a FROM t WHERE (x = '1' OR y = '2') | 400 ") " was expected here. |
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, abap_sql_query, 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
| Tool | What it does |
|---|---|
abap_sql_prepare | Returns the statement to send, or refuses it and names the correction |
abap_sql_explain | Decodes a statement the console rejected, without rewriting it |
abap_sql_query | Runs a prepared statement against your configured system and returns rows |
abap_sql_rules | Lists the ways this dialect differs from standard SQL |
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." }
The five rules also arrive in the server's instructions on connect, so your client has them before it writes anything. abap_sql_rules is there for when you want them back explicitly.
What it knows
Parenthesis spacing, everywhere it is required at once: aggregates, DISTINCT, subqueries, boolean groups. COUNT(*) stays compact, since the parser takes it either way and every character counts against the limit below.
The 255-character ceiling. The console accepts 255 and rejects 256, measured with whitespace collapsed. Wrapping across lines buys nothing, and the check runs *after* rewriting, because spacing makes statements longer. This one shapes how you plan a query: anything real has to be split and joined on your side.
`LIMIT`, `DESC`/`ASC`, and dot-qualified fields, refused with the ABAP form named. p.vbeln is not a typo the parser forgives, it is three tokens.
Where the literals are. A parenthesis inside 'PUMP (SPARE)' is data, and so is a double space. Both ABAP string forms and the comment form are understood, so a rewrite never changes what a statement asks for. This is the part a regex gets wrong quietly rather than loudly.
What it will not do for you
Two limits are the console's, not ours, and they shape everything you can ask:
255 characters per statement, so anything real has to be split into several statements and joined on your side. No window functions, no CTEs, no running totals.
5,000 rows, hard. A result at the cap is reported as truncated rather than handed back as if complete, because a client-side total over a silently truncated result is confidently wrong. That failure mode is worse than an error.
If you find yourself stitching four statements together to answer one question, that is the console, and no client fixes it.
Scope
This prepares statements and optionally runs them. It does not browse objects, execute ABAP, write anything, or know what your tables mean.
The dialect logic lives in abap-sql if you would rather call a library than run a server. Tokenizing is abaplint's lexer, which is the one correct ABAP tokenizer in TypeScript.
Built by Daslab. We connect agents to on-premise ERP systems. Connecting one from outside the network is its own problem, and there is a free write-up of what actually works: connecting an on-premise S/4HANA over HTTP.
Releasing
git tag v0.3.0 && git push --tags. CI checks the tag against package.json, runs the tests, publishes to npm with provenance, builds the .mcpb bundle and attaches it to a GitHub release.
Publishing uses npm trusted publishing, so there is no token in this repo and nothing to rotate. npm trusts this repository and this workflow through OIDC.
Two steps stay manual because they need credentials CI does not hold: the MCP Registry (mcp-publisher publish) and Smithery (smithery mcp publish).
License
MIT