SAP ADT MCP Server
An MCP server that enables AI assistants to interact with SAP systems via the ABAP Development Tools (ADT) REST API. It allows users to read ABAP source code, inspect DDIC objects, and execute SQL queries directly.
README
SAP ADT MCP Server
MCP server for SAP ABAP Development Tools (ADT) REST API. Enables AI assistants to read ABAP source code, inspect DDIC objects, execute SQL queries, manage transports, analyze traces, control the debugger, and more.
Tools (46)
Source Code & DDIC (11)
| Tool | Description | Input |
|---|---|---|
get_abap_program |
Fetch ABAP program/report source code | name |
get_class |
Fetch ABAP class source code | name |
get_function_module |
Fetch function module source code | function_group, function_name |
get_function_group |
Fetch function group source code | name |
get_include |
Fetch ABAP include source code | name |
get_interface |
Fetch ABAP interface source code | name |
get_cds_view |
Fetch CDS view DDL source | name |
get_structure |
Fetch DDIC structure definition | name |
get_table |
Fetch ABAP database table definition | name |
get_data_element |
Fetch DDIC data element definition | name |
get_domain |
Fetch DDIC domain definition | name |
Repository & Search (3)
| Tool | Description | Input |
|---|---|---|
search_object |
Search ABAP objects by name pattern (wildcards supported) | query, max_results? |
get_transaction |
Fetch transaction details (package, app component) | name |
get_package |
Fetch package contents (objects with types/descriptions) | name |
Create & Execute (4)
| Tool | Description | Input |
|---|---|---|
create_abap_program |
Create, write source, and activate a program | name, description, source, package? |
create_cds_view |
Create, write source, and activate a CDS view | name, description, source, package? |
execute_program |
Execute a program and return WRITE output | name |
execute_sql |
Execute ABAP SQL query and return results as table | query |
Transport Management (7)
| Tool | Description | Input |
|---|---|---|
list_user_transports |
List all modifiable transports for current user | (none) |
get_transport |
Get full transport details (tasks, objects, status) | transport_number |
get_transport_info |
Check transport requirements for an object | uri, devclass, operation? |
create_transport |
Create a new transport request | devclass, description, ref?, operation? |
release_transport |
Release a transport for import | transport_number |
delete_transport |
Delete a transport request | transport_number |
list_system_users |
List SAP system users | (none) |
Trace Management (7)
| Tool | Description | Input |
|---|---|---|
list_traces |
List ABAP runtime traces (SAT/SE30) | user? |
get_trace_hitlist |
Get performance hit list for a trace | trace_id |
get_trace_db_access |
Get database access statistics for a trace | trace_id |
get_trace_statements |
Get statement-level call tree for a trace | trace_id |
delete_trace |
Delete a runtime trace | trace_id |
create_trace_config |
Create a trace collection configuration | object_name, process_type?, description? |
delete_trace_config |
Delete a trace configuration | config_id |
Service Binding (3)
| Tool | Description | Input |
|---|---|---|
get_binding_details |
Get OData service binding details | binding_name |
publish_service_binding |
Publish an OData service binding | binding_name, binding_version |
unpublish_service_binding |
Unpublish an OData service binding | binding_name, binding_version |
Debugger (11)
| Tool | Description | Input |
|---|---|---|
start_debugger_listener |
Start debugger listener (opens stateful session) | terminal_id?, ide_id?, user? |
stop_debugger_listener |
Stop listener and close debug session | terminal_id?, ide_id?, user? |
set_debugger_breakpoint |
Set a breakpoint at a source location | uri, line, user? |
delete_debugger_breakpoint |
Remove a breakpoint | breakpoint_id |
attach_debugger |
Attach to a running ABAP debug session | debug_mode? |
get_debugger_stack |
Get the current call stack | (none) |
get_debugger_variables |
Get variable values | variable_names[] |
get_debugger_child_variables |
Get child/nested variable values | variable_name |
debugger_step |
Step into/over/return/continue/terminate | step_type, uri? |
debugger_goto_stack |
Navigate to a stack frame | stack_type, position |
set_debugger_variable_value |
Set a variable value during debugging | variable_name, value |
Utility (1)
| Tool | Description | Input |
|---|---|---|
get_csrf_token |
Fetch CSRF token and session cookie | (none) |
Setup
npm install
cp .env.example .env # Edit with your SAP system details
npm run build
Configuration
| Variable | Description | Example |
|---|---|---|
SAP_HOSTNAME |
SAP system hostname | your-sap-host.example.com |
SAP_SYSNR |
System number (port = 443 + sysnr) |
50 → port 44350 |
SAP_USERNAME |
SAP user | DEVELOPER |
SAP_PASSWORD |
SAP password | secret |
SAP_CLIENT |
SAP client | 001 |
Usage with Claude Code
Add to your Claude Code MCP configuration:
{
"mcpServers": {
"sap-adt": {
"command": "node",
"args": ["/path/to/sap-adt-mcp/dist/index.js"]
}
}
}
Prerequisites
Your SAP user needs:
- S_ADT_RES authorization for ADT resource access
- ICF services activated under
/sap/bc/adt/(via transactionSICF) - Role SAP_BC_DWB_ABAPDEVELOPER or equivalent
Tech Stack
- TypeScript + Node.js
- MCP SDK (
@modelcontextprotocol/sdk) - Axios for HTTP
- SAP ADT REST API over HTTPS with Basic Auth
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。
mcp-server-qdrant
这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。