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_dir

Set the base directory where Xcode projects are stored

set_project_path

Explicitly set the path to the Xcode project to work with

get_active_project

Get information about the currently active Xcode project

read_file

Read contents of a file in the Xcode project

write_file

Write or update contents of a file in the Xcode project

list_project_files

List all files in an Xcode project

analyze_file

Analyze source file for issues and suggestions

build_project

Build the current Xcode project

run_tests

Run tests for the current Xcode project