phonelink-mcp-server
MCP server that interacts with the Phone Link Windows app via UI Automation to read messages, calls, notifications, and photos, and perform actions like sending SMS and making calls.
README
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 |
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.exeinstead ofpowershell.exeif you have PowerShell Core installed (recommended for better performance).
How It Works
Claude ←→ MCP (stdio) ←→ Node.js Server ←→ PowerShell Scripts ←→ UIAutomation ←→ Phone Link UI
- Claude calls an MCP tool (e.g.,
phonelink_get_messages) - The Node.js server executes the corresponding PowerShell script
- The PowerShell script uses .NET's
System.Windows.Automationto:- Find the Phone Link window
- Navigate to the correct tab
- Traverse the UI element tree
- Extract text, names, and metadata
- Results are returned as JSON through the MCP protocol
Environment Variables
| Variable | Default | Description |
|---|---|---|
PHONELINK_PS_EXECUTABLE |
powershell.exe |
PowerShell executable path |
Troubleshooting
"Phone Link window not found"
- Make sure Phone Link is running (use
phonelink_launch_appfirst) - Check that Phone Link's window title matches expected names. Use
phonelink_inspect_uito 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_uito see current elements. - Try increasing
max_depthin 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_depthat 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_uito 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
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。