xcode-mcp-server

xcode-mcp-server

1

The Xcode MCP Server is designed to facilitate interaction with Xcode through AI assistants, allowing users to perform actions such as building, running, and cleaning projects using natural language commands. Key features include project hierarchy management and build error retrieval, with security measures ensuring controlled access to files.

Xcode MCP Server

An MCP server for controlling and interacting with Xcode via AI assistants like Claude.

Features

  • Get project hierarchy
  • Build and run projects
  • Retrieve build errors
  • Get runtime output (placeholder)
  • Clean projects

Security

  • Path-based security to prevent unauthorized access
  • Requires environment variable to specify allowed folders
  • All paths must be absolute, existing directories without '..' components

Setup

  1. Install dependencies using pip or uv.
  2. Configure Claude for Desktop with the MCP server.

Usage

  1. Open an Xcode project.
  2. Start Claude for Desktop.
  3. Use natural language to execute commands like build, run, or clean projects.

Limitations

  • Runtime output retrieval is pending
  • Simple file listing for project hierarchy
  • AppleScript syntax may need adjustments for different Xcode versions.