Xcode-Studio-MCP
Xcode-Studio-MCP is a unified MCP server enabling AI agents to perform the full iOS development loop — from building Xcode projects to interacting with the iOS Simulator.
Build Xcode Projects (
xcode_build): Compile a project, workspace, or directory with structured diagnostic output (file path, line, column, severity, message). Supports custom schemes, build configurations (Debug/Release), and destinations.Build & Launch Apps (
xcode_run): Build and deploy an app to the iOS Simulator. Returns structured build errors on failure, or a success message with the launched process ID. Supports custom schemes, configurations, and target simulator by UDID.Capture Screenshots (
simulator_screenshot): Take a screenshot of the current Simulator screen, returned as a base64-encoded PNG. Can target a specific simulator by UDID or default to the booted one.Tap the Screen (
simulator_tap): Simulate a tap at specific (x, y) coordinates, with optional long-press duration. Requiresfb-idb.Type Text (
simulator_type): Type text into the currently focused input field on the Simulator. Requiresfb-idb.Inspect the UI Accessibility Tree (
simulator_describe): Retrieve the full accessibility tree of the current Simulator screen as JSON, enabling AI agents to discover and identify UI elements for interaction. Requiresfb-idb.
Enables interaction with iOS apps running in the Simulator, including capturing screenshots, performing tap and type actions on UI elements, and retrieving the accessibility tree as JSON.
Enables building Xcode projects with structured error output (file, line, column, severity) and launching apps in the iOS Simulator.
xcode-studio-mcp
Unified MCP server for Xcode + iOS Simulator — build, deploy, screenshot, and interact with your iOS app from Claude Code, Codex, Cursor, or any MCP client.
Built in Swift. Single binary. No Node/Python runtime required.
Why This Exists
Today you need 2-3 separate tools to do the full iOS dev loop with an AI agent. xcode-studio-mcp combines them into one:
Write code → Build → Deploy to Simulator → Screenshot → Tap/Type → VerifyTools
Tool | Description |
| Build an Xcode project with structured error output (file, line, column, severity, message) |
| Build and launch an app in the iOS Simulator |
| Capture the Simulator screen as a PNG image |
| Tap at x,y coordinates on the Simulator screen |
| Type text into the currently focused field |
| Get the accessibility tree of the current screen (JSON) |
Related MCP server: xcforge
Tool Parameters
xcode_build
Parameter | Required | Description |
| Yes | Path to Xcode project directory, |
| No | Build scheme (auto-detected if omitted) |
| No |
|
| No | Build destination (defaults to booted simulator) |
xcode_run
Parameter | Required | Description |
| Yes | Path to Xcode project |
| Yes | App bundle ID (e.g. |
| No | Build scheme (auto-detected) |
| No | Target simulator (defaults to booted) |
simulator_screenshot
Parameter | Required | Description |
| No | Target simulator (defaults to booted) |
simulator_tap
Parameter | Required | Description |
| Yes | X coordinate |
| Yes | Y coordinate |
| No | Hold duration in seconds (for long press) |
| No | Target simulator |
simulator_type
Parameter | Required | Description |
| Yes | Text to type |
| No | Target simulator |
simulator_describe
Parameter | Required | Description |
| No | Target simulator |
Quick Start
Prerequisites
macOS with Xcode installed
For UI interaction tools (
tap,type,describe):brew tap facebook/fb && brew install idb-companion pip3 install fb-idb
Build
git clone https://github.com/kevinswint/xcode-studio-mcp.git
cd xcode-studio-mcp
swift build -c releaseConfigure Claude Code
Add to your Claude Code MCP settings:
{
"mcpServers": {
"xcode-studio-mcp": {
"command": "/path/to/xcode-studio-mcp/.build/release/XcodeStudioMCP"
}
}
}Example Workflow
You: Build and run my app at ~/Projects/MyApp
Claude: [calls xcode_build] Build succeeded with 0 errors
[calls xcode_run] App launched (PID 12345)
[calls simulator_screenshot] Here's what the app looks like...
[calls simulator_describe] I can see a "Sign In" button and email/password fields
[calls simulator_tap] Tapped the email field
[calls simulator_type] Typed "test@example.com"
[calls simulator_screenshot] Here's the current state...Architecture
┌─────────────────────────────┐
│ MCP Protocol Layer │ stdio transport (Swift MCP SDK)
├─────────────────────────────┤
│ Tool Implementations │ 6 tools, structured error output
├──────────┬──────────────────┤
│ xcodebuild│ simctl │ idb │ native process calls
│ wrapper │ wrapper │ CLI │
└──────────┴──────────┴──────┘Built in Swift with zero Node/Python runtime dependencies (idb CLI is only needed for UI interaction tools).
Roadmap
v0.1 (current): Core build + simulator tools
v1.0: Semantic UI navigation ("tap the Sign In button"), visual diff, Xcode project file manipulation, compound operations, SwiftUI preview capture
Related Projects
Project | What It Does | Difference |
Build + test only | No simulator UI interaction | |
Cross-platform simulator UI | No Xcode build support | |
Simulator via IDB | No build, depends on IDB for everything |
xcode-studio-mcp combines build and interact into a single server.
Contributing
PRs welcome. The codebase is ~750 lines of Swift organized into Tools, Services, and Models.
License
MIT
Available Tools
6 toolssimulator_describeA
Get the accessibility tree of the current iOS Simulator screen as JSON. Useful for finding UI elements to interact with. Requires idb (pip3 install fb-idb).
| Name | Required | Description | Default |
|---|---|---|---|
| simulator_udid | No | Simulator UDID. Default: first booted simulator |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden. It successfully discloses the external dependency (idb) and output format (JSON), but lacks disclosure of read-only safety, error conditions (e.g., simulator not running), or the structure of the returned accessibility tree.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Three sentences with zero waste: first defines the core function, second explains the value proposition, third states the hard prerequisite. Perfectly front-loaded and appropriately sized for the tool's complexity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Adequate for a single-parameter inspection tool, but lacks description of the JSON output structure since no output schema exists. Given the domain-specific nature of 'accessibility tree,' some description of the returned hierarchy or element properties would strengthen agent effectiveness.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, fully documenting the simulator_udid parameter including its default behavior. The description does not explicitly discuss parameters, but the schema is self-sufficient, making the baseline score of 3 appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the specific action (Get), resource (accessibility tree), format (JSON), and scope (current iOS Simulator screen). It effectively distinguishes from siblings like simulator_screenshot (visual) and simulator_tap/type (interaction) by emphasizing UI element discovery.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Provides valuable prerequisite information ('Requires idb') and contextual usage guidance ('Useful for finding UI elements to interact with'), implying it should be used before tap/type operations. Could be improved by explicitly contrasting with simulator_screenshot for debugging strategies.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
simulator_screenshotA
Capture a screenshot of the iOS Simulator screen. Returns the image as base64-encoded PNG.
| Name | Required | Description | Default |
|---|---|---|---|
| simulator_udid | No | Simulator UDID. Default: first booted simulator |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations provided, so description carries full burden. It successfully discloses the critical behavioral trait of return format ('base64-encoded PNG') compensating for the missing output schema. Could mention whether this affects simulator state (it shouldn't) or requires specific permissions.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two sentences, zero waste. First sentence states the action, second discloses return format. Perfectly front-loaded with no filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Appropriately complete for a simple single-parameter tool. The description compensates for missing output schema by specifying the base64 PNG return format. Minor gap: doesn't specify error behavior if no simulator is booted.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, establishing baseline 3. The description does not add parameter-specific semantics beyond the schema, but the schema already adequately documents the optional simulator_udid parameter with its default behavior.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Clear specific verb ('Capture') + resource ('screenshot of the iOS Simulator screen'). Unambiguously distinguishes from siblings: unlike simulator_describe (metadata), simulator_tap/type (interactions), or xcode_build/run (compilation/execution), this tool specifically captures visual state.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Usage is implied by the action (use when visual verification needed), but lacks explicit when-to-use guidance versus alternatives like simulator_describe, or prerequisites such as requiring a booted simulator.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
simulator_tapA
Tap at specific coordinates on the iOS Simulator screen. Requires idb (pip3 install fb-idb).
| Name | Required | Description | Default |
|---|---|---|---|
| duration | No | Tap duration in seconds (for long press) | |
| simulator_udid | No | Simulator UDID. Default: first booted simulator | |
| x | Yes | X coordinate to tap | |
| y | Yes | Y coordinate to tap |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden. It successfully discloses the external dependency (idb) and implies coordinate-based interaction, but fails to describe return values, error behaviors (e.g., out-of-bounds coordinates), or whether the operation is synchronous.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two sentences with zero waste: the first states the action immediately, and the second provides essential prerequisite information. Perfectly front-loaded and appropriately sized for the tool's complexity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a 4-parameter interaction tool with no output schema or annotations, the description covers the core function and dependency but lacks completeness regarding the coordinate system origin (0,0 location), return value structure, and error scenarios.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Input schema has 100% description coverage, establishing a baseline of 3. The description mentions 'specific coordinates' which aligns with the x/y parameters, but adds no semantic detail beyond what the schema already provides regarding the duration or simulator_udid parameters.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the specific action ('Tap') and target resource ('iOS Simulator screen'), distinguishing it effectively from siblings like simulator_screenshot (capture), simulator_type (text input), and xcode_build (compilation).
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides critical prerequisite information ('Requires idb') but lacks explicit guidance on when to use this tool versus alternatives like simulator_type, or when tapping is preferable to other interaction methods.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
simulator_typeA
Type text into the currently focused field on the iOS Simulator. Requires idb (pip3 install fb-idb).
| Name | Required | Description | Default |
|---|---|---|---|
| simulator_udid | No | Simulator UDID. Default: first booted simulator | |
| text | Yes | Text to type |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden. It discloses the external idb dependency and implies statefulness ('currently focused field'), but omits error handling, idempotency, or timing behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two sentences with zero waste: first states the action, second states the prerequisite. Information is front-loaded and appropriately scoped.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Adequate for a 2-parameter tool with no output schema, covering the core action and dependency. However, gaps remain regarding failure modes (what if no field is focused?) and synchronous/asynchronous behavior.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Input schema has 100% description coverage ('Simulator UDID', 'Text to type'), establishing baseline 3. The description adds no parameter-specific semantics beyond what the schema already provides.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the specific action ('Type text') and target ('currently focused field on the iOS Simulator'), distinguishing it from sibling tools like simulator_tap (gestures) and simulator_screenshot (visual capture).
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Provides critical prerequisite information ('Requires idb') but lacks explicit guidance on when to use this versus simulator_tap (e.g., 'use after focusing a field') or error conditions if no field is focused.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
xcode_buildB
Build an Xcode project or workspace. Returns structured diagnostics with file, line, column, severity, and message for each error/warning.
| Name | Required | Description | Default |
|---|---|---|---|
| configuration | No | Build configuration (Debug or Release). Default: Debug | |
| destination | No | Build destination. Default: booted iOS Simulator | |
| project_path | Yes | Path to the Xcode project directory, .xcodeproj, or .xcworkspace | |
| scheme | No | Build scheme name. Auto-detected if omitted. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. It successfully discloses the return structure (file, line, column, severity, message) since no output schema exists. However, it omits other critical behavioral traits: whether builds are destructive to previous artifacts, execution time expectations, or prerequisite requirements (Xcode installation).
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description consists of two efficient sentences with zero waste. It is front-loaded with the core action ('Build...') followed by return value details. Every sentence earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given 4 parameters (1 required), no annotations, and no output schema, the description adequately covers the core function and return format. However, gaps remain in usage guidelines (vs. xcode_run) and behavioral transparency (side effects, idempotency), preventing a higher score.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
With 100% schema description coverage, the baseline is 3. The description reinforces the project_path semantics by mentioning 'project or workspace,' but adds no further syntax details, format examples, or constraints beyond what the schema already provides for the four parameters.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool 'Build[s] an Xcode project or workspace' with a specific verb and resource. It implicitly distinguishes from simulator_* siblings (which interact with simulators) and xcode_run (execution vs. compilation), though it does not explicitly name siblings to differentiate.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage by noting it returns diagnostics for errors/warnings, suggesting use for compilation verification. However, it lacks explicit when-to-use guidance or comparison with xcode_run (e.g., 'use this to compile before running').
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
xcode_runA
Build an Xcode project and launch the app in the iOS Simulator. Returns build errors if the build fails, or a success message with the launched process ID.
| Name | Required | Description | Default |
|---|---|---|---|
| bundle_identifier | Yes | App bundle identifier to launch (e.g. com.example.MyApp) | |
| configuration | No | Build configuration. Default: Debug | |
| project_path | Yes | Path to the Xcode project directory, .xcodeproj, or .xcworkspace | |
| scheme | No | Build scheme name. Auto-detected if omitted. | |
| simulator_udid | No | Simulator UDID. Default: first booted simulator |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden. It discloses output behavior (build errors vs. success message with process ID) and the dual build-then-launch sequence. However, it omits operational details like whether the call blocks until completion, simulator boot behavior, or timeout characteristics.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two sentences with zero waste: first states the action (build + launch), second states the return values. Every word earns its place, and critical information is front-loaded. Appropriate length for the tool's complexity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a 5-parameter tool with no output schema, the description compensates by explaining return values (build errors, process ID) and clarifying the compound operation. It adequately covers the tool's behavior, though it could improve by mentioning whether the simulator is auto-booted or if the operation is synchronous.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 100% description coverage, documenting all five parameters including defaults. The description mentions 'iOS Simulator' and 'build' which contextually anchors the parameters, but adds no specific syntax, format details, or parameter interdependencies beyond what the schema already provides. Baseline 3 is appropriate given the comprehensive schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description explicitly states the dual action ('Build... and launch') and identifies the specific resources (Xcode project, iOS Simulator). It effectively distinguishes from sibling tool 'xcode_build' (build-only) and simulator interaction tools by specifying it both compiles and deploys the app.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description explains what happens on success or failure (returns build errors or process ID), providing implicit usage context. However, it lacks explicit guidance on when to use this versus 'xcode_build' (e.g., 'use this when you need to test the app interactively') or prerequisites like requiring Xcode command line tools.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
TDQS
Each tool has a distinct purpose with clear boundaries: build vs. run (with launch), inspection vs. screenshot, and tap vs. type. No overlapping functionality causes confusion.
Perfect consistency using {domain}_{action} pattern throughout. All use snake_case with simulator_* prefix for simulator tools and xcode_* prefix for build tools.
Six tools is ideal for this focused scope covering Xcode build automation and iOS Simulator UI interaction. No bloat, no missing essentials for the core workflow.
Covers the primary iOS development loop (build, run, inspect, interact) well. Minor gaps exist for advanced UI automation (swipe gestures, hardware button simulation, app termination) but core functionality is solid.
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 Connectors
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
MCP connector for iMessage & Contacts via a local Mac agent + Vercel relay
MCP server for Appcircle mobile CI/CD platform.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Related MCP Servers
AlicenseNot gradedqualityBmaintenanceHigh-performance MCP server for iOS development and test automation. Gives AI coding assistants direct access to iOS simulators with sub-20ms screenshots, UI interaction, building, testing, and an intelligent operator mode.8MIT- AlicenseNot gradedqualityDmaintenanceMCP server and CLI for iOS development — build, test, automate, and diagnose from any AI agent or terminal.1MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server for iOS Simulator automation. Enables AI assistants to visually interact with iOS apps running in the simulator.411MIT
- AlicenseBqualityBmaintenanceA comprehensive MCP server for iOS/macOS development that gives AI assistants full control over Xcode build, test, simulator management, and app deployment.65252MIT
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/kevinswint/xcode-studio-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server