drio
Open app

Xcode MCP Server

Source

MCP Server implementation for Xcode integration

Catalog onlyCatalog onlySTDIO

Overview

Xcode MCP Server is a Model Context Protocol (MCP) server designed to integrate AI capabilities into your Xcode projects, allowing for intelligent code assistance and automated development tasks.

To use the Xcode MCP Server, install the server by cloning the repository, installing dependencies, and configuring it with Claude Desktop. You can then interact with the server to manage your Xcode projects and receive AI assistance.

  • Intelligent project detection that connects to active Xcode projects. - Smart file operations for reading and modifying Swift and Objective-C files. - Project management capabilities including access to targets and configurations.
  1. Assisting in code creation and modification.
  2. Analyzing projects for potential issues.
  3. Running builds and managing test suites.

Add to your AI client

Use these steps to connect Xcode MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "xcode-mcp-server-r-huijts": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-xcode-mcp-server-r-huijts"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "xcode-mcp-server-r-huijts": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-xcode-mcp-server-r-huijts"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "xcode-mcp-server-r-huijts": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-xcode-mcp-server-r-huijts"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "xcode-mcp-server-r-huijts": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-xcode-mcp-server-r-huijts"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "xcode-mcp-server-r-huijts": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-xcode-mcp-server-r-huijts"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "xcode-mcp-server-r-huijts": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-xcode-mcp-server-r-huijts"
      ]
    }
  }
}

FAQ

Can I use Xcode MCP Server with any Xcode project?

Yes, it supports various Xcode projects as long as the prerequisites are met.

Is there a cost to use Xcode MCP Server?

No, it is open-source and free to use under the MIT License.

What are the prerequisites for using Xcode MCP Server?

You need Node.js, Xcode Command Line Tools, TypeScript, and Claude Desktop with MCP support.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1646,"uuid":"59677108-5e43-410c-8d42-66773c5950a8","name":"xcode-mcp-server","title":"Xcode MCP Server","description":"MCP Server implementation for Xcode integration","avatar_url":"https://avatars.githubusercontent.com/u/22192747?v=4","created_at":"2025-02-23T10:17:45.825Z","updated_at":"2025-03-05T04:20:33.394Z","status":"created","author_name":"r-huijts","author_avatar_url":"https://avatars.githubusercontent.com/u/22192747?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/r-huijts/xcode-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"247\",\"license\":\"MIT license\",\"language\":\"TypeScript\",\"is_official\":false,\"latest_commit_time\":\"2025-04-17 13:07:00\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]