Skip to main content
Glama
Heartran

phonelink-mcp-server

by Heartran

phonelink-mcp-server

MCP server that reads and interacts with the Phone Link (MyPhone) Windows app via UI Automation.
Since Microsoft doesn't offer public APIs for Phone Link, this server scrapes the UI using PowerShell + .NET's System.Windows.Automation.

Features

Tool

Type

Description

phonelink_get_status

Read

Connection status + phone info

phonelink_get_messages

Read

List conversations or read a specific chat

phonelink_get_calls

Read

Call history (incoming/outgoing/missed)

phonelink_get_notifications

Read

Phone notifications

phonelink_get_photos

Read

Photo gallery metadata

phonelink_inspect_ui

Read

Debug: dump full UI automation tree

phonelink_send_message

Write

Send an SMS via the Phone Link UI

phonelink_make_call

Write

Initiate a phone call

phonelink_launch_app

Write

Launch Phone Link if not running

Related MCP server: umbriel

Requirements

  • Windows 10/11 with Phone Link installed and configured

  • Node.js >= 18

  • PowerShell (Windows PowerShell 5.1+ or PowerShell Core 7+)

  • Phone connected and paired in Phone Link

Setup

cd phonelink-mcp-server
npm install
npm run build

Claude Desktop Configuration

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "phonelink": {
      "command": "node",
      "args": ["C:/path/to/phonelink-mcp-server/dist/index.js"],
      "env": {
        "PHONELINK_PS_EXECUTABLE": "powershell.exe"
      }
    }
  }
}

Note: Use pwsh.exe instead of powershell.exe if you have PowerShell Core installed (recommended for better performance).

How It Works

Claude ←→ MCP (stdio) ←→ Node.js Server ←→ PowerShell Scripts ←→ UIAutomation ←→ Phone Link UI
  1. Claude calls an MCP tool (e.g., phonelink_get_messages)

  2. The Node.js server executes the corresponding PowerShell script

  3. The PowerShell script uses .NET's System.Windows.Automation to:

    • Find the Phone Link window

    • Navigate to the correct tab

    • Traverse the UI element tree

    • Extract text, names, and metadata

  4. Results are returned as JSON through the MCP protocol

Environment Variables

Variable

Default

Description

PHONELINK_PS_EXECUTABLE

powershell.exe

PowerShell executable path

Troubleshooting

  • Make sure Phone Link is running (use phonelink_launch_app first)

  • Check that Phone Link's window title matches expected names. Use phonelink_inspect_ui to debug.

  • The server searches for: "Phone Link", "Collegamento al telefono", "Il tuo telefono", "Your Phone"

UI elements not found

  • Phone Link updates may change the UI structure. Use phonelink_inspect_ui to see current elements.

  • Try increasing max_depth in inspect_ui to find deeper elements.

  • The PowerShell scripts include multi-language support (EN, IT, DE, ES) but your locale might use different strings.

Slow responses

  • UI Automation traversal can be slow, especially with high max_depth.

  • Keep max_depth at 10-12 for most operations.

  • The first call after launching Phone Link may be slower while the UI loads.

Permission issues

  • PowerShell must run with sufficient privileges to use UIAutomation.

  • If running as a service, ensure the service account has access to the desktop session.

Limitations

  • UI-dependent: Changes to Phone Link's UI can break scraping. Use inspect_ui to adapt.

  • Single language per session: Element names depend on the Windows display language.

  • No photo download: The photos tool lists metadata but cannot export actual image files.

  • Sequential only: Only one tool should run at a time (concurrent UI automation will conflict).

  • Foreground required: Phone Link window must be visible (not minimized) for some operations.

Development

npm run dev          # Watch mode
npm run build        # Build once
npm start            # Run server

License

MIT

Available Tools

9 tools

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 9 tool updatesv1.0.0
    • First observedphonelink_get_calls
    • First observedphonelink_get_messages
    • First observedphonelink_get_notifications
    • First observedphonelink_get_photos
    • First observedphonelink_get_status
    • First observedphonelink_inspect_ui
    • First observedphonelink_launch_app
    • First observedphonelink_make_call
    • First observedphonelink_send_message

TDQS

A4.4/5.0
Disambiguation5/5

Each tool targets a distinct Phone Link surface or action: status, photos, messages, calls, notifications, UI inspection, send, call, and launch. There is no meaningful overlap between get_messages and get_calls or between send_message and make_call, and the debug tool is clearly differentiated as a troubleshooting utility.

Naming Consistency5/5

All tools share the phonelink_ prefix and use consistent snake_case verb_noun patterns: get_* for read operations and send_message, make_call, and launch_app for actions. This makes it easy to predict a tool's behavior from its name.

Tool Count5/5

Nine tools is well-scoped for a Phone Link automation server: it covers the main phone data surfaces plus two user-initiated actions and a launcher/debug aid. Each tool earns its place without bloat or obvious omissions.

Completeness4/5

The set covers the main Phone Link workflows: connection status, launching the app, reading photos/messages/calls/notifications, sending an SMS, and making a call. Minor gaps exist—photos are not downloadable and notification actions are absent—but these are reasonable boundaries for a UI-automation MCP server.

Maintenance

ActivityInactive
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    A
    maintenance
    MCP server for a local-first messaging workspace that integrates Google Messages, WhatsApp, and Signal. It enables reading, sending, searching messages, and managing conversations through MCP tools.
    52
    -
  • A
    license
    Not graded
    quality
    B
    maintenance
    MCP server for driving any Windows app through five layers including OCR, UI Automation, and direct OS operations. Enables AI agents to control Windows desktop and OS cursor-free, even on background/locked windows.
    164
    2
    MIT
  • F
    license
    Not graded
    quality
    A
    maintenance
    MCP server that lets an LLM see and drive any running Windows app: attach a window, screenshot it, read its UI Automation tree, and send clicks, typed text, and key presses with pixel coordinates.
    -

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/Heartran/phonelink-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server