XCF Xcode MCP Server

XCF Xcode MCP Server

xcf•bycodefreezeai

A Swift-based MCP server that lets AI clients build, run, and inspect Xcode projects, read files, and analyze Swift code.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Builds and runs the currently selected Xcode project through MCP tools.
  • •Lists and selects among open Xcode projects and shows the current project and environment.
  • •Reads files, lists directories, and changes the working directory.
  • •Extracts code snippets and analyzes Swift code for potential issues.

BEST FOR

  • •Swift developers using Cursor, Claude Code, or VSCode who want an AI assistant to build and run Xcode projects.
  • •AI-assisted code review that inspects Swift snippets and surfaces style, complexity, and unused-code issues.

ABOUT XCF

XCF Xcode MCP Server is cataloged as an MCP server attributed to codefreezeai. A Swift-based MCP server that lets AI clients build, run, and inspect Xcode projects, read files, and analyze Swift code. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for XCF Xcode MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does XCF restrict which folders the AI assistant can access?

Yes, it uses environment variables to define a workspace boundary and prevents access outside it.

How many MCP tools does XCF expose?

The README documents 21 MCP tools across core, project management, file system, and code analysis groups.

Upstream README

View this exact version on GitHub

README.md · 3f3ff66f627e · Fetched 2026-11-13 11:43:03 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

🚀 XCF Xcode MCP Server

🤖 Built by the makers of Agent!, an autonomous macOS agent.

The Swift way to Super Charge your AI Workflow!

Swift 6.1 Website Version GitHub downloads GitHub stars GitHub forks MCP Marketplace

🖌️ What's new in 1.0.6

  • A leaner MCP server focused on Xcode project automation, file reading, directory navigation, Swift analysis, and code snippets.
  • Removed diff, code-editing, and Xcode-document tools from the MCP server, along with the MultiLineDiff (D1F) dependency.
  • Downloadable DMG and ZIP packages, with an Applications shortcut in the DMG for drag-and-drop installation.
  • Universal macOS app for Apple silicon and Intel, targeting macOS 13.5 or later.
  • Packaged-build compatibility fixes: xcf-swift pinned to 1.0.0 and MCP call sites adapted to the updated SDK.

Upgrading: use your client's native editing tools for operations removed from XCF. Replace the app and restart your MCP client to reload the tool list.

Release notes · Changes since 1.0.5

Speed up writing Xcode apps with xcf, a dead simple Swift-based MCP server designed for Cursor, Claude Code, and VSCode — no TypeScript, no JavaScript, no BS!

🧰 XCF Installation & Configuration

Downloads

PackageInstallation
XCF 1.0.6 — macOS DMGRecommended: open the image and drag xcf.app onto the Applications shortcut.
XCF 1.0.6 — macOS ZIPExtract the archive and move xcf.app into /Applications.

The packaged app's minimum deployment target is macOS 13.5, verified in both arm64 and x86_64 executables. Runtime testing on macOS 13.5 has not been performed.

Installation Steps

  1. Install XCF using either download above.
  2. Launch the application to approve the internet download.
Screenshot 2025-05-11 at 9 15 35 PM
  1. You will see the following alert (this is expected):
XCF Alert
  1. Click the "Press to Quit this XCF Xcode MCP Server" button.

💡 Troubleshooting: If XCF doesn't display the alert, run this command:

codesign --force --deep --sign - /Applications/xcf.app

You can also build xcf from source using Xcode.

Source archive note: the attached 1.0.6 app packages include compatibility fixes made after the 1.0.6 tag. GitHub's automatically generated source archives for that tag do not include those fixes.

🔧 Quick Setup

Minimum Requirements:

  • macOS 13.5 or later for the packaged app.
  • Xcode for Xcode project automation.
  • An MCP client configured to launch XCF over standard input/output.

Add xcf to your MCP configuration file:

{
  "mcpServers": {
    "xcf": {
      "type": "stdio",
      "command": "/Applications/xcf.app/Contents/MacOS/xcf",
      "args": ["server"]
    }
  }
}          

Configuration Locations

  • Cursor: ~/.cursor/mcp.json
  • Claude Desktop: ~/Library/Application Support/Claude/claude_desktop_config.json

⚠️ Important: Restart your AI assistant after setup or refresh the tool.

⚙️ Advanced Configuration

For non-Cursor clients or users requiring strict project-level control:

{
  "mcpServers": {
    "xcf": {
      "type": "stdio",
      "command": "/Applications/xcf.app/Contents/MacOS/xcf",
      "args": ["server"],
      "env": {
          "XCODE_PROJECT_FOLDER": "/path/to/project/",
          "XCODE_PROJECT": "/path/to/project/project.xcodeproj"
      }
    }
  }
}

These environment variables let you:

  • Pre-select a specific Xcode project to work with
  • Define a custom workspace boundary for security

✨ Key Features

  • Zero Dependencies: Easy to install, no reliance on other MCP servers
  • Automatic Project Detection: Auto-selects your Xcode project so you can start coding immediately
  • Real-time Error Handling: xcf build or xcf run sends errors and warnings from Xcode directly to your AI IDE
  • AI-Powered Fixes: Let Claude fix bugs and mistakes during your coding sessions
  • Intuitive Commands: Simple, developer-friendly command structure for maximum productivity
  • Comprehensive File Operations: Read files and directories with ease
  • Xcode Integration: Build, run, and manage Xcode projects directly
  • Advanced Code Analysis: Get detailed Swift code analysis without building in Xcode

🛠️ Perfect for Swift Developers

The tool is designed by Swift developers, for Swift developers. Commands like build, run, show, and our new file and directory operations make the workflow intuitive and natural.

📋 Commands Reference

xcf Commandaction Description
showList open Xcode projects
open #Select project by number
runRun current project
buildBuild current project
currentShow selected project
envShow environment variables
pwdShow current folder (aliases: dir, path)
helpDisplay all available commands

File Operations

CommandDescription
read_file <file>Read content from a file
read_dir [path] [extension]List directory contents
cd_dir <path>Change directory

Analysis Tools

CommandDescription
snippet <file> [start] [end]Extract code snippets
analyzer <file> [start] [end]Analyze Swift code
lz <file>Shorthand for analyzer

📄 Using Snippets

For Human Commands

xcf supports simplified, user-friendly snippet commands:

To get an entire file, just use the filename:

xcf snippet filename.swift

No need for full paths in many cases - xcf will intelligently find and display the complete file contents.

For specific line ranges:

xcf snippet filename.swift 10 20

You can use either format for file operations:

xcf snippet /path/to/file.swift                 // Direct path
xcf snippet filePath=/path/to/file.swift        // Named parameter

xcf analyze /path/to/file.swift                 // Direct path
xcf analyze filePath=/path/to/file.swift        // Named parameter

xcf lz /path/to/file.swift                      // Direct path (shorthand)
xcf lz filePath=/path/to/file.swift             // Named parameter (shorthand)

For specific line ranges:

xcf snippet /path/to/file.swift 10 20           // Direct path with line range
xcf snippet filePath=/path/to/file.swift startLine=10 endLine=20  // Named parameters

For AI Assistants

When using xcf through MCP tools, use this syntax:

mcp_xcf_snippet filePath="filename.swift" entireFile=true

For specific line ranges:

mcp_xcf_snippet filePath="filename.swift" startLine=10 endLine=20

Smart Path Resolution

When a file isn't found at the exact path, xcf will intelligently search for it in:

  1. First tries the exact path provided
  2. Resolves relative paths using the current working directory
  3. Searches in the current project directory and one level up
  4. Searches in the workspace folder defined by WORKSPACE_FOLDER_PATHS
  5. Searches recursively in workspace folders with limited depth
  6. As a last resort, performs a fuzzy search for similar filenames

This smart path resolution is used consistently across ALL file operations in xcf, including:

  • File reading and code snippets
  • Code analysis
  • Directory operations

This means you can usually just use the filename without any path for any operation:

xcf snippet Constants.swift    // For humans
xcf analyze Constants.swift    // For humans

Or for AI assistants:

mcp_xcf_snippet filePath="Constants.swift" entireFile=true
mcp_xcf_analyzer filePath="Constants.swift" entireFile=true

🔍 Swift Code Analysis

For Human Commands

Analyze an entire Swift file for potential issues:

xcf analyze filename.swift

Or use the shorthand version:

xcf lz filename.swift

For specific line ranges:

xcf analyze filename.swift --startLine 10 --endLine 50

For AI Assistants

When using xcf through MCP tools, use this syntax:

mcp_xcf_analyzer filePath="filename.swift" entireFile=true

Or use the shorthand version:

mcp_xcf_xcf action="lz filename.swift"

For specific line ranges:

mcp_xcf_analyzer filePath="filename.swift" startLine=10 endLine=50

The analysis identifies issues like:

  • Code style and formatting problems
  • Functions with high complexity
  • Unused variables and symbols
  • Magic numbers
  • Long methods
  • And more

🧩 MCP Tools (21 Tools)

Core Tools

ToolDescription
xcfExecute xcf actions (show, open, build, run, current, env, pwd, analyze, lz)
listLists all available tools on this server
xcf_helpQuick help for xcf actions only
helpRegular help with common examples
use_xcfActivate XCF mode
toolsShow detailed reference for all tools including AI function calls
show_helpDisplay help information about available commands

Project Management Tools

ToolDescription
build_projectBuild the current Xcode project
run_projectRun the current Xcode project
list_projectsList all open Xcode projects
select_projectSelect an Xcode project by number
show_current_projectShow information about the currently selected project
show_envDisplay all environment variables
show_folderDisplay the current working folder
grant_permissionGrant Xcode automation permissions

File System Tools

ToolDescription
read_fileRead content from a file
read_dirList contents of a directory
cd_dirChange current directory

Code Analysis Tools

ToolDescription
snippetExtract code snippets from files
analyzerAnalyze Swift code for potential issues
analyze_swift_codeAnalyze Swift code with customizable check groups (syntax, style, safety, performance, bestPractices)

For AI Function Calls

To get an entire file:

mcp_xcf_snippet(filePath="/full/path/to/file.swift", entireFile=true)

For specific line ranges:

mcp_xcf_snippet(filePath="/full/path/to/file.swift", startLine=10, endLine=20)

To analyze an entire file:

mcp_xcf_analyzer(filePath="/full/path/to/file.swift", entireFile=true)

For specific line ranges:

mcp_xcf_analyzer(filePath="/full/path/to/file.swift", startLine=10, endLine=50)

Working with Files and Directories

Read a file:

mcp_xcf_read_file filePath="main.swift"

List directory contents:

mcp_xcf_read_dir directoryPath="."

List Swift files only:

mcp_xcf_read_dir directoryPath="src" fileExtension="swift"

Change directory:

mcp_xcf_cd_dir directoryPath="src"

🔒 Security Features

  • Safely works with projects in your designated workspace
  • Automatically prevents access outside your workspace boundaries
  • Redirects to safe alternatives when needed
  • Uses environment variables to define secure boundaries

🔄 Workflow Examples

Basic Workflow (For Humans)

  1. xcf show - See available projects
  2. xcf open 1 - Select a project
  3. xcf build - Build the project
  4. xcf run - Run the project

Code Analysis Workflow (For Humans)

  1. xcf current - Check current project
  2. xcf snippet filename.swift - Examine code
  3. xcf lz filename.swift - Analyze code
  4. xcf build - Build after fixing issues

File Manipulation Workflow (For Humans)

  1. read_dir . - List files in current directory
  2. read_file main.swift - View file contents
  3. Use Agent native tools for file editing
  4. xcf build - Build after changes

Basic Workflow (For AI Assistants)

  1. mcp_xcf_xcf action="show" - See available projects
  2. mcp_xcf_xcf action="open 1" - Select a project
  3. mcp_xcf_xcf action="build" - Build the project
  4. mcp_xcf_xcf action="run" - Run the project

Code Analysis Workflow (For AI Assistants)

  1. mcp_xcf_xcf action="current" - Check current project
  2. mcp_xcf_snippet filePath="filename.swift" entireFile=true - Examine code
  3. mcp_xcf_analyzer filePath="filename.swift" entireFile=true - Analyze code
  4. mcp_xcf_xcf action="build" - Build after fixing issues

File Manipulation Workflow (For AI Assistants)

  1. mcp_xcf_read_dir directoryPath="." - List files in current directory
  2. mcp_xcf_read_file filePath="main.swift" - View file contents
  3. Use Agent native edit_file tool for file editing
  4. mcp_xcf_xcf action="build" - Build after changes

📺 Demo

Watch XCF in action: YouTube Demo

❓ Troubleshooting

If commands fail, check:

  • xcf installation is correct
  • Refreshing xcf MCP Server
  • Verify the server launches and is in your /Applications folder
  • Environment variables with env such as "server"
  • Relaunch your AI assistant

🤝 Open Source Community

Swift Engineers are welcome to contribute! Help us make xcf even better.

💯 100% Swift. 100% Open Source.

GitHub Repository


Created by XCodeFreeze Automation and CodeFreeze.ai - Bringing the future of Swift development to your fingertips!


AgentiLoop: agentiloop.ai

Copyright © 2026 AgentiLoop.ai, a Logos InkPen LLC company. All rights reserved.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for XCF Xcode MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/xcf)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools