{"type":"mcp_server","name":"xcode-mcp-server","description":"This repository provides an Xcode Model Context Protocol (MCP) server, enabling AI assistants to interact with Xcode projects, manage simulators, and automate various development tasks. This repository provides an Xcode","category":"Developer Tools","language":"TypeScript","stars":380,"forks":9,"owner":"r-huijts","github_url":"https://github.com/r-huijts/xcode-mcp-server","homepage":null,"setup":"## Setup\n\n### 1. From Source\n\n1. Clone this repository:\n   ```bash\n   git clone https://github.com/r-huijts/xcode-mcp-server.git\n   cd xcode-mcp-server\n   ```\n\n2. Install dependencies:\n   ```bash\n   npm install\n   ```\n\n3. Set up environment variables:\n   ```bash\n   cp .env.example .env\n   ```\n   Edit `.env` and set `PROJECTS_BASE_DIR` to your Xcode projects directory.\n\n4. Build the project:\n   ```bash\n   npm run build\n   ```\n\nThen update your Claude configuration:\n\n```json\n{\n  \"mcpServers\": {\n    \"xcode\": {\n      \"command\": \"node\",\n      \"args\": [\n        \"/absolute/path/to/xcode-mcp-server/dist/index.js\"\n      ],\n      \"env\": {\n        \"PROJECTS_BASE_DIR\": \"/path/to/your/xcode/projects\"\n      }\n    }\n  }\n}\n```\n\n> **Note**: Replace `/path/to/your/xcode/projects` with the actual path to your Xcode projects directory.\n\nAfter updating the configuration, restart Claude Desktop for the changes to take effect.","tools":"## Available Tools\n\n\t\t1. `set_projects_base_dir` - Set the base directory for Xcode projects\n\t\t2. `set_project_path` - Set the active Xcode project\n\t\t3. `get_active_project` - Get information about the current project\n\t\t4. `read_file` - Read contents of project files\n\t\t5. `write_file` - Write or update project files\n\t\t6. `list_project_files` - List all files in the project\n\t\t7. `analyze_file` - Run static analysis on source files\n\t\t8. `build_project` - Build the project with specified configuration\n\t\t9. `run_tests` - Execute project tests\n\t\t10. `run_xcrun` - Execute Xcode command-line tools\n\t\t11. `compile_asset_catalog` - Compile asset catalogs\n\t\t12. `swift_package_update` - Update Swift package dependencies\n\t\t13. `list_simulators` - Get available iOS simulators\n\t\t14. `boot_simulator` - Start a simulator by UDID\n\t\t15. `shutdown_simulator` - Stop a running simulator\n\t\t16. `run_lldb` - Launch the LLDB debugger\n\t\t17. `trace_app` - Capture app performance traces","faq":null,"created_at":"2025-01-16T12:15:47+00:00","updated_at":"2025-03-28T17:32:13+00:00","source_url":"https://model-context-protocol.com/servers/xcode-mcp-server-ai-integration-automation","related_articles":[]}