1. Conduid
  2. Developer Tools
  3. Xcode MCP Server.git
MCP server · Developer Tools

Xcode MCP Server.git

MCP Server implementation for Xcode integration

Unclaimed MIT last commit 10 months ago devtools
65Good

Scored 17 hours ago · breakdown

About Xcode MCP Server.git

Xcode MCP Server.git is an MCP server published by r-huijts in the Developer Tools category: mCP Server implementation for Xcode integration. Conduid read 69 tools from its source: add_file_to_project, add_project_to_workspace, add_swift_package, boot_simulator, build_spm_package, build_swift_package and 63 more. It is published to npm as xcode-mcp-server and starts with npx.

The repository has 385 stars and 27 forks, is licensed MIT, and its last commit was on 2 Feb 2026. Conduid has no tagged release on record for it. It passes all 5 static checks Conduid ran on the repository. Its topics include devtools.

Install

Claude Code
claude mcp add xcode-mcp-server-git -- npx -y xcode-mcp-server
npx
npx -y xcode-mcp-server
From source
git clone https://github.com/r-huijts/xcode-mcp-server.git

Tools (69)

add_file_to_projectAdds a file to the active Xcode project.
ParameterTypeDescription
createGroupsbooleanWhether to create intermediate groups if they don't exist (default: true)
filePath *stringPath to the file to add to the project
groupstringGroup path within the project to add the file to (e.g., 'MyApp/Models'). If not provided, will add to the root group.
targetNamestringName of the target to add the file to. If not provided, will try to add to the first target.
add_project_to_workspaceAdds an existing project to the active workspace.
ParameterTypeDescription
projectPath *stringPath to the project to add to the workspace
workspacePathstringPath to the workspace. If not provided, uses the active workspace.
add_swift_packageAdds a Swift Package dependency to the active project. Note: Your project must already be set up for Swift Package Manager (must have a Package.swift file). If you haven't initialized SPM yet, use the init_swift_package tool first.
ParameterTypeDescription
productNamestringSpecific product name to add from the package
skipUpdatebooleanSkip running 'package update' after adding the dependency
url *stringThe URL of the Swift package to add
versionstringVersion requirement (e.g., 'exact: 1.0.0', 'from: 1.0.0', 'branch: main')
boot_simulatorBoot an iOS simulator by UDID or name
ParameterTypeDescription
namestringThe name of the simulator to boot (will use the most recent iOS version if multiple match)
runtimestringWhen using name, optionally specify the iOS runtime version (e.g., 'iOS 16')
udidstringThe UDID of the simulator to boot
build_spm_packageBuilds a Swift Package Manager package directly using 'swift build' instead of Xcode.
ParameterTypeDescription
configurationstringBuild configuration to use (default: debug)
packagePathstringOptional path to the directory containing Package.swift. If not provided, uses the active project directory.
targetstringSpecific target to build. If not provided, builds all targets.
verbosebooleanWhether to show verbose output (default: false)
build_swift_packageBuilds a Swift Package using Swift Package Manager.
ParameterTypeDescription
buildTestsbooleanAlso build test targets
configurationstringBuild configuration (default: debug)
jobsnumberNumber of parallel build jobs
productstringBuild a specific product
showBinPathbooleanShow binary output path
targetstringBuild a specific target
verbosebooleanShow verbose output
change_directoryChanges the active directory for relative path operations.
ParameterTypeDescription
directoryPath *stringPath to the directory to set as active. Supports absolute paths, paths relative to the current active directory, and ~ for home directory.
check_cocoapodsChecks if the active project uses CocoaPods and returns setup information.
ParameterTypeDescription
includeOutdatedbooleanCheck for outdated pods and include update information. Default: false
check_file_existsChecks if a file or directory exists at the specified path.
ParameterTypeDescription
path *stringPath to check. Can be absolute, relative to active directory, or use ~ for home directory.
clean_swift_packageCleans the build artifacts of a Swift Package.
ParameterTypeDescription
purgeCachebooleanAlso purge the global cache
resetbooleanReset the complete build directory
compile_asset_catalogCompiles an asset catalog (.xcassets) using actool
ParameterTypeDescription
appIconstringName of the app icon set to include
catalogPath *stringPath to the asset catalog (.xcassets directory)
minDeploymentTargetstringMinimum deployment target version (default: 14.0)
outputDir *stringDirectory where compiled assets should be placed
platformstringTarget platform (default: iphoneos)
targetDevicesarrayTarget devices (default: ['iphone', 'ipad'])
copy_fileCopies a file or directory to a new location within allowed directories.
ParameterTypeDescription
destination *stringDestination path. Can be absolute, relative to active directory, or use ~ for home directory.
recursivebooleanIf true, copy directories recursively
source *stringSource path. Can be absolute, relative to active directory, or use ~ for home directory.
create_directoryCreates a new directory within allowed directories.
ParameterTypeDescription
path *stringPath to create. Can be absolute, relative to active directory, or use ~ for home directory.
create_workspaceCreates a new Xcode workspace and optionally adds existing projects to it.
ParameterTypeDescription
name *stringName of the workspace to create
outputDirectory *stringDirectory where the workspace will be created
projectsarrayOptional array of project paths to add to the workspace
setAsActivebooleanWhether to set the new workspace as the active project (default: true)
create_xcode_projectCreates a new Xcode project using a template.
ParameterTypeDescription
includeTestsbooleanWhether to include unit tests (default: true)
includeUITestsbooleanWhether to include UI tests (default: false)
languagestringProgramming language to use (default: swift)
name *stringName of the project to create
organizationIdentifierstringOrganization identifier (e.g., 'com.example') to use in the project
organizationNamestringOrganization name to use in the project
outputDirectory *stringDirectory where the project will be created
setAsActivebooleanWhether to set the new project as the active project (default: true)
template *stringTemplate to use for the project
delete_fileDeletes a file or directory within allowed directories.
ParameterTypeDescription
path *stringPath to delete. Can be absolute, relative to active directory, or use ~ for home directory.
recursivebooleanIf true, delete directories recursively
detect_active_projectAttempts to automatically detect the active Xcode project.
ParameterTypeDescription
forceRedetectbooleanIf true, always try to detect the project even if one is already set (default: false)
dump_swift_packageDumps the Package.swift manifest as JSON.
edit_package_swiftDirectly edit the Package.swift file of the active SPM project. This is useful for making changes that aren't supported by the other SPM tools.
ParameterTypeDescription
content *stringThe new content for the Package.swift file
createBackupbooleanWhether to create a backup of the original file (default: true)
packagePathstringOptional path to the Package.swift file. If not provided, uses the active project's Package.swift.
export_archiveExport an Xcode archive for distribution (App Store, Ad Hoc, Enterprise, Development)
ParameterTypeDescription
archivePath *stringPath to the .xcarchive file to export
compileBitcodebooleanWhether to compile Bitcode. Default is true for App Store, false otherwise.
exportPath *stringDirectory where exported IPA and other files will be placed
method *stringDistribution method
provisioningProfilesobjectDictionary mapping bundle identifiers to provisioning profile names.
signingCertificatestringSigning certificate to use. If not provided, will try to use the default certificate for the selected method.
stripSwiftSymbolsbooleanWhether to strip Swift symbols. Default is true.
teamIdstringTeam ID for code signing. If not provided, will try to use the default team.
find_filesSearches for files matching a pattern in a directory.
ParameterTypeDescription
maxDepthnumberMaximum directory depth to search
path *stringDirectory to search in. Can be absolute, relative to active directory, or use ~ for home directory.
pattern *stringGlob pattern to match files (e.g., '*.swift' or '**/*.json')
showHiddenbooleanIf true, include hidden files in the search
find_projectsFinds Xcode projects in the specified directory.
ParameterTypeDescription
directorystringDirectory to search in. Defaults to projects base directory.
includeSPMbooleanIf true, include Swift Package Manager projects
includeWorkspacesbooleanIf true, include .xcworkspace files
generate_icon_setGenerate an app icon set from a source image
ParameterTypeDescription
outputPath *stringPath where to create the AppIcon.appiconset directory
platformstringTarget platform (default: ios)
sourceImage *stringPath to the source image (should be at least 1024x1024)
generate_swift_docsGenerates documentation for a Swift Package using DocC.
ParameterTypeDescription
hostingBasePathstringBase path for hosting the documentation (e.g., '/docs')
openInBrowserbooleanOpen the generated documentation in a browser after generation (default: false)
outputPath *stringDirectory where the generated documentation will be saved
transformForStaticHostingbooleanTransform the documentation for static hosting (default: true)
get_active_projectRetrieves detailed information about the currently active Xcode project.
ParameterTypeDescription
detailedbooleanIf true, include additional detailed project information
get_current_directoryReturns the current active directory.
get_file_infoGets detailed information about a file or directory.
ParameterTypeDescription
path *stringPath to the file or directory. Can be absolute, relative to active directory, or use ~ for home directory.
get_package_infoGets detailed information about a Swift Package Manager package.
ParameterTypeDescription
packagePathstringOptional path to the directory containing Package.swift. If not provided, uses the active project directory.
get_project_configurationRetrieves configuration details for the active project, including schemes and targets.
get_xcode_infoGet information about Xcode installations on the system
init_swift_packageInitializes a new Swift Package Manager project in the current directory. Use this tool first if your project doesn't have a Package.swift file yet and you want to start using Swift packages.
ParameterTypeDescription
enableTestsbooleanEnable test targets (default: true)
namestringName for the package (defaults to directory name)
testingFrameworkstringTesting framework to use (xctest or swift-testing)
typestringType of package to create (library, executable, tool, build-tool-plugin, command-plugin, macro, or empty)
install_appInstall an app on a simulator
ParameterTypeDescription
appPath *stringPath to the .app bundle to install
udid *stringThe UDID of the simulator
launch_appLaunch an installed app on a simulator
ParameterTypeDescription
argsarrayArguments to pass to the app on launch
bundleId *stringBundle identifier of the app to launch
udid *stringThe UDID of the simulator
waitForDebuggerbooleanWait for a debugger to attach before starting the app
list_booted_simulatorsList all currently booted iOS simulators
list_directoryLists the contents of a directory, showing both files and subdirectories.
ParameterTypeDescription
formatstringFormat of the output: simple (names only) or detailed (with file information)
path *stringPath to the directory to list. Can be absolute, relative to active directory, or use ~ for home directory.
showHiddenbooleanIf true, include hidden files (starting with .)
list_installed_appsList all installed applications on a simulator
ParameterTypeDescription
udid *stringThe UDID of the simulator
list_project_filesLists all files within an Xcode project.
ParameterTypeDescription
fileTypestringOptional file extension filter.
projectPath *stringPath to the .xcodeproj directory of the project. Can be absolute, relative to active directory, or use ~ for home directory.
list_simulatorsList all available iOS simulators with filtering options
ParameterTypeDescription
filterNamestringFilter simulators by name (case-insensitive substring match)
filterRuntimestringFilter simulators by runtime (e.g., 'iOS 16')
filterStatestringFilter simulators by state
formatstringOutput format (json for raw data, parsed for structured data). Defaults to parsed.
move_fileMoves a file or directory to a new location within allowed directories.
ParameterTypeDescription
destination *stringDestination path. Can be absolute, relative to active directory, or use ~ for home directory.
source *stringSource path. Can be absolute, relative to active directory, or use ~ for home directory.
open_urlOpen a URL in a simulator
ParameterTypeDescription
udid *stringThe UDID of the simulator
url *stringThe URL to open
pod_deintegrateDeintegrate CocoaPods from the active project, removing all traces of CocoaPods.
pod_initGenerate a Podfile for the current project directory.
pod_installRuns 'pod install' in the active project directory to install CocoaPods dependencies.
ParameterTypeDescription
cleanInstallbooleanIgnore the contents of the project cache and force a full pod installation.
repoUpdatebooleanWhether to update the spec repositories before installation. Defaults to false.
verbosebooleanShow more debugging information during installation.
pod_outdatedShows outdated pods in the current project and their available updates.
ParameterTypeDescription
ignorePrereleasebooleanDon't consider prerelease versions to be updates. Defaults to true.
repoUpdatebooleanWhether to update the spec repositories before checking for outdated pods. Defaults to false.
pod_repo_updateUpdates the local clone of the CocoaPods spec repositories.
ParameterTypeDescription
silentbooleanShow nothing during update.
verbosebooleanShow more detailed output.
pod_updateRuns 'pod update' in the active project directory to update CocoaPods dependencies.
ParameterTypeDescription
cleanInstallbooleanIgnore the contents of the project cache and force a full pod installation.
excludePodsarrayOptional list of pods to exclude during update.
podsarrayOptional list of specific pods to update. If not provided, updates all pods.
repoUpdatebooleanWhether to update the spec repositories before updating pods. Defaults to true.
sourcesarrayOptional list of sources from which to update dependent pods.
pop_directoryPops a directory from the stack and changes to it.
push_directoryPushes the current directory onto a stack and changes to a new directory.
ParameterTypeDescription
directoryPath *stringPath to the directory to set as active. Supports absolute paths, paths relative to the current active directory, and ~ for home directory.
read_fileReads the contents of a file within the active project or allowed directories.
ParameterTypeDescription
asBinarybooleanIf true, read the file as binary and return base64-encoded content. Useful for images and other binary files.
encodingstringEncoding to use when reading the file (e.g., 'utf-8', 'latin1'). Default is 'utf-8'.
filePath *stringPath to the file to read. Can be absolute, relative to active directory, or use ~ for home directory.
remove_swift_packageRemoves a Swift Package dependency from the active project.
ParameterTypeDescription
confirm *booleanConfirmation to remove the package. Must be set to true.
url *stringThe URL of the Swift package to remove
reset_simulatorReset a simulator by erasing all content and settings
ParameterTypeDescription
confirm *booleanConfirmation to reset the simulator. Must be set to true.
udid *stringThe UDID of the simulator to reset
resolve_pathResolves a path, taking into account the active directory and current project.
ParameterTypeDescription
path *stringPath to resolve. Can be absolute, relative to active directory, or use ~ for home directory.
run_lldbLaunches the LLDB debugger with optional arguments
ParameterTypeDescription
argsstringArguments to pass to lldb
commandstringSingle LLDB command to execute
run_xcrunExecutes a specified Xcode tool via xcrun
ParameterTypeDescription
argsstringArguments to pass to the tool
tool *stringThe name of the Xcode tool to run
workingDirstringWorking directory to execute the command in
search_in_filesSearches for text content within files in a directory.
ParameterTypeDescription
caseSensitivebooleanIf true, perform a case-sensitive search
directory *stringDirectory to search in. Can be absolute, relative to active directory, or use ~ for home directory.
includeHiddenbooleanIf true, include hidden files in the search
isRegexbooleanIf true, treat searchText as a regular expression
maxResultsnumberMaximum number of results to return
pattern *stringFile pattern to match (e.g., '*.swift', '*.{js,ts}')
searchText *stringText or regular expression to search for within the files
set_project_pathSets the active Xcode project by specifying the path to its .xcodeproj directory.
ParameterTypeDescription
openInXcodebooleanIf true, also open the project in Xcode (default: false)
projectPath *stringPath to the .xcodeproj directory for the desired project. Supports ~ for home directory and environment variables.
setActiveDirectorybooleanIf true, also set the active directory to the project directory
set_projects_base_dirSets the base directory where your Xcode projects are stored.
ParameterTypeDescription
baseDir *stringPath to the directory containing your Xcode projects. Supports ~ for home directory and environment variables.
show_swift_dependenciesShows the resolved dependencies of a Swift Package.
ParameterTypeDescription
formatstringOutput format (default: text)
outputPathstringPath to save output to a file
verbosebooleanShow verbose output
shutdown_simulatorShutdown a simulator by UDID, or shutdown all running simulators
ParameterTypeDescription
allbooleanShutdown all running simulators
udidstringThe UDID of the simulator to shutdown
swift_package_commandExecutes Swift Package Manager commands in the active project directory.
ParameterTypeDescription
command *stringThe SPM command to execute (e.g., 'build', 'test', 'clean', 'resolve')
configurationstringBuild configuration ('debug' or 'release')
extraArgsstringAdditional arguments to pass to the command
switch_xcodeSwitch the active Xcode version
ParameterTypeDescription
versionstringVersion of Xcode to use (e.g., '14.3'). Will use the first matching version found.
xcodePathstringPath to the Xcode.app to use. If not provided, available Xcode installations will be listed.
take_screenshotTake a screenshot of a simulator
ParameterTypeDescription
outputPath *stringPath where to save the screenshot (PNG format)
udid *stringThe UDID of the simulator
terminate_appTerminate a running app on a simulator
ParameterTypeDescription
bundleId *stringBundle identifier of the app to terminate
udid *stringThe UDID of the simulator
test_spm_packageRuns tests for a Swift Package Manager package directly using 'swift test' instead of Xcode.
ParameterTypeDescription
filterstringFilter to run a subset of tests. Format: 'TestTarget[.TestClass[.testMethod]]'.
packagePathstringOptional path to the directory containing Package.swift. If not provided, uses the active project directory.
parallelbooleanWhether to run tests in parallel (default: true)
verbosebooleanWhether to show verbose output (default: false)
test_swift_packageTests a Swift Package using Swift Package Manager.
ParameterTypeDescription
codeCoveragebooleanEnable code coverage
configurationstringBuild configuration (default: debug)
filterstringRun tests matching regular expression (e.g., 'MyTests.MyTestCase/testExample')
listTestsbooleanList all available tests instead of running them
numWorkersnumberNumber of parallel test workers
outputPathstringPath for XUnit test results output
parallelbooleanRun tests in parallel
skipstringSkip tests matching regular expression
trace_appCaptures a performance trace of an application using xctrace
ParameterTypeDescription
appPath *stringPath to the application to trace
durationnumberDuration of the trace in seconds (default: 10)
outputPathstringPath where to save the trace file (default: app_trace.trace in active directory)
startSuspendedbooleanStart the application in a suspended state
templatestringTrace template to use (default: 'Time Profiler')
update_swift_packageUpdates the dependencies of your Swift project using Swift Package Manager.
ParameterTypeDescription
branchstringThe branch to resolve at (only applies when specificPackage is provided)
revisionstringThe revision to resolve at (only applies when specificPackage is provided)
specificPackagestringOnly update this specific package (leave empty to update all)
versionstringThe version to resolve at (only applies when specificPackage is provided)
validate_appValidate an app for App Store submission using altool
ParameterTypeDescription
apiIssuerstringAPI Key Issuer ID (required if using apiKey)
apiKeystringAPI Key ID (alternative to username/password)
apiKeyPathstringPath to the API Key .p8 file (required if using apiKey)
ipaPath *stringPath to the .ipa file to validate
password *stringApp-specific password for the App Store Connect account
username *stringApp Store Connect username (usually an email)
write_fileWrites or updates the content of a file within the active project or allowed directories.
ParameterTypeDescription
content *stringThe content to be written to the file.
createIfMissingbooleanIf true, creates the file if it doesn't exist.
createPathbooleanIf true, creates the directory path if it doesn't exist.
encodingstringEncoding to use when writing the file (e.g., 'utf-8', 'latin1'). Default is 'utf-8'.
filePathstringAlias for 'path' parameter (deprecated)
fromBase64booleanIf true, decode the content from base64 before writing. Useful for binary files.
path *stringPath to the file to update or create. Can be absolute, relative to active directory, or use ~ for home directory.

Security checks

Static checks derived from the repository yesterday. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 2.1K words.
  • ✓License declaredThe repository declares the MIT license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by package-lock.json.
  • ✓No dynamic code executionScanned 16 source files and found no eval, dynamic Function or shell execution.

1 check has not been run yet.

What the source scan found

Transport
stdiosrc/server.ts:2
Starts other programs
No calls that start other programs
Outbound network calls
No outbound network calls
Writes or deletes files
34 callssrc/tools/file/index.ts:225, src/tools/file/index.ts:237, src/tools/file/index.ts:246
Lockfile
package-lock.json

Pattern matches on the source text of 16 files: places to read, not proof of what the code does at run time.

README

The repository's README runs to about 2.1K words, fetched yesterday. The original in the repository is authoritative.

Read full README
Questions

About Xcode MCP Server.git

How do I install Xcode MCP Server.git?

In Claude Code, run claude mcp add xcode-mcp-server-git -- npx -y xcode-mcp-server. Other MCP clients take the command after "--" in their server configuration.

Is Xcode MCP Server.git safe to use with an AI agent?

Its trust score is 65 out of 100 (good). It passes all 5 static checks Conduid ran on the repository. Conduid's scan of 16 source files found that it serves MCP over stdio and writes or deletes files (34 calls). Its dependencies are pinned by package-lock.json. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Xcode MCP Server.git still maintained?

The last commit was 10 months ago and 1 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.

What tools does Xcode MCP Server.git provide?

Conduid read 69 tools from the source: add_file_to_project, add_project_to_workspace, add_swift_package, boot_simulator, build_spm_package, build_swift_package, change_directory, check_cocoapods and 61 more. 61 of them publish their parameters, listed under Tools above.

What license is Xcode MCP Server.git released under?

The repository declares the MIT license.