
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@sap/mdk-mcp-server
Advanced tools
Model Context Protocol (MCP) server for AI-assisted development of MDK applications.
This open-source server provides AI agents with comprehensive MDK knowledge and tools. By combining best practice guidelines, project-aware context information, templates for creating new projects, and access to the MDK CLI tools, the MDK MCP server transforms AI agents into MDK development experts.
The SAP Mobile Development Kit (MDK) is a powerful framework that enables developers to build cross-platform mobile applications using a metadata-driven approach. It is part of SAP Business Technology Platform and integrates tightly with SAP Mobile Services. Some of SAP’s larger and complex mobile apps are built using MDK. An example is SAP Service and Asset Manager.
[!NOTE] This MCP server is an early release version of the MDK. You may encounter bugs or unfinished features. We'd love your feedback to make it better! Please report issues or share suggestions via GitHub issues.
Install node.js.
For installing the MDK MCP server, we offer two options:
a. Use npm to install it from the public npmjs registry at @sap/mdk-mcp-server.
npm install -g @sap/mdk-mcp-server
b. Clone the open-source code repository at https://github.com/SAP/mdk-mcp-server, and use npm to install.
git clone https://github.com/SAP/mdk-mcp-server.git
cd mdk-mcp-server
npm i --include=optional
npm run build
npm i -g @sap/mdk-mcp-server@.
Configure your MCP client (AI agent) to connect to the server. Configuration will vary depending on the AI agent used.
Cline in VS Code: Example using the Cline extension.
cline_mcp_settings.json file in your editor.mcpServers section, and save the file. The supported schema versions include 26.3(default), 25.9, 25.6, 24.11, and 24.7.{
"mcpServers": {
"mdk-mcp": {
"type": "stdio",
"command": "mdk-mcp",
"args": ["--schema-version", "26.3"]
}
}
}
Note:
If the MCP server does not listed with its available tools in the Cline extension immediately, restart VS Code.
Example using OpenCode:
{
"mcp": {
"mdk-mcp": {
"type": "local",
"command": ["mdk-mcp", "--schema-version", "26.3"],
"enabled": true
}
}
}
Edit the file ~/.cursor/mcp.json:
{
"mcpServers": {
"mdk-mcp": {
"command": "mdk-mcp",
"args": ["--schema-version", "26.3"]
}
}
}
Once configured, your AI agent will have access to the MDK MCP server. Depending on your IDE settings, you may need to approve initial tool calls.
Create a Rule File: To ensure your AI coding assistant uses the MCP servers appropriately for your project, define rules and guidelines in a file named AGENTS.md. In the Cline extension for VS Code, click the Manage Cline Rules & Workflows icon below the prompt box, click + to create a new rule file (e.g., AGENTS.md) and add the above contents.
Example rules to guide agent behavior:
- Don't generate `.service.metadata` file.
- Don't generate `.xml` file in the `Services` folder.
- Don't change `.project.json` file.
Verify your LLM Provider and AI model.
When you add Cline to VS Code, it uses Cline as the default API provider. You can choose a different LLM provider, such as SAP AI core. To add an SAP AI Core API provider in the Cline extension for VS Code, follow these steps:
Integration with SAP Mobile Services: For creating a new MDK application, the MCP server uses the Cloud Foundry CLI and a .service.metadata file containing:
We include a tool to help with creating or updating this file as part of our VS Code extension: Mobile development kit extension for VS Code. This is how you can use this tool to create or update the .service.metadata file:
cf login <your target endpoint> --sso
Your environment is now ready for the MDK development with MCP server. You can now enter a prompt to:
[!NOTE] Tools are meant to be used by AI models and do not constitute a stable API.
This release of the MDK MCP server includes the following tools, which can be accessed by your AI agent:
| Tools | Description | Parameters |
|---|---|---|
mdk-create | Creates MDK projects or entity metadata using templates (CRUD, List Detail, Base). Use this for initializing new projects or adding entity metadata to existing projects. | - folderRootPath: The path of the current project root folder. - scope: The scope of creation:• project: Initialize a new MDK project with full structure• entity: Add entity metadata to an existing project- templateType: The type of template to use (crud, list detail, base). Note: 'base' template is only valid for project scope.- oDataEntitySets: The OData entity sets relevant to the user prompt, separated by commas.- offline: Whether to generate the project in offline mode (only applicable for project scope). Set to false unless offline is explicitly specified. |
mdk-gen | Generates MDK artifacts including pages, actions, i18n files, and rule references. Returns prompts for LLM processing (pages, actions, i18n) or searches for rule examples. | - artifactType: The type of artifact to generate:• page: Generate MDK page files (.page) with databinding or layout• action: Generate MDK action files (.action)• i18n: Generate internationalization files (.properties)• rule: Search for and return relevant JavaScript rule examples- folderRootPath: The path of the current project root folder (not required for rule artifact type).For page artifacts: - pageType: Type of page (required when artifactType is 'page'):• databinding: Data-driven pages with controls bound to OData• layout: Structure-focused pages with specific layouts- controlType: The control type for databinding pages (required when pageType is 'databinding'). Available types: ObjectTable, FormCell, KeyValue, ObjectHeader, ContactTable, SimplePropertyCollection, ObjectCard, DataTable, KPIHeader, ProfileHeader, ObjectCollection, Timeline, TimelinePreview, Calendar.- oDataEntitySets: Optional: The OData entity sets to use for page generation, separated by commas (required only when pageType is 'databinding').- layoutType: The layout type for layout pages (required when pageType is 'layout'). Available types: Section, BottomNavigation, FlexibleColumnLayout, SideDrawerNavigation, Tabs, Extension.For action artifacts: - actionType: The type of action (required when artifactType is 'action'). Available types: CreateODataEntity, UpdateODataEntity, DeleteODataEntity, CreateODataMedia, InitializeOfflineOData, DownloadOfflineOData, UploadOfflineOData, CancelDownloadOfflineOData, CancelUploadOfflineOData, ClearOfflineOData, CloseOfflineOData, CreateODataRelatedEntity, CreateODataRelatedMedia, CreateODataService, DeleteODataMedia, DownloadMediaOData, LogMessage, Message, Navigation, OpenODataService, ProgressBanner, PushNotificationRegister, PushNotificationUnregister, ReadODataService, RemoveDefiningRequest, SendRequest, SetLevel, SetState, ToastMessage, UndoPendingChanges, UploadLog, UploadODataMedia, UploadStreamOData, ChatCompletion, PopoverMenu, CheckRequiredFields, ChangeSet, OpenDocument, Banner, Filter.- oDataEntitySets: Optional: The OData entity sets to use for action generation, separated by commas (required only when artifactType is 'action').For i18n artifacts: - No additional parameters required beyond folderRootPath. For rule artifacts: - query: Search query for rule reference (required when artifactType is 'rule'). Examples: 'get app name', 'handle form validation', 'navigate to page', etc. |
mdk-manage | Comprehensive MDK project management tool that handles build, deploy, validate, migrate, show QR code, and mobile app editor operations. | - folderRootPath: The path of the current project root folder. - operation: The operation to perform on the MDK project. Available operations:• build: Build an MDK project• deploy: Deploy an MDK project to the Mobile Services• validate: Validate an MDK project• migrate: Migrate an MDK project to the latest MDK version• show-qrcode: Show QR code for an MDK project• open-mobile-app-editor: Instruct how to open the Mobile App Editor to create .service.metadata file- externals: Optional: Array of external package names to include in the deployment (e.g., ['@nativescript/geolocation']). If not specified, will automatically read from mdk.bundlerExternals in .vscode/settings.json of the project. Defaults to empty array if neither is provided. |
mdk-docs | Unified tool for accessing MDK documentation including search, component schemas, property details, and examples. | - operation: The type of documentation operation to perform:• search: Returns the top N results from MDK documentation by semantic search, sorted by relevance• component: Returns the schema of an MDK component based on the name of the component• property: Returns the documentation of a specific property of an MDK component• example: Returns an example usage of an MDK component - folderRootPath: The path of the current project root folder. Used to determine the appropriate MDK schema version. - query: Search query string (required for 'search' operation). - component_name: Name of the component (required for 'component', 'property', and 'example' operations). - property_name: Name of the property (required for 'property' operation). - N: Number of results to return for search operation (default: 5). |
This project is open to feature requests/suggestions, bug reports, and so on, via GitHub issues. Contribution and feedback are encouraged and always welcome.
These instructions help contributors set up, test, and maintain code quality for this project. All commands should be run from your project folder in a terminal.
npm testnpm run buildnpm run lint:allFor more information about how to contribute, the project structure, as well as additional contribution information, see our Contribution Guidelines.
You can enable and disable the collection of analytics. By default, non-personally identifiable information is used to help understand how you use the product to improve the MDK MCP Server. In case you want to opt-out there exist two ways to disable the telemetry.
Method 1: Configuration File Create or change the file ~/.fioritools/telemetrysettings.json:
{ "telemetrysettings": { "telemetrySetting": { "enableTelemetry": false } } } Set enableTelemetry to false to disable telemetry collection.
Method 2: Environment Variable Set the environment variable SAP_UX_FIORI_TOOLS_DISABLE_TELEMETRY to true:
export SAP_UX_FIORI_TOOLS_DISABLE_TELEMETRY=true Setting this environment variable will disable the telemetry client.
If you find any bug that may be a security problem, please follow our instructions at in our security policy on how to report it. Please don't create GitHub issues for security-related doubts or problems.
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone. By participating in this project, you agree to abide by its Code of Conduct at all times.
Copyright 2025 SAP SE or an SAP affiliate company. Please see our LICENSE for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available .
FAQs
Model Context Protocol (MCP) server for AI-assisted development of MDK applications.
We found that @sap/mdk-mcp-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.