Xcode MCP Server

MCP Server for interacting with Xcode

Local serverstdioPython

What is the Xcode MCP Server?

MCP Server for interacting with Xcode

What you get

An MCP (Model Context Protocol) server that enables AI assistants to control and interact with Xcode for Apple platform development.

  • Discover and navigate — your Xcode projects and source files
  • Build and run — iOS, macOS, tvOS, and watchOS applications
  • Execute and monitor tests — with detailed results
  • Debug build failures — by retrieving errors and warnings
  • Capture console output — from running applications
  • Take screenshots — of Xcode windows and iOS simulators

Configuration and credentials

  • macOS - This server only works on macOS - Xcode - Xcode must be installed - Python 3.10+ - For running the server (uvx will fetch a compatible Python automatically if your system Python is older)

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Xcode MCP Server

{
  "mcpServers": {
    "xcode-mcp-server-drewster99": {
      "command": "uvx",
      "args": ["will"],
      "env": {
        "XCODEMCP_ALLOWED_FOLDERS": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • macOS - This server only works on macOS - Xcode - Xcode must be installed - Python 3.10+ - For running the server (uvx will fetch a compatible Python automatically if your system Python is older)
VariableDescriptionRequired
XCODEMCP_ALLOWED_FOLDERSConfiguration value read at startup.Optional

Frequently asked questions

macOS is required, along with Xcode and Python 3.10+. The `uv` package manager is also needed for installation.