sap-mcp

sap-mcp

MCP server for SAP S/4HANA via the ADT API, enabling querying and reading SAP systems with production write protection.

Category
访问服务器

README

sap-mcp

MCP server for SAP S/4HANA via the ADT API. Runs locally over stdio.

Setup on a new machine

Prerequisites (install these first):

  • Node.js >= 20.12 (needs process.loadEnvFile; also provides npm) — required
  • Claude Code — required to use the server (only the registration step needs it)
  • Network/VPN reachability to your SAP hosts (e.g. fiori-dev...) — required
  • git — optional; only used for git clone. No git? See below. (To install on Windows: winget install --id Git.Git -e, then reopen your terminal. macOS: brew install git. Verify with git --version.)

Then:

git clone https://github.com/Tjarliman/sap-mcp.git
cd sap-mcp
npm install
cp .env.example .env      # PowerShell/CMD: copy .env.example .env

No git? Instead of git clone, download the repo from GitHub: green Code button -> Download ZIP, unzip it, then cd into the folder and continue from npm install. (git is only nicer later, for pulling updates with git pull instead of re-downloading.)

Now edit .env and fill in the real HOST/CLIENT for each system plus your own SAP USER/PASS. The real hostnames are intentionally not in this repo — get them from whoever maintains it. Then verify and register:

node test.mjs             # PASS = install OK  (does NOT check credentials)
node test.mjs --live      # PASS = credentials + SAP reachable  <-- the real proof

# Register with Claude Code (use the ABSOLUTE path to server.js on this machine):
claude mcp add sap-adt --scope user -- node C:\Users\<name>\sap-mcp\server.js

Start a fresh Claude Code session afterwards for the server to load.

node test.mjs reports PASS even before you edit .env — it only checks that the server boots and loads profiles. node test.mjs --live is what actually confirms your credentials and SAP connectivity.

Testing your install

The node test.mjs / node test.mjs --live steps above are the self-check (npm test runs the structural one). The bundled harness talks to the server over stdio — no Claude Code needed.

Once registered, you can also verify through Claude Code — ask it to run list_servers, or a query_table with SELECT MANDT, MTEXT FROM T000.

Credentials

Each person uses their own named SAP user per system. All connection details and credentials live in .env (gitignored); server.js contains no real hostnames. Never commit or share .env — sharing a service account breaks the SE24/transport audit trail and usually violates license terms.

Fill in HOST, CLIENT, USER and PASS for each profile in .env:

Profile Role
ABLD Development
dev120 Development (client 120)
snet QA/Test
ABLP Production
snet2 S/4HANA on-prem

Writes to ABLP (production) are blocked in server.js; read access is allowed.

Disclaimer

This software is provided "as is", without warranty of any kind, express or implied. You use it entirely at your own risk.

  • No liability. The author accepts no responsibility for any damage, data loss, downtime, security incident, or other harm — to your computer, your SAP systems, or your data — arising from the use, misuse, or inability to use this software.
  • Your access, your responsibility. You supply your own SAP credentials in .env. Keep that file private, use your own named user, and connect only to systems you are authorized to access.
  • Production risk remains. Writes to the ABLP (production) profile are blocked, but the tool can still read from any system you configure. Use it at your own discretion.
  • Compliance is on you. Ensure your use complies with your organization's policies and your SAP license terms before connecting.
  • Not affiliated with SAP. SAP and S/4HANA are trademarks of SAP SE. This is an independent, unofficial tool and is not endorsed by or affiliated with SAP SE.

License

MIT. The license text includes the binding "as is" / no-warranty / no-liability terms; the Disclaimer above restates them in plain language.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选