ADT MCP Server
Provides tools for reading ABAP repository objects from SAP systems via ADT services, including programs, classes, functions, interfaces, tables, CDS views, and where-used references. Supports both on-premise SAP systems with basic authentication and SAP BTP ABAP systems with JWT authentication.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ADT MCP Serverget the source code for program ZSALES_REPORT"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ADT MCP Server
This repository provides a Model Context Protocol (MCP) server for ABAP Development Tools (ADT), exposing various ABAP repository-read tools (program, class, function, include, interface, structure, table, where-used, etc.) over a standardized MCP interface.
🆕 Now includes SAP BTP (Business Technology Platform) support with JWT authentication and service key utilities!
📚 Quick Start: See QUICK_START.md for immediate setup instructions.
🔌 Client Connections: See MCP_CLIENT_CONNECTIONS.md for connecting to Cline, Claude Desktop, and other MCP clients.
📖 Documentation: Complete documentation is available in the doc/ folder.
Prerequisites
Python 3.9+
pip (the Python package installer)
A running SAP ABAP system with ADT services enabled
A
.envfile in the project root with your SAP connection settings (see below)
Related MCP server: mcp-abap-abap-adt-api
Setup
Clone the repository
git clone https://github.com/<your-org>/<your-repo>.git cd <your-repo>Note: The MCP server can now be run from any directory, not just the project directory. See REMOTE_CONNECTION_GUIDE.md for details.
Transport Options: The server supports multiple transport protocols: STDIO (default), SSE, and Streamable HTTP.
Create and activate a virtual environment
python -m venv .venv source .venv/bin/activate # Linux/macOS .\.venv\Scripts\activate # WindowsInstall dependencies
pip install mcp "mcp[cli]"Then install:
pip install -r requirements.txtConfigure environment variables
Copy the example
.env.exampleto.envand fill in your SAP credentials:For On-Premise Systems (Basic Authentication)
SAP_AUTH_TYPE=basic SAP_URL=https://my.sap.system:443 SAP_CLIENT=100 SAP_USER=YOUR_USER SAP_PASS=YOUR_PASS SAP_VERIFY_SSL=true # Optional timeout configuration (in seconds) SAP_TIMEOUT_DEFAULT=45 # Default timeout (45 seconds) SAP_TIMEOUT_CSRF=15 # CSRF token timeout (15 seconds) SAP_TIMEOUT_LONG=60 # Long operations timeout (60 seconds)For BTP Systems (JWT Authentication)
SAP_AUTH_TYPE=jwt SAP_URL=https://your-system.abap.region.hana.ondemand.com SAP_JWT_TOKEN=eyJhbGciOiJSUzI1NiIsImp... SAP_VERIFY_SSL=true # Optional timeout configuration (in seconds) SAP_TIMEOUT_DEFAULT=45 # Default timeout (45 seconds) SAP_TIMEOUT_CSRF=15 # CSRF token timeout (15 seconds) SAP_TIMEOUT_LONG=60 # Long operations timeout (60 seconds)💡 Tip: Use the included BTP utilities to generate .env files from service keys automatically!
🚀 BTP Integration
This server now includes comprehensive SAP BTP support with:
JWT Token Authentication for BTP ABAP systems
Service Key Parsing and analysis
Automatic .env Generation from BTP service keys
CLI Utility for easy configuration management
Quick BTP Setup
Download your service key from BTP cockpit
Generate .env file using the CLI utility:
python btp_env_generator.py --service-key service-key.json --username your-user@company.com --prompt-passwordUse the generated .env file in your project
For complete BTP integration details, see BTP_INTEGRATION_GUIDE.md.
Available Tools
ABAP Repository Tools
get_program_source_mcp– Retrieve ABAP program sourceget_class_source_mcp– Retrieve ABAP class sourceget_function_group_source_mcp– Retrieve function group sourceget_function_source_mcp– Retrieve function module sourceget_include_source_mcp– Retrieve include sourceget_interface_source_mcp– Retrieve interface sourceget_structure_source_mcp– Retrieve structure definitionget_table_source_mcp– Retrieve table definitionget_table_contents_mcp– Fetch table data (max rows default 100)get_package_structure_mcp– Retrieve package metadataget_type_info_mcp– Retrieve type informationget_transaction_properties_mcp– Retrieve transaction propertiesget_search_objects_mcp– Quick search for repository objectsget_usage_references_mcp– Retrieve where‑used references for any objectget_cds_source_mcp– Retrieve CDS view sourceget_metadata_extension_source_mcp– Retrieve metadata extension sourceget_sql_query_mcp– Execute freestyle SQL queriesget_enhancements_mcp– Discover enhancement implementations
🆕 BTP Tools
generate_env_from_service_key_file_mcp– Generate .env from service key filegenerate_env_from_service_key_json_mcp– Generate .env from service key JSONparse_btp_service_key_mcp– Parse and analyze service keysget_btp_connection_status_mcp– Check current BTP configuration
Troubleshooting
"MCP error -32000: Connection closed" Error
If you get this error when connecting from another directory:
Make sure you use the full path to the server:
python /full/path/to/mcp-adt/mcp_server.pyCheck MCP client configuration:
{ "mcpServers": { "adt-server": { "command": "python", "args": ["/full/path/to/mcp-adt/mcp_server.py"] } } }Run connection test:
python /path/to/mcp-adt/test_remote_connection.pyCheck logs:
Log file is created in project directory:
mcp_server.logCheck for import or configuration errors
Other Common Issues
ModuleNotFoundError: Make sure all dependencies are installed:
pip install -r requirements.txt.env file issues: File is automatically searched in project directory
Permission issues: On Linux/macOS you may need
chmod +x mcp_server.py
For detailed information see REMOTE_CONNECTION_GUIDE.md
License
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityBmaintenanceEnables SAP ABAP development workflows including ADT login, object search, read, create, update, activate, delete, and OData service publishing.Last updated1
- AlicenseCqualityCmaintenanceEnables interaction with SAP ABAP systems through ADT APIs, allowing management of ABAP objects, transport requests, and code analysis via natural language.Last updated10084MIT
- AlicenseCqualityCmaintenanceEnables interaction with SAP ABAP systems via ADT APIs, allowing management of ABAP objects, transport requests, and code analysis through MCP clients.Last updated10084MIT
- Flicense-qualityCmaintenanceEnables querying and manipulating SAP ABAP/DDIC objects via ADT REST, including search, source management, table data preview, and CRUD operations.Last updated
Related MCP Connectors
Connect to Atlassian Jira, Confluence, and Compass to search, create, and manage your work.
Run SOQL queries to explore and retrieve Salesforce data. Access accounts, contacts, opportunities…
Run SOQL queries to explore and retrieve Salesforce data. Inspect records, fields, and relationshi…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/YahorNovik/mcp-adt'
If you have feedback or need assistance with the MCP directory API, please join our Discord server