PD

piyushsteelcase-design/mcp-sap-gui-advanced

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

10 stars 6 forks 质量 74 趋势 22

Git

概览

A Model Context Protocol (MCP) server providing comprehensive SAP GUI automation capabilities for Claude Desktop integration. Features 22 professional SAP automation tools implemented in both Python and TypeScript. See SETUP.md for detailed manual installation instructions. This project operates entirely locally and does not collect or transmit personal information. See PRIVACY.md for complete details. - - Connect to SAP systems with credentials - - Disconnect from SAP systems - - Manage multiple SAP sessions - - Navigate to transactions (VA01, MM01, SE80, etc.) - - Navigate back (F3 equivalent) - - Exit transactions (F15 equivalent) - - Input data into SAP fields - - Retrieve field values - - Clear field contents - - Press GUI buttons - - Access menu functions - - Send function keys (F1-F24, Enter, Escape)

README

以下为原文 README 节选,完整内容请查看原文。

SAP MCP Server - Comprehensive SAP GUI Automation

A Model Context Protocol (MCP) server providing comprehensive SAP GUI automation capabilities for Claude Desktop integration. Features 22 professional SAP automation tools implemented in both Python and TypeScript.

🚀 Quick Start

# Clone the repository
git clone https://github.com/USERNAME/mcp-sap-gui-advanced.git
cd mcp-sap-gui-advanced

# Run the quick setup script
# Windows:
quick-setup.bat

# macOS/Linux:
chmod +x quick-setup.sh
./quick-setup.sh

Option 2: Manual Setup

See SETUP.md for detailed manual installation instructions.

🔒 Privacy & Security

This project operates entirely locally and does not collect or transmit personal information. See PRIVACY.md for complete details.

Project Structure

SAP MCP Server/
├── python/                 # Python implementation
│   ├── direct_sap_server.py     # 22 SAP automation tools
│   ├── test_comprehensive.py    # Full test suite
│   └── claude_desktop_direct.json
├── typescript/             # TypeScript implementation
│   ├── direct-sap-server.ts     # 22 SAP automation tools
│   ├── test-comprehensive.js    # Full test suite
│   └── claude-desktop-config.json
└── README.md              # This file

Comprehensive SAP Automation (22 Tools)

Connection & Session Management

  • sap_connect - Connect to SAP systems with credentials
  • sap_disconnect - Disconnect from SAP systems
  • sap_get_sessions - Manage multiple SAP sessions
  • sap_navigate - Navigate to transactions (VA01, MM01, SE80, etc.)
  • sap_navigate_back - Navigate back (F3 equivalent)
  • sap_navigate_exit - Exit transactions (F15 equivalent)

Field Operations

  • sap_input_field - Input data into SAP fields
  • sap_get_field_value - Retrieve field values
  • sap_clear_field - Clear field contents

Button & Menu Operations

  • sap_press_button - Press GUI buttons
  • sap_select_menu - Access menu functions

Function Key Operations

  • sap_send_key - Send function keys (F1-F24, Enter, Escape)

Table Operations

  • sap_get_table_data - Extract table/grid data
  • sap_set_table_cell - Modify table cells
  • sap_select_table_row - Select table rows

Screen Information

  • sap_get_screen_info - Get current screen details
  • sap_get_status_message - Read status messages

Visual Operations

  • sap_screenshot - Capture screen images

Advanced Operations

  • sap_execute_transaction - Multi-step transaction processing
  • sap_wait_for_screen - Screen loading synchronization

Data Exchange

  • sap_export_data - Export to CSV, Excel formats
  • sap_import_data - Import data from files

🛠️ Quick Start

TypeScript Version

cd typescript
npm install
npm run build
npm start

Python Version

cd python
uv install
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "sap-automation-ts": { "command": "node", "args": ["./typescript/build/index.js"], "cwd": "/path/to/sap-mcp-server" } } }