Skip to main content

AutoGLM MCP Server - Android screen analysis via MCP protocol

Project description

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-mcp

Then 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
AUTOGLM_APIKEY API key (required) -
AUTOGLM_BASE_URL API endpoint https://api.z.ai/api/paas/v4
AUTOGLM_MODEL Model name autoglm-phone-multilingual

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 devices shows your device)

Install from Source

cd mcp
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

MCP 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.server

Then open http://localhost:6274 in your browser:

  1. Click Connect to connect to the server
  2. Switch to the Tools tab — you should see the aiAsk tool
  3. Enter a question (e.g. "What is on the screen?") and click Run Tool
  4. Inspect 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"
  }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autoglm_mcp-1.0.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autoglm_mcp-1.0.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file autoglm_mcp-1.0.0.tar.gz.

File metadata

  • Download URL: autoglm_mcp-1.0.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for autoglm_mcp-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a94ced96379db18910f421046f0b8bcaeb4777bc1f21260f9b928c86ad5b7881
MD5 9678a3c466d2e0ba0dc2b50555fa0762
BLAKE2b-256 5a1f2e93426591ebd5c2d5fc553ea9433bfd7a33cbc655e2b0b41c0e87a4f08a

See more details on using hashes here.

File details

Details for the file autoglm_mcp-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: autoglm_mcp-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for autoglm_mcp-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e1a36205a538c37b761a71e8d9d97c955b418a6f839abc0d2b5bb6a001693990
MD5 d5dd8d91ffd18d87ad01e053d3dd6d4b
BLAKE2b-256 03ace84c1868e6ba4f48ae613271e2b7c438ae81e0f79affea2eba93ce868c70

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page