Sponsored by Deepsite.site

Telephone Operator

创建者
wrappercompanya year ago
Give your agents a phone
内容

Telephone Operator

An MCP server that provides iOS device automation capabilities through Appium, primarily focused on iOS 18.2 and iPhone 16 Pro.

Features

  • iOS Safari automation
  • Device interaction controls
  • Touch gesture simulation
  • Physical button control
  • Element interaction
  • Built using MCP Python SDK and Appium

Prerequisites

  • macOS (required for Xcode and iOS development)
  • Xcode with iOS 18.2 simulator
  • Node.js and npm (for Appium)
  • Appium Server
  • Python 3.x

Installation

  1. Install UV if you haven't already:
curl -LsSf https://astral.sh/uv/install.sh | sh
  1. Install Appium and required drivers:
npm install -g appium
appium driver install xcuitest
  1. Create and set up the environment:
# Create project and virtual environment
uv init telephone-operator
cd telephone-operator
uv venv

# Activate virtual environment
source .venv/bin/activate

Running the Server

Start the server using UV:

uv run server.py

Available Tools

The server provides the following tools:

  1. get_page_source: Get the current page source of Safari

    • Returns: Current page HTML source
  2. tap_element: Tap an element on screen

    • Parameters:
      • element_id: Element identifier
      • by: Locator strategy (accessibility_id, xpath, name, class_name)
  3. press_physical_button: Simulate physical button press

    • Parameters:
      • button: Button to press (home, volumeup, volumedown, power)
  4. swipe: Perform swipe gestures

    • Parameters:
      • direction: Swipe direction (up, down, left, right)
  5. send_input: Input text into elements

    • Parameters:
      • element_id: Target element identifier
      • text: Text to input
      • by: Locator strategy
  6. navigate_to: Navigate Safari to URL

    • Parameters:
      • url: Target URL

Configuration with Cursor

  1. Open Cursor Settings
  2. Go to Features > MCP
  3. Click "+ Add New MCP Server"
  4. Fill out the form:
    • Type: stdio
    • Name: telephone-operator
    • Command: python3 /absolute/path/to/server.py

Configuration with Claude for Desktop

Add the following to your Claude for Desktop configuration:

{
    "mcpServers": {
        "telephone-operator": {
            "command": "uv",
            "args": [
                "--directory",
                "/ABSOLUTE/PATH/TO/PARENT/FOLDER",
                "run",
                "server.py"
            ]
        }
    }
}

Logging

The server maintains detailed logs in the logs directory, with timestamps for each session.

Testing

You can test this server using:

  1. The MCP Inspector tool
  2. Cursor
  3. Claude for Desktop
  4. Any other MCP client

Note

This server is configured to work with iPhone 16 Pro running iOS 18.2. Make sure you have the appropriate simulator installed through Xcode.

推荐的 MCP Server
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Playwright McpPlaywright MCP server
ChatWiseThe second fastest AI chatbot™
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Amap Maps高德地图官方 MCP Server
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Tavily Mcp
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Serper MCP ServerA Serper MCP Server
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
CursorThe AI Code Editor
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
DeepChatYour AI Partner on Desktop
RedisA Model Context Protocol server that provides access to Redis databases. This server enables LLMs to interact with Redis key-value stores through a set of standardized tools.
WindsurfThe new purpose-built IDE to harness magic