MCP server · Audited from source
Xcode MCP server
by r-huijts/xcode-mcp-serverMIT licenceAudited 2 Oct 2026 · source 6c022dd495b1
Is it safe? No — BLOCK, grade D (61/100). It exposes 76 tools: 51 read, 21 write and 4 destructive. The audit recorded 13 findings (0 critical, 5 high, 2 medium, 6 low). Maintainer's description: MCP Server implementation for Xcode integration
Cite
Cite this page
ModelsAtlas. “Xcode MCP server (r-huijts/xcode-mcp-server)”. Retrieved 2 Oct 2026. https://modelsatlas.com/mcp/r-huijts/xcode-1
Why this is BLOCK. The audit found 0 critical and 5 high findings; the most severe is Privilege escalation / persistence at setup.sh:72. Each finding is listed below with its file and line.
Why this page is still public. People search for this server by name. Hiding it would leave them with the README's word alone; here they see what the code does. We list it so you can decide, and we do not show connect commands for BLOCK servers.
3 MCP servers are called Xcode. You are viewing r-huijts/xcode-mcp-server. Compare all 3 →
- r-huijts/xcode-mcp-server★ 384✕BLOCK
- lapfelix/xcodemcp★ 59✕BLOCK
- polarvista/xcode-mcp-server★ 53✕BLOCK
Trust audit
Audit 0.4.1 · full source read 2 Oct 2026
13 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemDeclared8 observations
- NetworkNone observedNothing seen in the source
- ShellNone observedNothing seen in the source
- DependenciesNot pinnedSome ranges float
- SecretsNone foundNo keys in source
Findings (13)
Sorted by severity
HIGHPrivilege escalation / persistencepriv.escalate · setup.sh:72
echo -e " ${YELLOW}sudo gem install cocoapods${NC}"- Why
- asks for elevated privileges
- Fix
- —
HIGHPrivilege escalation / persistencepriv.escalate · setup.sh:80
sudo gem install cocoapods || { echo -e "${RED}Failed to install CocoaPods.${NC}"; exit 1; }- Why
- asks for elevated privileges
- Fix
- —
HIGHPrivilege escalation / persistencepriv.escalate · setup.sh:93
echo -e " ${YELLOW}sudo gem pristine ffi --version 1.15.5${NC}"- Why
- asks for elevated privileges
- Fix
- —
HIGHPrivilege escalation / persistencepriv.escalate · setup.sh:97
sudo gem pristine ffi --version 1.15.5 || { echo -e "${YELLOW}Failed to fix ffi gem. You may need to run the command manually.${NC}"; }- Why
- asks for elevated privileges
- Fix
- —
HIGHPrivilege escalation / persistencepriv.escalate · src/tools/cocoapods/index.ts:93
` sudo gem install cocoapods\n\n` +
- Why
- asks for elevated privileges
- Fix
- —
MEDIUMPrompt injectionscope.undeclared_system · <declared scope>
system use found in code, not declared in the description
- Why
- the description does not admit a capability the code has
- Fix
- declare system use in the description, or remove it
MEDIUMFilesystem / pathmcp.destructive_tools
delete_file, remove_swift_package, reset_simulator, terminate_app
- Why
- 4 tool(s) can delete or overwrite
- Fix
- prefer a read-only mode or scoped tokens; the page states the blast radius
LOWFilesystem / pathfs.traversal · src/tools/build/index.ts:4
import { XcodeServer } from "../../server.js";- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/tools/build/index.ts:5
import { ProjectNotFoundError, XcodeServerError, CommandExecutionError, PathAccessError } from "../../utils/errors.js";- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/tools/build/index.ts:6
import { getProjectInfo, getWorkspaceInfo } from "../../utils/project.js";- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/tools/build/index.ts:7
import { runExecFile } from "../../utils/execFile.js";- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/tools/cocoapods/index.ts:4
import { XcodeServer } from "../../server.js";- Why
- No further detail recorded for this rule.
- Fix
- —
LOWSupply chainsupply.unpinned · package.json
@modelcontextprotocol/sdk, @types/glob, glob, zod, dotenv, @types/node, typescript
- Why
- 7 dependency range(s) float
- Fix
- pin exact versions or ship a lockfile
Tools it exposes
76 declared in source · 4 destructive
4 tools can delete or overwrite. An agent that can be talked into calling a tool can be talked into calling this one, so give it a token scoped to what you need.
| Tool | What it does | Risk |
|---|---|---|
delete_file | Deletes a file or directory within allowed directories. | destructive |
remove_swift_package | Removes a Swift Package dependency from the active project. | destructive |
reset_simulator | Reset a simulator by erasing all content and settings | destructive |
terminate_app | Terminate a running app on a simulator | destructive |
add_file_to_project | Adds a file to the active Xcode project. | write |
add_project_to_workspace | Adds an existing project to the active workspace. | write |
add_swift_package | Adds 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 | write |
create_directory | Creates a new directory within allowed directories. | write |
create_workspace | Creates a new Xcode workspace and optionally adds existing projects to it. | write |
create_xcode_project | Creates a new Xcode project using a template. | write |
edit_package_swift | Directly edit the Package.swift file of the active SPM project. This is useful for making changes that aren | write |
generate_icon_set | Generate an app icon set from a source image | write |
install_app | Install an app on a simulator | write |
move_file | Moves a file or directory to a new location within allowed directories. | write |
pod_install | Runs | write |
pod_repo_update | Updates the local clone of the CocoaPods spec repositories. | write |
pod_update | Runs | write |
push_directory | Pushes the current directory onto a stack and changes to a new directory. | write |
run_lldb | Launches the LLDB debugger with optional arguments | write |
run_tests | Executes tests for the active Xcode project. | write |
run_xcrun | Executes a specified Xcode tool via xcrun | write |
set_project_path | Sets the active Xcode project by specifying the path to its .xcodeproj directory. | write |
set_projects_base_dir | Sets the base directory where your Xcode projects are stored. | write |
update_swift_package | Updates the dependencies of your Swift project using Swift Package Manager. | write |
write_file | Writes or updates the content of a file within the active project or allowed directories. | write |
analyze_file | Analyzes a source file for potential issues using Xcode | read |
archive_project | Archives the active Xcode project for distribution. | read |
boot_simulator | Boot an iOS simulator by UDID or name | read |
build_project | Builds the active Xcode project using the specified configuration and scheme. | read |
build_spm_package | Builds a Swift Package Manager package directly using | read |
build_swift_package | Builds a Swift Package using Swift Package Manager. | read |
change_directory | Changes the active directory for relative path operations. | read |
check_cocoapods | Checks if the active project uses CocoaPods and returns setup information. | read |
check_file_exists | Checks if a file or directory exists at the specified path. | read |
clean_project | Cleans the build directory for the active Xcode project. | read |
clean_swift_package | Cleans the build artifacts of a Swift Package. | read |
compile_asset_catalog | Compiles an asset catalog (.xcassets) using actool | read |
copy_file | Copies a file or directory to a new location within allowed directories. | read |
detect_active_project | Attempts to automatically detect the active Xcode project. | read |
dump_swift_package | Dumps the Package.swift manifest as JSON. | read |
export_archive | Export an Xcode archive for distribution (App Store, Ad Hoc, Enterprise, Development) | read |
find_files | Searches for files matching a pattern in a directory. | read |
find_projects | Finds Xcode projects in the specified directory. | read |
generate_swift_docs | Generates documentation for a Swift Package using DocC. | read |
get_active_project | Retrieves detailed information about the currently active Xcode project. | read |
get_current_directory | Returns the current active directory. | read |
get_file_info | Gets detailed information about a file or directory. | read |
get_package_info | Gets detailed information about a Swift Package Manager package. | read |
get_project_configuration | Retrieves configuration details for the active project, including schemes and targets. | read |
get_xcode_info | Get information about Xcode installations on the system | read |
init_swift_package | Initializes a new Swift Package Manager project in the current directory. Use this tool first if your project doesn | read |
launch_app | Launch an installed app on a simulator | read |
list_available_destinations | Lists available build destinations for the active Xcode project or workspace. | read |
list_available_schemes | Lists all available schemes in the active Xcode project or workspace. | read |
list_booted_simulators | List all currently booted iOS simulators | read |
list_directory | Lists the contents of a directory, showing both files and subdirectories. | read |
list_installed_apps | List all installed applications on a simulator | read |
list_project_files | Lists all files within an Xcode project. | read |
list_simulators | List all available iOS simulators with filtering options | read |
open_url | Open a URL in a simulator | read |
pod_deintegrate | Deintegrate CocoaPods from the active project, removing all traces of CocoaPods. | read |
pod_init | Generate a Podfile for the current project directory. | read |
pod_outdated | Shows outdated pods in the current project and their available updates. | read |
pop_directory | Pops a directory from the stack and changes to it. | read |
read_file | Reads the contents of a file within the active project or allowed directories. | read |
resolve_path | Resolves a path, taking into account the active directory and current project. | read |
search_in_files | Searches for text content within files in a directory. | read |
show_swift_dependencies | Shows the resolved dependencies of a Swift Package. | read |
shutdown_simulator | Shutdown a simulator by UDID, or shutdown all running simulators | read |
swift_package_command | Executes Swift Package Manager commands in the active project directory. | read |
switch_xcode | Switch the active Xcode version | read |
take_screenshot | Take a screenshot of a simulator | read |
test_spm_package | Runs tests for a Swift Package Manager package directly using | read |
test_swift_package | Tests a Swift Package using Swift Package Manager. | read |
trace_app | Captures a performance trace of an application using xctrace | read |
validate_app | Validate an app for App Store submission using altool | read |
Safer alternatives
We could not match this server to a job, so we cannot suggest a like-for-like alternative. Read-only servers are the least-privilege place to start.
Audit history
- ✕BLOCK D 61 / 100
First audit ·
6c022dd495b1
README badge
Badges show the current verdict, BLOCK included
A badge cannot be hidden by the maintainer while the verdict is BLOCK. Fix the findings, push, and the re-audit updates it.
Questions about Xcode MCP server
What is the Xcode MCP server?
What tools does Xcode expose?
Is Xcode safe to connect to an agent?
What credentials does Xcode need?
How does Xcode run?
How current is this page?
Which Xcode MCP server is the right one?
I already installed Xcode. What should I do?
Can the verdict change?
Sources
- r-huijts/xcode-mcp-server on GitHub — the source we read, its licence, stars and activityObserved · 2 Oct 2026
- ModelsAtlas trust audit — BLOCK verdict for commit 6c022dd495b1Observed · 2 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What is the Xcode MCP server?
- What tools does Xcode expose?
- Is Xcode safe to connect to an agent?