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 "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., "@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"
}
}
}
}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 installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/xiangaoole/autoglm-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server