monocle
Allows AI agents to test iOS mobile apps by interacting with iOS simulators through tools like tap, swipe, type, screenshot, element inspection, and session recording.
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., "@monocletake a screenshot of the current app state"
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.
Monocle
Playwright for Mobile — Give AI agents the ability to test any iOS mobile app.
Monocle is an open-source MCP server + visual dashboard that lets AI agents (Claude Code, Cursor, etc.) interact with iOS simulators through 21+ tools: tap, swipe, type, screenshot, inspect elements, wait for conditions, record sessions, and more.
Architecture
┌─────────────────────────────────────────────────────┐
│ Monocle Dashboard (Next.js) │
│ Live Simulator View + Agent Chat + Action Timeline │
└───────────────────────┬─────────────────────────────┘
│ HTTP + WebSocket (:7200)
┌───────────────────────▼─────────────────────────────┐
│ Monocle Server (Node.js) │
│ MCP Server (stdio+HTTP) + REST API + WS Streaming │
│ 21+ tools • Element refs (@e1) • Session recording │
└───────────┬────────────────────────┬────────────────┘
│ │
idb_companion xcrun simctl
(accessibility, (screenshots,
tap, swipe, type) recording, lifecycle)Related MCP server: iOS Device Control MCP Server
Quick Start
# Prerequisites: Xcode 15+, Node.js 20+, idb_companion
npm install
npm run dev
# Or use via MCP (stdio mode for Claude Code):
npx tsx packages/server/src/index.ts --stdioMCP Configuration
{
"mcpServers": {
"monocle": {
"command": "npx",
"args": ["tsx", "/path/to/monocle/packages/server/src/index.ts", "--stdio"]
}
}
}Tools (21+)
Category | Tools |
Screen |
|
Interact |
|
Inspect |
|
Wait |
|
Device |
|
Record |
|
Element Refs
Monocle assigns short refs (@e1, @e2, ...) to every UI element. Use them anywhere:
Agent: "tap @e3" → taps the Login button
Agent: "type into @e5 'hello@example.com'" → types into email fieldRefs are stable within a session — same element keeps the same ref across calls.
Packages
packages/server— MCP server, iOS bridges, streaming, sessionspackages/dashboard— Next.js visual dashboardpackages/cli— CLI (monocle start,monocle devices,monocle screenshot)
Prerequisites
macOS with Xcode 15+
At least one iOS Simulator booted
idb_companioninstalled (brew install idb-companion)Python 3.11 venv with
fb-idb(for accessibility tree)
License
MIT — Pivot Studio AI
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables interaction with iOS simulators by providing tools to inspect UI elements, control UI interactions, and manage simulators through natural language commands.Last updated145,0792,115MIT
- Alicense-qualityDmaintenanceEnables comprehensive control of iOS simulators and real devices through AI assistants, supporting app management, UI automation, screenshots, media operations, and location simulation for iOS development and testing workflows.Last updated5MIT
- Flicense-qualityDmaintenanceEnables AI to control iOS simulators through the MCP protocol. Supports device management, UI automation, and network interception including screenshot capture, text input, and HTTP request mocking.Last updated
- Alicense-qualityFmaintenanceEnables AI agents to control real iPhones and simulators on macOS, allowing for UI interaction, testing, and automation.Last updated7685MIT
Related MCP Connectors
Live App Store & Google Play data for AI agents: app discovery, ASO keywords, reviews.
Build, validate, and deploy multi-agent AI solutions from any AI environment.
Real physical SIMs for AI agents: SMS verification and rentals. 145+ countries, 2500+ services.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/per-simmons/monocle'
If you have feedback or need assistance with the MCP directory API, please join our Discord server