xcode
MCP server for Xcode - enables AI assistants to create, build, test, and manage iOS/macOS projects programmatically
claude mcp add --transport stdio ebowwa-xcode-mcp node /path/to/xcode-mcp/dist/index.js
How to use
The Xcode MCP Server exposes a range of programmatic tools that let an AI assistant or automation orchestrate Xcode projects from creation through deployment. It provides capabilities to create new Xcode projects with SwiftUI templates, build projects, run tests, archive applications for distribution, and manage project schemes. It also offers file operations such as writing Swift files, modifying Info.plist entries, creating directories, and reading files. In addition, the server can manage iOS/macOS simulators—listing available simulators, booting or shutting them down, installing and launching apps, and capturing screenshots. When integrated with Claude Desktop or similar tooling, you can invoke dedicated commands like xcode_create_project, xcode_build_project, xcode_test_project, xcode_archive_project, and xcode_list_simulators to perform these tasks programmatically.
How to install
Prerequisites:
- macOS with Xcode installed and the Xcode command line tools
- Node.js 16.x or higher
- Git
Installation steps:
- Clone the MCP server repository:
git clone https://github.com/yourusername/xcode-mcp.git
cd xcode-mcp
- Install dependencies:
npm install
- Build the project (if applicable):
npm run build
- Run the server in development or production mode:
npm run dev
- Configure Claude Desktop to point to the MCP server using the provided path to dist/index.js in the configuration.
{"mcpServers": {"xcode-mcp": {"command": "node", "args": ["/path/to/xcode-mcp/dist/index.js"], "env": {}}}}
Additional notes
Environment tips:
- Ensure Xcode and its command line tools are installed and accessible from the shell used to run the MCP server.
- If simulators do not appear, run xcode-select --install and verify Xcode command line tools availability.
- Check logs for issues at the configured log location (e.g., ~/Library/Logs/Claude/mcp-server-xcode-mcp.log) and restart Claude Desktop after configuration changes.
- The MCP server relies on macOS permissions for filesystem and simulator access; ensure adequate user permissions.
- You can customize environment variables in the mcp_config to pass API keys, paths, or feature flags as needed.
Related MCP Servers
local -gateway
Aggregate multiple MCP servers into a single endpoint with web UI, OAuth 2.1, and profile-based tool management
appstore-connect
A Model Context Protocol (MCP) server for Apple's App Store Connect API
FocusRelayMCP
Talk to your OmniFocus tasks. An OmniFocus MCP server that lets AI assistants query your tasks, projects, and tags using natural language—no more clicking through endless lists.
openapi-to
Transform OpenAPI specifications into production-ready MCP servers with AI-powered evaluation and enhancement. Leverages LLMs to analyze, improve, and generate Model Context Protocol implementations from your existing API documentation.
cadre-ai
Your AI agent squad for Claude Code. 17 specialized agents, persistent memory, desktop automation, and a common sense engine.
xc
XC-MCP delivers an intelligent MCP server for Xcode tooling with progressive disclosure and caching to prevent token overflow. It speeds workflows and boosts reliability in development 🐙