Xcode MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PROJECTS_BASE_DIRYesThe base directory path to your Xcode projects

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
set_projects_base_dirSet the base directory where Xcode projects are stored
set_project_pathExplicitly set the path to the Xcode project to work with
get_active_projectGet information about the currently active Xcode project
read_fileRead contents of a file in the Xcode project
write_fileWrite or update contents of a file in the Xcode project
list_project_filesList all files in an Xcode project
analyze_fileAnalyze source file for issues and suggestions
build_projectBuild the current Xcode project
run_testsRun tests for the current Xcode project