Skip to main content

MCP server for accessing Apple's hidden Xcode documentation

Project description

Apple Deep Docs MCP

Access hidden Xcode documentation and Apple developer resources through the Model Context Protocol.

Overview

Modern Apple documentation uses the DocC rendering system which requires JavaScript to dynamically load content, making it inaccessible to some LLMs. This MCP server circumvents that limitation by providing comprehensive access to Apple's development documentation ecosystem, including:

  • Hidden Xcode Documentation: Searches the AdditionalDocumentation folder inside Xcode.app containing advanced SwiftUI patterns, Liquid Glass design guides for iOS 26+, and framework-specific implementation details not available on Apple's public developer site
  • Apple Developer API: Fetches and parses structured documentation from developer.apple.com
  • Swift Evolution Proposals: Searches 500+ proposals to understand the "why" behind language features
  • Swift Open Source Repositories: Searches across all Apple/SwiftLang GitHub repositories for implementation examples
  • WWDC Session Notes: Accesses community-curated WWDC session summaries for performance optimization and architecture patterns
  • Human Interface Guidelines: Searches through the Human Interface Guidelines

Requirements

  • Python 3.10+
  • Xcode installed (for local documentation features)

Installation

  1. Clone this repository:
git clone https://github.com/Ahrentlov/appledeepdoc-mcp.git
cd appledeepdoc-mcp
  1. Set up the Python environment:
# Create virtual environment
python3 -m venv venv

# Install dependencies
./venv/bin/pip install fastmcp

Configuration

Claude Code

For Claude Code, you need to add the MCP server using the following CLI commands:

Make sure run.sh is executable

chmod +x /path/to/appledeepdoc-mcp/run.sh

Add the MCP server to the local Claude Code project config

Navigate to the project folder where you will be activating Claude Code, then run the following command to register the MCP server:

claude mcp add --transport stdio apple-deep-docs /path/to/appledeepdoc-mcp/run.sh

Verify it was added

claude mcp list

Now when you activate claude in this folder, it will have the MCP server available.

Claude Desktop

Add to your Claude Desktop config file:

{
  "mcpServers": {
    "apple-deep-docs": {
      "command": "/path/to/appledeepdoc-mcp/run.sh"
    }
  }
}

GPT-Codex

Add to ~/.codex/config.toml:

[mcp_servers.apple-deep-docs]
"command" = "/path/to/appledeepdoc-mcp/run.sh"

Replace /path/to/appledeepdoc-mcp with the full path where you cloned this repository. The run.sh script automatically handles the virtual environment.

Config file locations:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

After updating the config, restart Claude Desktop to load the MCP server.

Project Structure

├── main.py               # Entry point for the MCP server
├── config.py            # Configuration and Xcode path discovery
├── tools.py             # MCP tool definitions and input validation
├── docs/                # Documentation access modules
│   ├── local_docs.py    # Xcode's hidden local documentation
│   └── apple_docs.py    # Apple Developer website API access
├── evolution/           # Swift language evolution
│   └── swift_evolution.py
├── repos/               # GitHub repository searching
│   └── swift_repos.py
├── suggestions/         # Intelligent suggestion system
│   └── suggestions.py   # Centralized suggestion engine
├── wwdc/                # WWDC session resources
│   └── wwdc_notes.py
└── pyproject.toml       # Package configuration

Available Tools

Local Documentation

  • search_docs - Search Xcode's hidden documentation
  • get_document - Retrieve full content of a specific document
  • list_documents - List all available documentation files
  • get_xcode_versions - Get installed Xcode versions with documentation

Apple Developer Resources

  • fetch_apple_documentation - Fetch structured docs from developer.apple.com
  • search_apple_online - Search both local and online Apple documentation
  • get_framework_info - Get direct documentation URL for any framework

Swift Evolution

  • search_swift_evolution - Search Swift Evolution proposals
  • get_swift_evolution_proposal - Get details of a specific proposal

GitHub Resources

  • search_swift_repos - Search across all Apple/SwiftLang repositories
  • fetch_github_file - Fetch source code from GitHub repositories

WWDC Resources

  • search_wwdc_notes - Search WWDC session notes and transcripts
  • get_wwdc_session - Get WWDC session URLs from session ID

Human Interface Guidelines

  • search_human_interface_guidelines - Search Apple's HIG for design patterns and best practices
  • list_human_interface_guidelines_platforms - List all available platforms with HIG links

Environment Variables

  • XCODE_DOC_PATH: Override default Xcode documentation search path

Contributing

This project is provided as-is in its current state. While I've done my best to make it useful for accessing Apple's deeper documentation layers, there may be rough edges or areas for improvement.

Suggestions and pull requests are more than welcome! If you have ideas for new features, find bugs, or want to contribute improvements, please feel free to open an issue or submit a PR.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_ahrentlov_appledeepdoc_mcp-0.1.1.tar.gz (26.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file iflow_mcp_ahrentlov_appledeepdoc_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: iflow_mcp_ahrentlov_appledeepdoc_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 26.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_ahrentlov_appledeepdoc_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8d4b96c0d7ed2e5f4a1592214a717cb0195030698a622db5492c9a6e6d3df215
MD5 b7e8f2e8a7fcfcff5054d481424ac529
BLAKE2b-256 e3b8b3b006f60a9ab23e861b0bcb5919b2462697da232cb093bb934201caed95

See more details on using hashes here.

File details

Details for the file iflow_mcp_ahrentlov_appledeepdoc_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: iflow_mcp_ahrentlov_appledeepdoc_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 37.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_ahrentlov_appledeepdoc_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 de6575df0728c347d0b93c642e85e6caa5e7ea3f2c942132666f89a3c0f40cce
MD5 36e1c0775391b7c6ab289f42effeef97
BLAKE2b-256 f4705cb5c6f4540ea1c40b86beee453208b8c8ec15d17426f562a15993eaaf6c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page