iOS Simulator MCP Server
Enables AI agents to control iOS Simulators for UI/UX debugging, app management, and accessibility auditing via simctl, IDB, and ClaudeDebugKit.
README
iOS Simulator MCP Server
An MCP (Model Context Protocol) server that gives Claude Code agentic control over the iOS Simulator for UI/UX debugging and development.
Features
Simulator Control
- List, boot, and shutdown simulators
- Take screenshots
- Set location, status bar overrides
- Push notifications
- Manage app permissions
App Management
- Install, launch, and terminate apps
- List installed apps
- Open URLs
- Access app containers
UI Interaction (requires IDB)
- Tap at coordinates
- Swipe gestures
- Text input
- Hardware button presses
Deep UI Debugging (requires ClaudeDebugKit)
- Complete view hierarchy inspection
- Auto Layout constraint analysis
- Touch target size audit (44pt minimum)
- Color contrast audit (WCAG AA/AAA)
- Accessibility audit
- Font and color inspection
- View highlighting
- Trait collection overrides (dark mode, Dynamic Type)
- Memory stats and performance metrics
Installation
Prerequisites
- Xcode with iOS Simulator
- Node.js 18+
- IDB (optional, for UI interaction):
brew install idb-companion pip install fb-idb
Install the MCP Server
cd ios-simulator-mcp-server
npm install
npm run build
Configure Claude Code
Add to your Claude Code MCP configuration (~/.config/claude-code/mcp.json):
{
"mcpServers": {
"ios-simulator": {
"command": "node",
"args": ["/path/to/ios-simulator-mcp-server/dist/index.js"]
}
}
}
Add ClaudeDebugKit to Your iOS App
For deep UI inspection features, add the Swift package to your iOS project:
- In Xcode: File → Add Package Dependencies
- Enter:
file:///path/to/ClaudeDebugKit - Add to your app (DEBUG builds only):
#if DEBUG
import ClaudeDebugKit
// In AppDelegate or SceneDelegate
func application(_ application: UIApplication, didFinishLaunchingWithOptions...) {
ClaudeDebugServer.shared.start()
return true
}
#endif
Usage Examples
Basic Simulator Control
"List all available iOS simulators"
"Boot iPhone 15 Pro"
"Take a screenshot of the simulator"
"Set the location to San Francisco (37.7749, -122.4194)"
App Development Workflow
"Install my app from ~/Build/MyApp.app and launch it"
"Get the view hierarchy of the current screen"
"Find all interactive elements"
"Audit touch targets for HIG compliance"
UI/UX Debugging
"Check color contrast for WCAG AA compliance"
"Show me the constraints on the login button"
"Highlight the view with accessibility label 'Submit'"
"Run a full UI/UX audit"
Testing Different Configurations
"Switch to dark mode"
"Override Dynamic Type to extra large"
"Simulate a memory warning"
"Get memory stats for the app"
Available Tools
Simulator Management
| Tool | Description |
|---|---|
ios_list_devices |
List all simulators |
ios_boot_device |
Boot a simulator |
ios_shutdown_device |
Shutdown a simulator |
ios_screenshot |
Take screenshot |
ios_set_location |
Set GPS location |
ios_set_status_bar |
Override status bar |
ios_push_notification |
Send push notification |
ios_set_permission |
Grant/revoke permissions |
ios_get_logs |
Get app logs |
App Management
| Tool | Description |
|---|---|
ios_install_app |
Install .app bundle |
ios_launch_app |
Launch app |
ios_terminate_app |
Terminate app |
ios_list_apps |
List installed apps |
ios_open_url |
Open URL |
ios_get_app_container |
Get container path |
UI Interaction (requires IDB)
| Tool | Description |
|---|---|
ios_tap |
Tap at coordinates or label |
ios_swipe |
Swipe gesture |
ios_input_text |
Type text |
ios_press_button |
Hardware buttons |
ios_long_press |
Long press |
View Debugging (requires ClaudeDebugKit)
| Tool | Description |
|---|---|
ios_get_view_hierarchy |
Full view tree |
ios_get_constraints |
Auto Layout constraints |
ios_find_element |
Find by label/identifier |
ios_get_view_colors |
Color information |
ios_get_font_info |
Font details |
ios_highlight_view |
Visual highlighting |
ios_get_interactive_elements |
All tappable elements |
ios_get_responder_chain |
Responder chain |
ios_get_traits |
Trait collection |
ios_override_traits |
Override appearance |
ios_get_memory_stats |
Memory usage |
ios_export_view_image |
Export view as PNG |
Auditing (requires ClaudeDebugKit)
| Tool | Description |
|---|---|
ios_audit_touch_targets |
Check 44pt minimum |
ios_audit_contrast |
WCAG contrast check |
ios_audit_layout |
Auto Layout issues |
ios_audit_accessibility |
Accessibility issues |
ios_audit_all |
Full UI/UX audit |
Architecture
┌─────────────────────────────────────────────────────────┐
│ Claude Code │
└─────────────────────┬───────────────────────────────────┘
│ MCP Protocol (stdio)
▼
┌─────────────────────────────────────────────────────────┐
│ ios-simulator-mcp-server │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────────┐ │
│ │ simctl │ │ IDB │ │ Debug Client │ │
│ │ (built-in) │ │ (optional) │ │ (HTTP) │ │
│ └──────┬──────┘ └──────┬──────┘ └────────┬────────┘ │
└─────────┼────────────────┼──────────────────┼──────────┘
│ │ │
▼ ▼ ▼
┌─────────────────────────────────────────────────────────┐
│ iOS Simulator │
│ ┌───────────────────────────────────────────────────┐ │
│ │ Your iOS App │ │
│ │ ┌─────────────────────────────────────────────┐ │ │
│ │ │ ClaudeDebugKit │ │ │
│ │ │ (HTTP Server on :8765) │ │ │
│ │ └─────────────────────────────────────────────┘ │ │
│ └───────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────┘
Requirements
- macOS with Xcode 15+
- Node.js 18+
- iOS 14+ target for ClaudeDebugKit
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 模型以安全和受控的方式获取实时的网络信息。