xc-mcp
by conorluddy
Overview
An MCP server that enables AI agents to automate Xcode and iOS simulator workflows through intelligent context engineering and progressive disclosure.
Installation
npx -y xc-mcpEnvironment Variables
- XC_MCP_DEFER_LOADING
- XC_MCP_CACHE_DIR
- XC_MCP_CONFIG_PATH
- TMPDIR
- HOME
- XDG_CACHE_HOME
Security Notes
The server relies heavily on `child_process.exec` and `child_process.spawn` to execute `xcodebuild`, `simctl`, and `idb` commands. While some inputs are validated (`appPath`, `bundleId`, `udid` in certain tools), not all user-provided string arguments are universally sanitized against shell injection (e.g., `name` in `simctlCreateTool`, `query` in `idbUiFindElementTool`). The `executeCommand` utility uses `exec` which defaults to `shell: true`, making it vulnerable if unvalidated inputs are passed. Running external commands based on AI agent output, which might generate unexpected or malicious strings, poses a significant security risk. It should be run in a highly restricted or sandboxed environment, and comprehensive input validation/escaping should be implemented for all arguments passed to external commands.
Similar Servers
XcodeBuildMCP
A Model Context Protocol (MCP) server that provides Xcode-related tools for AI assistants, enabling programmatic interaction with Xcode projects, simulators, devices, and Swift packages.
Peekaboo
The server acts as a wrapper for a Swift-based macOS automation tool that integrates with multiple AI providers (OpenAI, Anthropic, Grok, Ollama) for screen capture, UI interaction, and AI analysis, functioning as a Model Context Protocol (MCP) server.
rocketship
This MCP server acts as a knowledgeable assistant for AI coding agents, providing guidance, examples, and introspection data for writing Rocketship tests, rather than directly generating test files.
responsible-vibe-mcp
Transforms any AI coding agent into a structured development partner by guiding it through battle-tested engineering workflows with persistent context and documentation.