autoglm-mcp
Provides screen analysis capabilities for Android devices via ADB, enabling AI agents to ask questions about the screen content and receive coordinates or instructions.
Click on "Deploy 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., "@autoglm-mcpWhat is on my phone screen right now?"
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.
AutoGLM MCP Server
Android screen analysis capabilities via MCP protocol.
Installation
Option 1: Using uvx (Recommended)
No manual installation required. Just add to AI agent MCP config:
{
"mcpServers": {
"autoglm-mcp": {
"command": "uvx",
"args": ["autoglm-mcp"],
"env": {
"AUTOGLM_BASE_URL": "https://api.z.ai/api/paas/v4",
"AUTOGLM_MODEL": "autoglm-phone-multilingual",
"AUTOGLM_APIKEY": "your-api-key-here"
}
}
}
}Option 2: pip install
pip install autoglm-mcpThen configure AI agent MCP:
{
"mcpServers": {
"autoglm-mcp": {
"command": "autoglm-mcp",
"env": {
"AUTOGLM_BASE_URL": "https://api.z.ai/api/paas/v4",
"AUTOGLM_MODEL": "autoglm-phone-multilingual",
"AUTOGLM_APIKEY": "your-api-key-here"
}
}
}
}Related MCP server: autoglm-mcp-server
Environment Variables
Variable | Description | Default |
| API key (required) | - |
| API endpoint |
|
| Model name |
|
Usage
Ensure your phone is connected via ADB, then use the aiAsk tool in AI agent:
"What are the coordinates to click the search button?"
"How do I open Settings?"
Local Development & Debugging
Prerequisites
Python >= 3.10
Node.js >= 18 (for MCP Inspector)
ADB installed and phone connected (
adb devicesshows your device)
Install from Source
cd mcp
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtMCP Inspector (Recommended)
MCP Inspector is the official visual debugging tool for MCP servers — like Postman for MCP.
npx @modelcontextprotocol/inspector \
-e AUTOGLM_APIKEY="your-api-key-here" \
-e AUTOGLM_BASE_URL="https://api.z.ai/api/paas/v4" \
-e AUTOGLM_MODEL="autoglm-phone-multilingual" \
-- \
/path/to/file/mcp/.venv/bin/python -m autoglm_mcp.serverThen open http://localhost:6274 in your browser:
Click Connect to connect to the server
Switch to the Tools tab — you should see the
aiAsktoolEnter a question (e.g.
"What is on the screen?") and click Run ToolInspect the JSON-RPC request/response in the left panel
Use local mcp server
"autoglm-mcp": {
"command": "/path/to/file/mcp/.venv/bin/python",
"args": [
"-m",
"autoglm_mcp.server"
],
"env": {
"AUTOGLM_BASE_URL": "https://api.z.ai/api/paas/v4",
"AUTOGLM_MODEL": "autoglm-phone-multilingual",
"AUTOGLM_APIKEY": "xxx"
}
}This server cannot be deployed
Maintenance
Related MCP Connectors
Cloud Android phones for AI agents: create a phone, read the screen, tap, type, install APKs, park.
Real Android phones in the cloud for AI agents: give phones a task in plain words and get the answer
Control real Android and iOS devices with LLM agents — tap, swipe, type, automate flows.
Launch and verify high-fidelity mobile simulations from an AI agent.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables AI agents to interact with Android devices through UI manipulation, screen capture, touch gestures, text input, and app management via ADB. Provides comprehensive mobile automation capabilities including element detection, navigation, and application control for Android device testing and interaction.92-
- AlicenseAqualityDmaintenanceEnables AI models to control Android devices via ADB through natural language commands, supporting screen analysis and automated actions.315 npmMIT
- AlicenseBqualityDmaintenanceEnables AI agents to control Android devices via ADB, supporting gestures, input, screenshots, UI analysis, and app management.196 npmISC
- AlicenseNot gradedqualityDmaintenanceEnables coding agents to observe and operate Android devices through ADB and uiautomator2, supporting screenshot capture, UI hierarchy access, and actions like tap, swipe, and text input.1Apache 2.0