XcodeProj MCP Server
An MCP server for manipulating Xcode project files (.xcodeproj) using Swift. Requires Docker and macOS.
xcodeproj-mcp-server
A Model Context Protocol (MCP) server for manipulating Xcode project files (.xcodeproj) using Swift.

Overview
xcodeproj-mcp-server is an MCP server that provides tools for programmatically manipulating Xcode project files. It leverages the tuist/xcodeproj library for reliable project file manipulation and implements the Model Context Protocol using the swift-sdk.
This server enables AI assistants and other MCP clients to:
- Create new Xcode projects
- Manage targets, files, and build configurations
- Inspect project structure including groups and hierarchies
- Modify build settings
- Add dependencies and frameworks
- Automate common Xcode project tasks
Use Cases
Project Creation and Setup
- Create projects from scratch: Generate new Xcode projects with custom configurations, bundle identifiers, and organization settings without opening Xcode
- Multi-target project scaffolding: Set up complex projects with multiple apps, frameworks, tests, and extensions in a single automated workflow
Development Workflow Automation
- Add new files to targets: After creating a new Swift file, automatically add it to the appropriate target's source files for compilation
- Add folder references: Include external resource folders or asset directories as synchronized folder references in your project, automatically reflecting any file system changes
- Add build phases: Integrate code formatters, linters, or custom build scripts into your targets (e.g., SwiftLint, SwiftFormat execution phases)
- Create frameworks and app extensions: Quickly scaffold new framework targets or app extensions for modularizing your codebase
- Add Widget Extensions: Automatically create and embed Widget Extension targets with proper configuration for iOS home screen widgets
Project Configuration Management
- Automate Info.plist setup: Programmatically configure Info.plist settings, entitlements, and provisioning profiles for different targets
- Build configuration management: Set up different build configurations with appropriate compiler flags, bundle identifiers, and deployment targets
- Dependency management: Add system frameworks, link libraries, and configure target dependencies without manual Xcode navigation
How to set up for Claude Desktop and Claude Code
Prerequisites
- Docker
- macOS (for running Xcode projects)
Installation using Docker
Pull the pre-built Docker image from GitHub Container Registry:
docker pull ghcr.io/giginet/xcodeproj-mcp-server
Configuration for Claude Code
claude mcp add xcodeproj -- docker run --pull=always --rm -i -v $PWD:/workspace ghcr.io/giginet/xcodeproj-mcp-server:latest /workspace
We need to mount the current working directory ($PWD) to /workspace inside the container. This allows the server to access your Xcode projects.
Recommended settings
Enabling ENABLE_TOOL_SEARCH in .claude/settings.json activates dynamic MCP tool loading. This prevents unused MCP tools from consuming context.
{
"env": {
"ENABLE_TOOL_SEARCH": "1"
}
}
Configuration for Claude Desktop
Add the following to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"xcodeproj": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-v",
"${workspaceFolder}:/workspace",
"ghcr.io/giginet/xcodeproj-mcp-server",
"/workspace"
]
}
}
}
Path Security
The MCP server now supports restricting file operations to a specific base directory. When you provide a base path as a command-line argument:
- All
project_pathand file path parameters will be resolved relative to this base path - Absolute paths are validated to ensure they're within the base directory
- Any attempt to access files outside the base directory will result in an error
This is especially useful when running the server in Docker containers or other sandboxed environments.
Available Tools
Project Management
-
create_xcodeproj- Create a new Xcode project- Parameters:
project_name,path,organization_name,bundle_identifier
- Parameters:
-
list_targets- List all targets in a project- Parameters:
project_path
- Parameters:
-
list_build_configurations- List all build configurations- Parameters:
project_path
- Parameters:
-
list_files- List all files in a specific target- Parameters:
project_path,target_name
- Parameters:
-
list_groups- List all groups in the project with hierarchical paths, optionally filtered by target- Parameters:
project_path,target_name(optional)
- Parameters:
File Operations
-
add_file- Add a file to the project- Parameters:
project_path,file_path,target_name,group_path
- Parameters:
-
remove_file- Remove a file from the project- Parameters:
project_path,file_path
- Parameters:
-
move_file- Move or rename a file within the project- Parameters:
project_path,source_path,destination_path
- Parameters:
-
add_synchronized_folder- Add a synchronized folder reference to the project- Parameters:
project_path,folder_path,group_name,target_name
- Parameters:
-
create_group- Create a new group in the project navigator- Parameters:
project_path,group_name,parent_group_path
- Parameters:
Target Management
-
add_target- Create a new target- Parameters:
project_path,target_name,type,platform,bundle_identifier
- Parameters:
-
remove_target- Remove an existing target- Parameters:
project_path,target_name
- Parameters:
-
duplicate_target- Duplicate an existing target- Parameters:
project_path,source_target_name,new_target_name
- Parameters:
-
add_dependency- Add dependency between targets- Parameters:
project_path,target_name,dependency_name
- Parameters:
App Extension Management
-
add_app_extension- Add an App Extension target and embed it in a host app- Parameters:
project_path,extension_name,extension_type,host_target_name,bundle_identifier,platform(optional),deployment_target(optional) - Supported extension types:
widget,notification_service,notification_content,share,today,action,file_provider,intents,intents_ui,keyboard,photo_editing,document_provider,custom
- Parameters:
-
remove_app_extension- Remove an App Extension target and its embedding from the host app- Parameters:
project_path,extension_name
- Parameters:
Build Configuration
-
get_build_settings- Get build settings for a target- Parameters:
project_path,target_name,configuration_name
- Parameters:
-
set_build_setting- Modify build settings- Parameters:
project_path,target_name,setting_name,value,configuration_name
- Parameters:
-
add_framework- Add framework dependencies- Parameters:
project_path,target_name,framework_name,embed
- Parameters:
-
add_build_phase- Add custom build phases- Parameters:
project_path,target_name,phase_type,name,script
- Parameters:
Swift Package Management
-
add_swift_package- Add a Swift Package dependency to the project- Parameters:
project_path,package_url,requirement,target_name,product_name
- Parameters:
-
list_swift_packages- List all Swift Package dependencies in the project- Parameters:
project_path
- Parameters:
-
remove_swift_package- Remove a Swift Package dependency from the project- Parameters:
project_path,package_url,remove_from_targets
- Parameters:
License
This project is licensed under the MIT License.
Server Terkait
Scout Monitoring MCP
sponsorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Rust Docs Server
Fetches Rust crate documentation from docs.rs using the rustdoc JSON API.
XCF Xcode MCP Server
A Swift-based MCP server that integrates with Xcode to enhance AI development workflows.
Jolokia MCP Server
A JMX-HTTP bridge for interacting with Java applications using the Jolokia agent.
Cache Overflow
knowledge network for AI coding agents. Developers connect their agents to a shared pool of verified solutions — saving tokens, reducing debugging time, and getting better results. Solution authors earn when their work helps others.
Unity Code MCP Server
Powerful tool for the Unity Editor that gives AI Agents ability to perform any action using Unity Editor API, like modification of scripts, scenes, prefabs, assets, configuration and more.
BaseCreative MCP
A template for deploying a remote MCP server on Cloudflare Workers without authentication.
Figma (Oficial)
The Figma MCP server brings Figma directly into your workflow by providing important design information and context to AI agents generating code from Figma design files.
Tmux MCP Server
Provides persistent shell execution through tmux sessions.
@blockrun/mcp
Access 30+ AI models in Claude Code with zero API keys. One wallet, pay-per-request.
MCP Code Graph
Analyze and visualize code graphs using CodeGPT.