home / mcp / mqscript mcp server
Provides an MCP server for MQScript mobile automation, exposing commands for touches, UI, color detection, device operations, and scripting utilities.
Configuration
View docs{
"mcpServers": {
"allegiant-mqscript_mcp": {
"command": "node",
"args": [
"path/to/mcp-mqscript-server/build/index.js"
]
}
}
}MQScript MCP Server provides a complete MCP server implementation for the MQScript mobile automation scripting language. It enables AI-powered generation and execution of MQScript code to automate actions on mobile devices, exposing a rich set of commands, libraries, UI controls, and extensions that cover most automation needs.
To use the MQScript MCP Server from an MCP client, run your server locally (or on a suitable host) and configure the client to connect using the provided MCP entry point. The MQScript server exposes a command-driven interface that your MCP client can invoke to perform touch actions, UI operations, file I/O, and more. You can chain commands within MQScript programs to model flows like delays, loops, conditions, and device interactions.
Typical usage patterns include starting the server in development, loading MQScript projects, and invoking MQScript functions from your AI workflow. Use the client’s MCP configuration to point to the local or remote server and ensure the server is reachable before attempting automated tasks.
Prerequisites: Ensure you have Node.js installed on your machine. You will also need npm to install dependencies.
Install dependencies and set up the project as described in the repository. The project provides standard npm-based commands to build and run the server.
Install dependencies
- Run `npm install` to install all required packages.Build the project
- Run `npm run build` to compile the server sources.Start the MCP server
- Run `npm start` to start the server in normal mode.Development mode
- Run `npm run dev` to start the server in development mode.The MCP client configuration shows how to connect to the MQScript MCP Server. The configuration uses a stdio (local) server entry where the client launches the server as a child process.
{
"mcpServers": {
"mqscript": {
"command": "node",
"args": ["path/to/mcp-mqscript-server/build/index.js"],
"env": {}
}
}
}Perform a tap at a specified screen coordinate or area to simulate a user touch.
Execute touch actions such as tap, press, or hold with configurable duration.
Scroll or drag by specifying start and end coordinates and duration.
Send a key press event to an input field or system keyboard.
Pause execution for a given amount of time.
Iterate over a block of commands with a loop counter.
Conditionally execute commands based on a boolean expression.
Repeat a block of commands while a condition remains true.
Declare local variables or manage scope within MQScript.
Read the color value of a pixel at given coordinates.
Search a defined region for a specific color value.
Compare a color against a reference to determine similarity or match.
Display a message to the user, typically in a dialog or overlay.
Output diagnostic information for debugging.
Launch another application on the device.
Input text into a focused text field.
Return the absolute value of a numeric input.
Compute the sine of an angle in radians.
Compute the cosine of an angle in radians.
Compute the tangent of an angle in radians.
Compute the square root of a number.
Generate a random number.
Return the length of a string.
Extract a specified number of characters from the left side of a string.
Extract a specified number of characters from the right side of a string.
Extract a substring from the middle of a string.
Find the position of a substring within a string.
Replace occurrences of a substring within a string.
Convert a string to upper case.
Convert a string to lower case.
Convert a value to an integer.
Convert a value to a string.
Convert a value to a boolean.
Check if a value is numeric.
Return the upper bound index of an array.
Split a string into an array by a delimiter.
Join an array of strings into a single string.
Create a new UI layout container.
Add a text view UI element to a layout.
Add an editable text field to a UI layout.
Add a clickable button to a UI layout.
Add a checkbox control to a UI layout.
Set the text content of a UI element.
Retrieve the text content from a UI element.
Enable or disable a UI element.
Show or hide a UI element.
Create a new floating window or overlay.
Display a floating window or overlay.
Hide a floating window or overlay.
Handle click events on a UI element.
Read text from a UI element identified by a selector.
Simulate a click on a specific UI element.
Set the text of a specific UI element.
Check whether a UI element exists.
Retrieve device information such as model and OS version.
Trigger device vibration for feedback.
Adjust screen brightness.
Adjust device media volume.
Initiate a phone call to a number.
Send an SMS message.
Query the current call state.
Terminate the running script or session.
Obtain the current system time.
Execute a shell command on the device.
Retrieve environment variables.
Set environment variables for the session.
Pause execution for a period.
Parse a JSON string into an object.
Convert an object to a JSON string.
Access a value from a JSON object.
Set a value in a JSON object.
Get the current date and time.
Format a date/time value into a string.
Add days to a date.
Compare two date/time values.
Read a file's content.
Write data to a file.
Check if a file exists.
Delete a file.
Copy a file.
Interact with AI chat service for conversational automation.
Configure AI chat service settings.
High-level function to tap at coordinates with duration.
High-level function to swipe between coordinates with duration.
Retrieve the color of a pixel and store in a variable.
Find a color within a region and return its position.
Create a new vertical or horizontal UI layout.
Add a clickable button to the UI.
Display the UI window with a title.
Read a file into a script variable.
Write content to a file with options for encoding and append mode.