Live survey304 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Audited from source

Xcode MCP server

by r-huijts/xcode-mcp-serverMIT licenceAudited 2 Oct 2026 · source 6c022dd495b1

npm xcode-mcp-server 1.0.3stdio★ 384
✕BLOCKGrade D · 61/100 · 2 Oct 2026 · 6c022dd

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

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
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 →

Trust audit

Audit 0.4.1 · full source read 2 Oct 2026

Trust score61/100✕BLOCK D
0 critical5 high2 medium6 low0 info

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
F-06 Privilege escalation / persistenceCWE-269 · CWE-250Layer L1
echo -e "    ${YELLOW}sudo gem install cocoapods${NC}"
Why
asks for elevated privileges
Fix
—
HIGHPrivilege escalation / persistencepriv.escalate · setup.sh:80
F-06 Privilege escalation / persistenceCWE-269 · CWE-250Layer L1
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
F-06 Privilege escalation / persistenceCWE-269 · CWE-250Layer L1
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
F-06 Privilege escalation / persistenceCWE-269 · CWE-250Layer L1
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
F-06 Privilege escalation / persistenceCWE-269 · CWE-250Layer L1
`   sudo gem install cocoapods\n\n` +
Why
asks for elevated privileges
Fix
—
MEDIUMPrompt injectionscope.undeclared_system · <declared scope>
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
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
F-05 Filesystem / pathCWE-22 · CWE-59Layer L3
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
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import { XcodeServer } from "../../server.js";
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · src/tools/build/index.ts:5
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
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
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
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
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import { runExecFile } from "../../utils/execFile.js";
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · src/tools/cocoapods/index.ts:4
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import { XcodeServer } from "../../server.js";
Why
No further detail recorded for this rule.
Fix
—
LOWSupply chainsupply.unpinned · package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@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

51 read21 write4 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.

ToolWhat it doesRisk
delete_fileDeletes a file or directory within allowed directories.destructive
remove_swift_packageRemoves a Swift Package dependency from the active project.destructive
reset_simulatorReset a simulator by erasing all content and settingsdestructive
terminate_appTerminate a running app on a simulatordestructive
add_file_to_projectAdds a file to the active Xcode project.write
add_project_to_workspaceAdds an existing project to the active workspace.write
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 havenwrite
create_directoryCreates a new directory within allowed directories.write
create_workspaceCreates a new Xcode workspace and optionally adds existing projects to it.write
create_xcode_projectCreates a new Xcode project using a template.write
edit_package_swiftDirectly edit the Package.swift file of the active SPM project. This is useful for making changes that arenwrite
generate_icon_setGenerate an app icon set from a source imagewrite
install_appInstall an app on a simulatorwrite
move_fileMoves a file or directory to a new location within allowed directories.write
pod_installRunswrite
pod_repo_updateUpdates the local clone of the CocoaPods spec repositories.write
pod_updateRunswrite
push_directoryPushes the current directory onto a stack and changes to a new directory.write
run_lldbLaunches the LLDB debugger with optional argumentswrite
run_testsExecutes tests for the active Xcode project.write
run_xcrunExecutes a specified Xcode tool via xcrunwrite
set_project_pathSets the active Xcode project by specifying the path to its .xcodeproj directory.write
set_projects_base_dirSets the base directory where your Xcode projects are stored.write
update_swift_packageUpdates the dependencies of your Swift project using Swift Package Manager.write
write_fileWrites or updates the content of a file within the active project or allowed directories.write
analyze_fileAnalyzes a source file for potential issues using Xcoderead
archive_projectArchives the active Xcode project for distribution.read
boot_simulatorBoot an iOS simulator by UDID or nameread
build_projectBuilds the active Xcode project using the specified configuration and scheme.read
build_spm_packageBuilds a Swift Package Manager package directly usingread
build_swift_packageBuilds a Swift Package using Swift Package Manager.read
change_directoryChanges the active directory for relative path operations.read
check_cocoapodsChecks if the active project uses CocoaPods and returns setup information.read
check_file_existsChecks if a file or directory exists at the specified path.read
clean_projectCleans the build directory for the active Xcode project.read
clean_swift_packageCleans the build artifacts of a Swift Package.read
compile_asset_catalogCompiles an asset catalog (.xcassets) using actoolread
copy_fileCopies a file or directory to a new location within allowed directories.read
detect_active_projectAttempts to automatically detect the active Xcode project.read
dump_swift_packageDumps the Package.swift manifest as JSON.read
export_archiveExport an Xcode archive for distribution (App Store, Ad Hoc, Enterprise, Development)read
find_filesSearches for files matching a pattern in a directory.read
find_projectsFinds Xcode projects in the specified directory.read
generate_swift_docsGenerates documentation for a Swift Package using DocC.read
get_active_projectRetrieves detailed information about the currently active Xcode project.read
get_current_directoryReturns the current active directory.read
get_file_infoGets detailed information about a file or directory.read
get_package_infoGets detailed information about a Swift Package Manager package.read
get_project_configurationRetrieves configuration details for the active project, including schemes and targets.read
get_xcode_infoGet information about Xcode installations on the systemread
init_swift_packageInitializes a new Swift Package Manager project in the current directory. Use this tool first if your project doesnread
launch_appLaunch an installed app on a simulatorread
list_available_destinationsLists available build destinations for the active Xcode project or workspace.read
list_available_schemesLists all available schemes in the active Xcode project or workspace.read
list_booted_simulatorsList all currently booted iOS simulatorsread
list_directoryLists the contents of a directory, showing both files and subdirectories.read
list_installed_appsList all installed applications on a simulatorread
list_project_filesLists all files within an Xcode project.read
list_simulatorsList all available iOS simulators with filtering optionsread
open_urlOpen a URL in a simulatorread
pod_deintegrateDeintegrate CocoaPods from the active project, removing all traces of CocoaPods.read
pod_initGenerate a Podfile for the current project directory.read
pod_outdatedShows outdated pods in the current project and their available updates.read
pop_directoryPops a directory from the stack and changes to it.read
read_fileReads the contents of a file within the active project or allowed directories.read
resolve_pathResolves a path, taking into account the active directory and current project.read
search_in_filesSearches for text content within files in a directory.read
show_swift_dependenciesShows the resolved dependencies of a Swift Package.read
shutdown_simulatorShutdown a simulator by UDID, or shutdown all running simulatorsread
swift_package_commandExecutes Swift Package Manager commands in the active project directory.read
switch_xcodeSwitch the active Xcode versionread
take_screenshotTake a screenshot of a simulatorread
test_spm_packageRuns tests for a Swift Package Manager package directly usingread
test_swift_packageTests a Swift Package using Swift Package Manager.read
trace_appCaptures a performance trace of an application using xctraceread
validate_appValidate an app for App Store submission using altoolread

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

  1. ✕BLOCK D 61 / 100

    First audit · 6c022dd495b1

README badge

Badges show the current verdict, BLOCK included

ModelsAtlas: BLOCK DMODELSATLASBLOCK · D

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?
MCP Server implementation for Xcode integration
What tools does Xcode expose?
76 in total: 51 read-only, 21 that write, and 4 that can delete or overwrite (delete_file, remove_swift_package, reset_simulator, terminate_app). Every one is listed on this page with its risk.
Is Xcode safe to connect to an agent?
No — not without reading the findings first. The audit graded it D (61/100) and found 5 critical or high issues in the source. Each one is listed on this page with the file and line it is on. Separately from the audit: 4 of its tools can destroy data, so scope the token you give it to what you actually need.
What credentials does Xcode need?
No credential environment variables were found in its source, so it appears to need none.
How does Xcode run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as xcode-mcp-server at 1.0.3.
How current is this page?
The grade is for one exact copy of the source (6c022dd495b1), read on 2026-10-02. The repository is watched and re-audited when it changes.
Which Xcode MCP server is the right one?
3 unrelated servers share the name “Xcode”; compare them side by side before you install.
I already installed Xcode. What should I do?
Remove it from your client's MCP configuration, then rotate any API keys and tokens that were in your environment while it ran.
Can the verdict change?
Yes. The repository is watched and re-audited when its source changes. If the findings are removed the verdict updates, and the history on this page shows it.

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.