MCP server for HarmonyOS development - interact with projects, devices, and applications
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Inspect callable tools, capabilities, and parameters exposed to AI agents by Harmonyos.
harmonyos_list_devicesList all connected HarmonyOS devices.
harmonyos_get_device_infoGet detailed information about a specific device.
harmonyos_get_project_infoGet HarmonyOS project information from app.json5.
harmonyos_list_modulesList all modules in a project with their types (HAP/HSP/HAR).
harmonyos_check_build_outputsCheck if build outputs exist and list them.
harmonyos_list_installed_appsList all installed applications on a device.
npm: https://www.npmjs.com/package/mcp-harmonyos
A Model Context Protocol (MCP) server for HarmonyOS development. This server enables AI assistants like Claude to interact with HarmonyOS projects, devices, and applications.
hdc must be available in your PATHAdd to your ~/.config/opencode/opencode.json:
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
harmonyos_list_devicesList all connected HarmonyOS devices.
Returns: Array of devices with UDID and status
harmonyos_get_device_infoGet detailed information about a specific device.
Parameters:
deviceId (string): The device UDIDReturns: Device information including model, manufacturer, OS version, etc.
harmonyos_get_project_infoGet HarmonyOS project information from app.json5.
Parameters:
projectPath (string): Absolute path to the HarmonyOS project rootReturns: Project metadata including bundleName, version, and modules
harmonyos_list_modulesList all modules in a project with their types (HAP/HSP/HAR).
Parameters:
projectPath (string): Absolute path to the HarmonyOS project rootReturns: Array of modules with name, type, and path
harmonyos_check_build_outputsCheck if build outputs exist and list them.
Parameters:
projectPath (string): Absolute path to the HarmonyOS project rootReturns: Build output information
harmonyos_list_installed_appsList all installed applications on a device.
Parameters:
deviceId (string): The device UDIDReturns: Array of installed applications
harmonyos_get_app_infoGet detailed information about an installed application.
Parameters:
deviceId (string): The device UDIDbundleName (string): The application bundle nameReturns: Detailed application information
After configuring the MCP server, you can ask OpenCode questions like:
OpenCode will use the MCP tools to query information and can combine them with bash commands for building and deploying:
This MCP server follows the "lightweight query + external operations" pattern:
This design ensures:
Make sure DevEco Studio is installed and hdc is in your PATH:
hdc list targets to verify connectionMake sure you provide the absolute path to the project root directory (where AppScope/app.json5 is located).
MIT
Contributions are welcome! Please feel free to submit a Pull Request.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/harmonyos)<a href="https://allmcps.com/mcp/harmonyos"><img src="https://allmcps.com/api/badge/harmonyos?style=directory" alt="Harmonyos on AllMCPs" /></a>