Skip to main content
Glama

ABAPilot — 面向 SAP ECC 和本地部署 S/4HANA 的 AI 与 MCP 服务器

ABAPilot 是一个面向 SAP 的系统内 AI 平台:在您现有运行的系统中(从 SAP ECC 6.0 到本地部署的 S/4HANA,任何基于 ABAP 的 SAP 实例)进行自然语言业务查询和 AI 辅助的 ABAP 开发。无需 BTP、无需 ADT、无需 RISE 前提条件。约 2 小时即可部署。

安装连接器: npx -y abapilot · 需要获得许可的 ABAPilot 后端

网站: https://crimsonconsultingsl.com/abapilot/

架构深度解析: ARCHITECTURE.md

2026 指南 — 面向 SAP ECC 的 AI: https://crimsonconsultingsl.com/ai-for-sap-ecc/

与 SAP 的 ABAP MCP Server 对比: https://crimsonconsultingsl.com/abapilot-vs-sap-abap-mcp-server/

快速开始

{
  "mcpServers": {
    "abapilot": {
      "command": "npx",
      "args": ["-y", "abapilot"],
      "env": {
        "ABAPILOT_URL": "http://<sap-host>:<port>/sap/bc/ZABAPilot",
        "ABAPILOT_USER": "<sap-user>",
        "ABAPILOT_PASSWORD": "<sap-password>",
        "ABAPILOT_CLIENT": "100"
      }
    }
  }
}

您的 SAP 凭据只会发送到您的 SAP 系统——绝不会发送给我们或任何第三方。

Related MCP server: abap-adt-mcp

工作原理

  • SAP 内部: 纯 ABAP 附加组件,以传输请求的形式交付到已注册的 /ABAPILOT/ 命名空间,挂载在单个 SICF (ICF) 节点上,并支持按端点动态分发。无需内核更改,无需 Gateway,无需 BTP,不依赖 ADT/Eclipse。

  • 在您的网络中: 此 MCP 连接器(npx abapilot)将任何 MCP 客户端——Claude、Claude Code、Cursor、ChatGPT——连接到 SAP 侧端点。

  • 您的模型: 为 Claude、OpenAI、Gemini、Amazon Bedrock 提供 BYOK——或通过 Ollama 完全本地化,实现零数据保留部署。

工具

  • sap_read_table_data — 在调用用户的授权范围内,从任意 SAP 表中查询行,支持可选的 WHERE 过滤

  • sap_read_table_structure — 表或结构的字段定义:名称、类型、长度、关键字段、描述

  • sap_search_tables — 按关键字搜索 SAP 数据字典('供应商' 可找到 LFA1、LFB1、……)

  • sap_read_code — 从已连接系统读取 ABAP 源代码:程序、类、函数组、包含文件、接口

  • sap_read_where_used — 交叉引用查找(类似 SE84),支持正向和反向

  • sap_syntax_check — 根据已连接系统的版本精确语法规则验证 ABAP 源代码(包括 ECC 6.0)

  • sap_read_dumps — 读取 ST22 运行时错误(短转储)

  • sap_read_jobs — 读取 SM37 后台作业:状态、运行时间、调度

连接器的工具列表遵循您系统中的 /ABAPILOT/CONFIG 白名单——在该处移除某个端点后,对应工具即停止工作,无需更改客户端。完整的许可平台提供 80 多个端点(自然语言查询解析、代码生成、带审批门的过账、监控、传输)。

安全模型

  • 每次调用都在 SAP 用户自身的授权(S_TABU_DIS、S_DEVELOP、……)下运行——强制执行,而非重新实现

  • 暴露范围仅限于 /ABAPILOT/CONFIG 白名单表;未列入白名单的任何内容均不可访问

  • 在 /ABAPILOT/AUDIT 中提供完整审计跟踪(用户、时间戳、参数)

  • 默认只读;写操作需要显式配置

获取访问权限

ABAPilot 是 Crimson Consulting SL(西班牙瓦伦西亚)的商业产品。npm 连接器是免费的(MIT);系统内后端需要许可。

申请演示: https://crimsonconsultingsl.com/contact-crimson-consulting/ — 在您的开发系统上进行 POC 部署大约需要两小时。

为什么不用 SAP 的 ABAP MCP Server?

分工不同:SAP 的服务器(位于 Eclipse/VS Code 的 ADT 中)非常适合在具有现代 ADT 服务的系统上为开发人员提供帮助。ABAPilot 补充了其未覆盖的部分:业务用户查询、没有 ADT 服务的系统(大多数实际环境中的 ECC 6.0)、受管控的白名单+审计访问,以及包括完全本地化在内的模型选择。许多团队同时运行两者——完整对比请见此处。

Available Tools

49 tools
sap_analyze_queryA

Analyze a natural language query and return intelligent guidance for building the SAP query. This tool examines your query and returns: - Candidate tables to query - Query type (simple, multi-table, aggregation) - Detected date ranges - Aggregation hints (TOP N, SUM, COUNT) - Field recommendations with semantic context USE THIS FIRST before building complex queries to get field guidance!

Inputs: query (required), fetch_metadata.

sap_check_notes_relevancyA

Check relevancy of one or more SAP Note numbers against this system (component/SP levels, download state, implementation readiness). Composite tool: classifies each note via the /classify_note_v2 gateway endpoint and aggregates the results. Notes that were never downloaded into SNOTE are reported with needs_download=true — run sap_download_note_v2 (requires OSS connectivity) or sap_upload_note_v2 first for a definitive verdict on those.

Inputs: note_ids (required).

sap_check_type_existsA

Checks whether a type exists in the SAP Data Dictionary and returns its kind. Returns type_kind: TABL (transparent/cluster/pool table — queryable), STRU (structure — NOT queryable, cannot SELECT from it), VIEW (database view — queryable), DTEL (data element), TTYP (table type), BUILTIN, TYPEPOOL. Use this to verify whether an object is a real database table before attempting sap_read_table_data or sap_count_rows.

Inputs: type_name (required).

sap_count_rowsA

Estimate row count for a table BEFORE fetching data. Use this to check if a query will return too much data. Returns estimated count and recommendation (direct_read, use_pagination, use_streaming). ALWAYS use this before querying large tables like BKPF, EKKO, VBAK without date filters!

Inputs: no named parameters.

sap_diagnose_messageA

Diagnose a SAP error/warning/info message end-to-end. USE THIS when a user shares a SAP message — whether as a screenshot, text, or message ID. This tool performs a full diagnostic chain: 1. Resolves message class + number (from T100 text search if only text is provided) 2. Locates the exact source code line where the message is raised 3. Reads surrounding code to understand the triggering condition 4. Checks for active enhancements that may interfere 5. Returns a structured diagnosis with root cause analysis and fix suggestions. INPUT: Provide EITHER message_id + message_number (if known) OR message_text (from screenshot). Optionally provide transaction or program_name to scope the search.

Inputs: language, message_id, transaction, message_text, +2 more.

sap_discover_change_objectA

Find the change document OBJECTCLAS for a table by querying TCDOB. Use this before querying change documents if you don't know the object class.

Inputs: table_name (required).

sap_get_enhancementsA

List ALL enhancements for a SAP transaction or program in one call. Returns BAdIs (new + classic), customer exits (SMOD/CMOD), enhancement spots (implicit/explicit), and BTEs (Business Transaction Events). Each entry includes: type, name, implementation, active status, program, and include name. USE THIS when the user asks about enhancements, BAdIs, customer exits, user exits, SMOD, CMOD, SE18, SE19, BTEs, extension points, or custom code on a transaction. Pass transaction (e.g., 'BP', 'VA01', 'XD01') or program_name (e.g., 'SAPMV45A'). DO NOT manually query SXS_ATTR, SXC_ATTR, MODSAP, or MODACT — use this tool instead.

Inputs: transaction, program_name.

sap_get_field_metadataA

Get enriched metadata for SAP table fields with semantic classification. Returns field classifications including: - Amount fields (for SUM) with their currency field mappings - Customer fields distinguished by role (sold_to=KUNAG, payer=KUNRG, bill_to, ship_to) - Status/flag fields (deletion, cancellation indicators) with filter recommendations - Date fields for filtering - Currency fields USE THIS BEFORE building queries to understand which fields to use! Example: For 'top customers by sales', this tells you to use KUNAG (sold-to) not KUNRG (payer).

Inputs: no named parameters.

sap_infer_joinsB

Automatically detect join keys between two tables based on domain matching. Compares field domains to suggest join keys with confidence levels.

Inputs: table1 (required), table2 (required).

sap_list_package_objectsA

List all ABAP repository objects in a development package (DEVCLASS). Returns objects grouped by type: programs (PROG), classes (CLAS), function groups (FUGR), tables (TABL), data elements (DTEL), domains (DOMA), structures (STRU), views (VIEW), etc. Use this to discover and inventory a codebase for documentation, migration analysis, or code review. Supports wildcard package names (e.g., 'Z*' for all Z packages). Also returns sub-packages if they exist. For custom namespace codebases, pass the top-level package and set include_subpackages=true.

Inputs: package (required), object_type_filter, include_subpackages.

sap_lookup_errorA

Analyze a SAP error message using all available external knowledge sources. Queries: T100 message table, SAP Help Portal, web search (SAP community, StackOverflow), SAP Notes (if S-user configured), and previously learned error patterns. Use this AFTER getting dump/syslog data to understand root cause. Returns ranked results from multiple sources with links to documentation.

Inputs: error_message (required), context, sources.

sap_lookup_t100A

Look up a specific SAP T100 message by message class and number. Use this when you see a message code like 'ME 003' or 'MM 001' in error messages, dumps, or syslog entries. Returns the full message text with placeholder descriptions.

Inputs: message_class (required), message_number (required), language.

sap_multi_table_queryA

Execute a multi-table query with proper joins and optional aggregation. Use this when you need data from 2+ tables that must be merged. Provide a JSON query plan with steps for each table, merge configuration, and optional aggregation. SUPPORTS AGGREGATION: For 'top N' queries, use the aggregation section to group, sum, sort, and limit results. IMPORTANT: Use this instead of multiple sap_read_table_data calls when you need joined data! CRITICAL - depends_on: When querying lookup/master data tables (KNA1, LFA1, MARA, etc.), ALWAYS use 'depends_on' and 'filter_field' to filter by keys from the primary table. This avoids querying the ENTIRE master data table. Example: To get customer names for sales orders, set KNA1 step with depends_on='orders', filter_field='KUNNR' — this queries only the customers in your order results. Without depends_on, KNA1 returns ALL customers (100K+) causing timeouts. NOTE: If the query returns more than 1000 rows, you will receive a 'requires_confirmation' response. You MUST ask the user if they want to see all the data. For 'last N' or 'most recent' requests, use sort_by + sort_order + limit instead of confirmed=true. Example: sort_by='WADAT_IST', sort_order='desc', limit=10 returns the 10 most recent deliveries. Fields in WHERE clauses and field lists are validated against table structure. Use sap_get_field_metadata or sap_read_table_structure first to discover correct field names.

Inputs: query_plan (required), limit, sort_by, max_rows, +2 more.

sap_patch_codeA

Forward a source-patching request to the configured /patch_code endpoint. The public Node connector does not retrieve source, apply replacements in Python or perform compatibility fixes itself. Read the current source before preparing replacements, then verify supported object types, patch arguments and validation behavior against the installed endpoint.

Inputs: object_name (required), object_type (required), replacements (required), short_text.

sap_read_change_docsA

Query change documents from CDHDR/CDPOS tables. Shows who changed what data and when. Use sap_discover_change_object first to find the correct OBJECTCLAS.

Inputs: user, date_to, max_rows, date_from, +3 more.

sap_read_change_docs_v2A

Optimized change document query using function modules. Supports additional filtering by table name (TABNAME). Preferred over legacy endpoint.

Inputs: user, date_to, tabname, max_rows, +4 more.

sap_read_codeA

Retrieves the source code of an ABAP object (program, class, or function group). Optional version param ('ACTIVE' default, 'INACTIVE' for pending unactivated changes). When 'INACTIVE' is requested but no inactive version exists, returns the active version with fallback_reason='no_inactive_version'. The response includes a version field indicating which version was actually returned.

Inputs: object_name (required), object_type (required), version.

sap_read_domain_valuesA

Retrieves the fixed values defined for a domain. Useful for understanding valid values for fields like material type, document type, etc.

Inputs: domain_name (required).

sap_read_dump_detailsA

Get detailed information for a specific short dump including full error texts, cause, and solution. Use this after sap_read_dumps to drill into a specific dump. Pass date, time, user, server, and error_id directly from the sap_read_dumps results.

Inputs: date (required), time (required), user (required), langu, +2 more.

sap_read_dumpsB

Query ABAP runtime errors (short dumps) from SAP's ST22 transaction. Returns dump information including date, time, user, program, and error details.

Inputs: user, date_to, max_rows, date_from.

sap_read_dynprosA

Retrieves screen definitions for a program including field lists.

Inputs: object_name (required), object_type (required).

sap_read_field_domain_valuesA

Get domain fixed values for a specific table field. Unlike /read_domain_values which requires the domain name, this finds the domain automatically from the field.

Inputs: field_name (required), table_name (required).

sap_read_foreign_keysA

Read foreign key relationships for a table from Data Dictionary (DD08L). Shows which tables are related and can be joined.

Inputs: table_name (required).

sap_read_includesB

Retrieves all include files for a program with their source code.

Inputs: object_name (required), object_type (required).

sap_read_jobsA

Query background job information from SAP's SM37 transaction. Returns job status, execution times, and scheduling details.

Inputs: user, status, date_to, job_name, +2 more.

sap_read_object_detailsA

Read comprehensive details about any SAP repository or DDIC object. Supports: DTEL (data elements), DOMA (domains with fixed values), TRAN (transactions — shows linked program), MSAG (message classes — all messages), TABL/STRU (table/structure fields), VIEW (database views), TTYP (table types), SHLP (search helps), ENQU (lock objects). For source code objects (PROG, CLAS, FUGR, FUNC), use sap_read_code instead. Returns structured data including descriptions, field definitions, relationships, and metadata.

Inputs: object_name (required), object_type (required).

sap_read_object_infoB

Get metadata about an ABAP object including creation date, last changed date, author, and package.

Inputs: object_name (required), object_type (required).

sap_read_syslogA

Query system log entries from SAP's SM21 transaction. Shows system events, warnings, and errors.

Inputs: user, tcode, date_to, max_rows, +1 more.

sap_read_table_dataA

Reads actual data from a SAP table with optional WHERE clause filtering and metadata inclusion. Use this for small to medium datasets (up to a few thousand rows).

IMPORTANT: If the query returns more than 1000 rows, you will receive a 'requires_confirmation' response with a preview. You MUST ask the user if they want to see all the data before calling again with confirmed=true.

Inputs: table_name (required), max_rows, confirmed, field_list, +2 more.

sap_read_table_data_enhancedA

Query data from an SAP table with optional WHERE clause filtering. Use this to retrieve business data like materials (MARA), purchase orders (EKKO), sales orders (VBAK), vendors (LFA1), customers (KNA1), etc. Supports ABAP WHERE clause syntax for filtering. For audit/compliance queries requiring ALL records, set audit_mode=true. Fields in WHERE clause and field_list are validated against table structure. Use sap_get_field_metadata or sap_read_table_structure first to discover correct field names.

Inputs: no named parameters.

sap_read_table_paginatedA

Read table data with pagination support for large result sets. Use offset and limit to page through results. Recommended for tables with 500-5000 rows. For larger tables, consider streaming. Fields in WHERE clause and field_list are validated against table structure. Use sap_get_field_metadata or sap_read_table_structure first to discover correct field names.

Inputs: no named parameters.

sap_read_table_structureA

Retrieves the metadata of a Data Dictionary table including field definitions, data types, keys, and descriptions.

Inputs: table_name (required).

sap_read_textsB

Retrieves text elements (selection texts, text symbols) for a program.

Inputs: object_name (required), object_type (required).

sap_read_translationsA

Reads translatable texts from a SAP object in source and optionally target language. Equivalent to SE63 in SAP GUI. Supports: PROG (text pool), DTEL (data element), DOMA (domain values), MSAG (message class), TABL (table/field texts), FUNC (function module), CLAS (class description + method/component descriptions + class text pool), CUAD (GUI status: function texts, titles, menus), DYNP (dynpro screens: screen titles, custom field texts, frame titles). Returns text IDs, source texts, existing target translations, and max lengths.

Inputs: object_name (required), object_type (required), source_language, target_language.

sap_read_user_locksA

Query user lock status from USR02 table. Shows which users are locked and their last login information.

Inputs: user, max_rows, locked_only.

sap_read_where_usedA

Queries SAP's cross-reference tables (WBCROSSGT/WBCROSSI) to find what objects use a given object (forward) or what a given object uses (inverse). Equivalent to SAP's 'Where-Used List' functionality. IMPORTANT: For heavily-used tables (MARA, KNA1, LFA1), use name_filter='Z*' to avoid timeout!

Inputs: object_name (required), direction, max_results, name_filter, +1 more.

sap_run_programA

Request execution of an ABAP report through the configured /run_program endpoint. Report name is required; variant-based selection and returned output depend on the installed backend. The public Node connector does not implement a 180-second timeout, background-job fallback or polling workflow. Agree the report and execution scope before use.

Inputs: report (required), variant, max_output_lines.

sap_run_transactionA

Run the ABAP report behind a report transaction code, optionally with a selection-screen variant, and return its list output. Resolves the transaction to its program via TSTC, then runs it like sap_run_program (extended timeout with background-job fallback). Parameter 'tcode' (required) is the transaction code. Parameter 'variant' (optional) is a selection-screen variant (create it with sap_save_variant for programs with mandatory fields). LIMITATION: only report transactions (TSTC-PGMNA set) can run headlessly; pure dialog transactions are not supported.

Inputs: tcode (required), variant, max_output_lines.

sap_save_variantA

Create or overwrite an ABAP selection-screen VARIANT for a report, so it can be reused by sap_run_program (and the performance trace / headless runs) for programs whose selection screen has mandatory fields. Parameter 'report' (required) is the program name. Parameter 'variant' (required) is the variant name (<=14 chars). Parameter 'text' (optional) is a description. Parameter 'environment' (optional, default 'A') is 'A' online or 'B' batch. Parameter 'parameters' (required) is the selection values as a list of objects with keys: selname, kind ('P' parameter / 'S' select-option), sign ('I'/'E'), option ('EQ','BT','CP',...), low, high. To read a variant back use sap_call_function RS_VARIANT_CONTENTS_RFC (REPORT, VARIANT); to delete use RS_VARIANT_DELETE_RFC (REPORT, VARIANT).

Inputs: report (required), variant (required), parameters (required), text, +1 more.

sap_scan_security_notesA

Discover ABAP Security/HotNews notes for a SAP patch-day month and rank them by relevancy to this system. Fetches the public SAP Focused Run CSA note policy (github.com/SAP-samples/frun-csa-policies-best-practices), compares each note's fixed-in support-package levels against the system's installed components (CVERS), and classifies the affected ones via /classify_note_v2. min_priority=1 for HotNews only (1=HotNews .. 4=Low; includes priorities <= the given value). month defaults to the latest published patch day.

Inputs: month, classify, min_priority.

sap_search_knowledgeA

Search SAP documentation and community for information on any SAP topic. Queries SAP Help Portal and web sources (community.sap.com, StackOverflow, blogs.sap.com). Use this to research SAP concepts, find best practices, or look up configuration guides. Unlike sap_lookup_error, this is for general knowledge queries, not specific error messages.

Inputs: query (required), max_results.

sap_search_tablesA

Search the Data Dictionary for tables matching a keyword. Returns table names and descriptions.

Inputs: keyword (required), max_results.

sap_smart_table_queryA

Execute a table query with automatic metadata-driven enhancements. This tool: 1. Fetches table metadata and classifies fields 2. Adds recommendations for currency filtering, status exclusion 3. Warns if you're using the wrong customer field 4. Executes the query with proper field validation Use this instead of sap_read_table_data when you want intelligent guidance!

Inputs: no named parameters.

sap_stream_table_dataA

Streams large table data using offset-based pagination. Call repeatedly with increasing offset to retrieve all data. Ideal for tables with millions of rows.

Inputs: table_name (required), offset, package_size.

sap_syntax_checkA

Validates ABAP source code for syntax errors without creating or activating it.

Inputs: source (required), program_name.

sap_translateA

Composite tool: reads translatable texts from a SAP object, translates them using AI, and optionally writes them back. Workflow: 1) Read source texts 2) AI translate with SAP terminology 3) Return translations for review (or auto-deploy if auto_deploy=true). Preserves SAP placeholders (&1, &2, etc.) and respects max_length constraints. Supports: PROG, DTEL, DOMA, MSAG, TABL, FUNC, CLAS, CUAD, DYNP.

Inputs: object_name (required), object_type (required), target_language (required), auto_deploy, +1 more.

sap_write_codeA

Forward an ABAP source-write request to the configured /write_code endpoint. This connector does not redirect class writes, apply compatibility fixes, run a separate syntax check or activate objects itself. Confirm supported object types, authorization, validation and activation behavior on the installed backend before allowing writes.

Inputs: source (required), object_name (required), object_type (required), package, +3 more.

sap_write_code_safeB

Forward a request to the configured /write_code_safe endpoint. Validation, compatibility fixes, retries and deployment behavior depend on that installed endpoint; the tool name does not establish those safeguards. The public Node connector does not implement the Python bridge workflow, provide an abap://syntax-rules resource or route writes through ADT itself. Verify the backend contract and required arguments before use; the current input schema is incomplete.

Inputs: no named parameters.

sap_write_translationsA

Writes translated texts back to a SAP object. Equivalent to saving translations in SE63. Provide an array of translations with text_id (from sap_read_translations) and the translated_text. Supports: PROG, DTEL, DOMA, MSAG, TABL, FUNC, CLAS, CUAD, DYNP.

Inputs: object_name (required), object_type (required), translations (required), target_language (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 49 tools

    Disambiguation2/5

    Multiple tools have overlapping retrieval purposes (e.g., sap_read_table_data vs sap_read_table_data_enhanced vs sap_smart_table_query, sap_read_domain_values vs sap_read_field_domain_values, sap_read_change_docs vs v2). While some descriptions explicitly redirect, the sheer number of near-duplicate read/query variants creates real selection ambiguity.

    Naming Consistency3/5

    The set consistently uses the sap_ prefix and mostly verb_noun patterns (read_, write_, search_, check_, run_, etc.). However, there are style mismatches such as smart_table_query vs read_table_data, discover_change_object vs read_change_docs, and get_* vs read_* for similar retrieval actions, making the pattern less predictable.

    Tool Count2/5

    49 tools is well beyond the 25+ threshold for a single MCP server, making it heavy even for a broad SAP domain. While each tool addresses a specific niche, the set would be better split into focused servers (e.g., data access, code management, diagnostics).

    Completeness3/5

    The tool surface covers a wide range of SAP operations—table reads, metadata, source code, translations, dumps, jobs, notes, and enhancements. However, lifecycle operations are incomplete: there is no create/activate/delete for repository objects, no data modification, and run_transaction only supports report transactions, leaving notable dead ends.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI agents to read, write, activate, and transport ABAP code in SAP systems via ABAP ADT REST API, without needing SAP GUI.
      24
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to work with SAP ABAP systems through the ADT REST API, supporting repository search, source code read/write, activation, syntax checks, and transport request management.
      1
      Apache 2.0