ascript-mcp
Provides tools for automating Android devices including screen capture, UI tree analysis, OCR, color matching, project deployment, and device management through AScript API integration.
Provides tools for automating iOS devices (without jailbreak or signing) including screen capture, UI tree analysis, OCR, color matching, project deployment, and device management through AScript API integration.
Provides access to YOLO plugins through AScript's online plugin library for computer vision and object detection capabilities in device automation workflows.
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., "@ascript-mcpscan for connected devices and show me the screen of the first Android phone"
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.
ascript-mcp
Chinese | English
AScript MCP Service — Allows AI programming tools (Claude Desktop / Cursor / Trae) to directly query AScript API documentation and control real Android / iOS devices (iOS requires no signing or jailbreaking).
Features
API Documentation Query: Module overview, API search, code examples, and environment setup guides
Online Plugin Query: Real-time query of the AScript plugin library (OCR, YOLO, HID, LLMs, etc.)
Device Interaction: Screenshots, UI trees, OCR, color finding, color comparison, and selector testing
Development & Deployment: Create projects, upload code, run, stop, and view logs
Device Management: LAN scanning, ADB scanning, and automatic connection
Related MCP server: magic-api-mcp-server
Installation
pip install ascript-mcpConfiguring Cursor
1. MCP Configuration
Create .cursor/mcp.json in the project root directory:
{
"mcpServers": {
"ascript": {
"command": "python",
"args": ["-m", "ascript_mcp.local"]
}
}
}2. Rule Configuration
Copy the entire docs/AGENT_RULES.md into the .cursorrules (for Cursor) or CLAUDE.md / AGENTS.md (for Claude Code / other IDEs) in your automation project root.
This rule template includes:
5-stage standard workflow (Observe → Select Strategy → eval_python iteration → Crop if necessary → Upload and Run)
Decision tree for API selection (UI controls → OCR → Image search → Color search)
Orchestration examples for common tasks like auto-login, check-in, and game combat
Anti-pattern list (guessing code, running without verification, hardcoding non-existent image paths, etc.)
Simplified rules (use only if you don't want to copy the full rules):
当用户需要编写设备自动化脚本(Android/iOS/Windows)时,必须先调用 ascript MCP 的 get_device_status 与 list_python_packages,再用 eval_python 在设备 REPL 里 验证关键代码片段,最后才 upload_file + run_project。 禁止凭记忆编写 ascript 代码。
Tool List
API Documentation (5)
Tool | Description |
| Get platform API module overview |
| Get detailed module API documentation |
| Search for APIs by keyword |
| Get code examples |
| Get environment setup guide |
Online Plugins (2)
Tool | Description |
| Query plugin library list |
| Get detailed plugin documentation |
Device Connection (5)
Tool | Description |
| Automatically connect to devices from project configuration |
| Scan LAN + ADB devices |
| Manually connect to a specified device |
| Get full device running status (running mode/permissions/screen/battery/memory/running scripts, etc., Android only) |
| List third-party Python libraries installed on the AScript App (Android + iOS) |
Observation Interface (6)
Tool | Description |
| Capture device screen |
| Get UI control tree |
| Test if a selector matches |
| Screen text recognition |
| Multi-point color search |
| Multi-point color comparison |
Development & Deployment (7)
Tool | Description |
| Create a project on the device |
| Upload files to the device (automatically creates project) |
| Run project |
| Debug mode run (Android + ADB), automatically forwards port 5678 and returns VS Code attach configuration |
| Stop project |
| Get running logs |
| Device Python REPL (Android + iOS): Execute code directly in the main process to get results immediately, with a cycle of a few hundred milliseconds. Suitable for exploratory debugging, complex decision-making, and custom workflows (SoM/intelligent tap/auto-cropping templates, etc.). iOS automatically translates |
File Management (2)
Tool | Description |
| List projects on the device |
| Get project file tree |
Online SSE Mode
If you need to deploy as a public service (API documentation query only):
uvicorn ascript_mcp.server:app --host 0.0.0.0 --port 8000License
MIT License, see LICENSE for details. Copyright © 2026 Beijing Aoyue Technology Co., Ltd.
More Information
AScript Official Website: https://ascript.cn
API Documentation: https://docs.airscript.cn
Plugin Library: https://py.airscript.cn
Community Forum: https://bbs.ascript.cn
Beijing ICP Filing No. 2020040944-4
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
- AlicenseAqualityBmaintenanceEnables AI assistants to control mobile and desktop devices with natural language, including running automation tasks, taking screenshots, and managing devices.65MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Magic-API development environment, supporting script syntax query, API management, debugging, and knowledge search for efficient development.MIT
- AlicenseBqualityCmaintenanceEnables Android device control via ADB and scrcpy, including device management, app management, file operations, shell commands, input simulation, screen mirroring, and UI element inspection.25Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables remote control of Android devices via ADB, including screen operations, input, app management, file transfer, and advanced tools like UI testing and performance analysis.24MIT
Related MCP Connectors
AI agent tools for FreeAppStore: deploy status, SDK docs, app info, platform guide.
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Create, test, publish, and manage Dreamlit notification workflows from AI clients.
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/ascript-cn/ascript-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server