Logo von Apple Deep Docs MCP

Apple Deep Docs MCP

Community
Ahrentlov

A Model Context Protocol server that exposes Apple's hidden Xcode documentation and developer resources

HerausgeberAhrentlov
Repositoryappledeepdoc-mcp
SprachePython
Forks
5
Sterne
15
Verfügbare Tools
0
Transporttypstdio
Kategorien
LizenzMIT
Links
  • Tools mit KI-Workflows verbinden

    Apple Deep Docs MCP stellt MCP-Funktionen bereit, die kompatible KI-Clients und Agenten nutzen können.

  • 0 verfügbare Tools

    Sehen Sie sich unten die aufrufbaren Aktionen an, einschließlich Namen und Beschreibungen, sofern der Server diese bereitstellt.

  • Konfiguration zum Kopieren

    Nutzen Sie die Installationsbeispiele, um diesen Server in Ihrem bevorzugten MCP-Client zu konfigurieren.

  • Open-Source-Kennzahlen

    15 Sterne und 5 Forks im verlinkten Repository.

Available as an Agent Skill — no MCP server setup required.

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:
bash
git clone https://github.com/Ahrentlov/appledeepdoc-mcp.git
cd appledeepdoc-mcp
  1. Set up the Python environment:
bash
# 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

bash
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:

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

Verify it was added

bash
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:

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

GPT-Codex

Add to ~/.codex/config.toml:

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
  • CODE_EXECUTION_MODE: Set to true to enable experimental code execution mode (see below)

Experimental: Code Execution Mode

Based on the approach described in Code Execution with MCP: Building More Efficient Agents from Anthropic Engineering.

This server also supports an alternative approach that replaces the 15+ individual MCP tools with a sandboxed Python execution environment. Instead of receiving large JSON responses and processing them externally, LLMs write Python code that fetches and filters data directly—significantly reducing token usage.

Why Code Execution?

The standard mode exposes 15+ tools, each returning full JSON responses. For example, searching Swift Evolution proposals returns the entire matching dataset. With code execution mode:

  1. Fewer tools - Only 3 tools instead of 15+, reducing tool listing overhead
  2. Filtered results - LLMs write code to extract exactly what they need
  3. Composable queries - Combine multiple API calls and filter in a single execution

Available Tools in Code Execution Mode

ToolPurpose
list_tool_directoryBrowse the virtual filesystem to discover available APIs
read_tool_definitionRead function signatures and usage examples
execute_documentation_codeRun Python code in a sandboxed environment

Security Model

The sandbox provides defense-in-depth:

  • AST validation - Blocks imports, exec, eval, and dangerous builtins
  • Subprocess isolation - Code runs in a separate process
  • Resource limits - 5 second timeout, 50MB memory limit
  • Restricted namespace - Only safe builtins and documentation APIs available

Enabling Code Execution Mode

Add the CODE_EXECUTION_MODE environment variable to your MCP configuration:

Claude Code:

bash
claude mcp add apple-deep-docs-exec /path/to/appledeepdoc-mcp/run.sh --env CODE_EXECUTION_MODE=true

Claude Desktop:

json
{
  "mcpServers": {
    "apple-deep-docs-exec": {
      "command": "/path/to/appledeepdoc-mcp/run.sh",
      "env": {
        "CODE_EXECUTION_MODE": "true"
      }
    }
  }
}

Example: Filtering Swift Evolution Proposals

Instead of calling search_swift_evolution and receiving a large JSON response, the LLM executes:

python
# Executed in sandbox via execute_documentation_code
proposals = search_proposals('async')
swift6 = [p for p in proposals.get('proposals', [])
          if p.get('version', '').startswith('6')]
result = {'swift6_async': swift6[:5], 'count': len(swift6)}

The LLM receives only the filtered 5 proposals, not the entire matching dataset.

Available APIs in Sandbox

All documentation sources are available as functions:

APIFunctions
Apple Developer Docsfetch_documentation(url), search_apple_online(query), get_framework_info(name)
Swift Evolutionsearch_proposals(feature), get_proposal(se_number)
Local Xcode Docssearch_docs(query), get_document(name), list_documents(), get_xcode_versions()
GitHub Repossearch_swift_repos(query), fetch_github_file(url)
WWDC Sessionssearch_wwdc_notes(query), get_wwdc_session(session_id)
Human Interface Guidelinessearch_hig(query), list_hig_platforms()

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

Installation

TypingMind
Voraussetzungen:

Node.js 18+

{
  "mcpServers": {
    "yourusername-appledeepdocs-mcp": {
      "command": "",
      "args": []
    }
  }
}

Apple Deep Docs MCP MCP mit mehreren KI-Modellen nutzen

TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. Sobald Apple Deep Docs MCP verbunden ist, können Sie die Integration mit verschiedenen KI-Modellen in TypingMind verwenden, statt sie für jedes Modell separat einzurichten. Diese MCP-Integration läuft lokal über den TypingMind-MCP-Konnektor auf Ihrem Gerät.

Einrichtungsanleitung für den lokalen Konnektor

Nutzen Sie diese Option, wenn der MCP-Server Zugriff auf lokale Dateien, Apps oder private Ressourcen auf Ihrem Computer benötigt.

1

MCP-Einstellungen öffnen

Gehen Sie in TypingMind zu „Einstellungen“, „Erweiterte Einstellungen“ und dann „Model Context Protocol“ und wählen Sie „Konnektor-Setup“.

  1. Öffnen Sie TypingMind in Ihrem Browser.
  2. Klicken Sie auf das Symbol „Optionen“.
  3. Gehen Sie zu „Erweiterte Einstellungen“.
  4. Öffnen Sie den Abschnitt „Model Context Protocol“.
  5. Klicken Sie auf „Konnektor-Setup“ und wählen Sie „Dieses Gerät“.
Einrichtungsbildschirm des TypingMind-MCP-Konnektors mit ausgewählter Option „Dieses Gerät“
2

Konnektor-Befehl ausführen

Wählen Sie „Dieses Gerät“, kopieren Sie den Befehl aus TypingMind und führen Sie ihn im Terminal aus. Lassen Sie den Prozess laufen, solange Sie MCP verwenden.

  1. Kopieren Sie den in TypingMind angezeigten Einrichtungsbefehl.
  2. Öffnen Sie unter macOS Terminal bzw. unter Windows Windows Terminal.
  3. Fügen Sie den Befehl ein und führen Sie ihn aus.
  4. Bestätigen Sie die Paketinstallation, wenn Sie im Terminal zum Fortfahren aufgefordert werden.
  5. Lassen Sie das Terminalfenster geöffnet und den Prozess darin laufen, solange Sie MCP-Tools verwenden.
3

Apple Deep Docs MCP als Server hinzufügen

Wenn der Konnektorstatus „Bereit“ anzeigt, klicken Sie auf „Server ändern“ und fügen Sie die MCP-Server-Konfiguration ein.

  1. Warten Sie, bis der Konnektorstatus „Bereit“ anzeigt.
  2. Klicken Sie auf „Server ändern“.
  3. Fügen Sie die MCP-Server-Konfiguration für Apple Deep Docs MCP ein.
  4. Speichern Sie die Serverliste.
  5. Aktualisieren Sie die Ansicht, um bei Bedarf zu prüfen, ob der Konnektor weiterhin bereit ist.
MCP-Einstellungen in TypingMind mit aktivem Server und der Schaltfläche „Server ändern“
{
  "mcpServers": {
    "yourusername-appledeepdocs-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "appledeepdocs-mcp"
      ]
    }
  }
}
4

Verbindung modellübergreifend nutzen

Speichern Sie die Serverliste, öffnen Sie „Plugins“ und aktivieren Sie die MCP-Tools von Apple Deep Docs MCP. Wählen Sie dann ein beliebiges unterstütztes KI-Modell in TypingMind und verwenden Sie die Tools im Chat oder weisen Sie sie einem KI-Agenten zu.

  1. Öffnen Sie die Seite „Plugins“ in TypingMind.
  2. Aktivieren Sie die MCP-Tools von Apple Deep Docs MCP.
  3. Starten Sie einen Chat und wählen Sie das KI-Modell, das Sie verwenden möchten.
  4. Nutzen Sie die MCP-Tools im Chat oder weisen Sie sie einem KI-Agenten zu.
  5. Wechseln Sie bei Bedarf zu einem anderen KI-Modell, ohne die MCP-Verbindung erneut herzustellen.
TypingMind-Chat mit aktivierten MCP-Tools und einem ausgewählten KI-Modell
Können Sie mir mit Apple Deep Docs MCP bei dieser Aufgabe helfen?
Apple Deep Docs MCP
Gerne. Ich habe es gelesen.
Das habe ich mit Apple Deep Docs MCP gefunden.

Häufig gestellte Fragen

Wofür wird der MCP-Server Apple Deep Docs MCP verwendet?

Apple Deep Docs MCP ist ein MCP-Server, über den kompatible KI-Clients auf externe Tools und Kontext zugreifen können. In TypingMind können Sie diesen MCP-Server einmal hinzufügen und seine Tools in Ihrem KI-Arbeitsbereich verfügbar machen.

Kann ich Apple Deep Docs MCP MCP mit mehreren KI-Modellen in TypingMind verwenden?

Ja. TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. So können Sie Apple Deep Docs MCP mit verschiedenen KI-Modellen wie Claude, ChatGPT, Gemini oder anderen in TypingMind konfigurierten Modellen verwenden, ohne den MCP-Server für jedes Modell separat einzurichten.

Warum Apple Deep Docs MCP MCP mit TypingMind nutzen?

TypingMind ist eine der besten Oberflächen für LLM-Chats, da es mehrere KI-Modelle, Prompts, Plugins, KI-Agenten, API-Schlüssel und MCP-Tools in einem Arbeitsbereich vereint. Sobald Apple Deep Docs MCP verbunden ist, können Sie die zugehörigen MCP-Tools mit Ihren bevorzugten Modellen nutzen und Ihre Chat-Abläufe in TypingMind übersichtlich organisieren.

Wie verbinde ich Apple Deep Docs MCP MCP mit TypingMind?

Apple Deep Docs MCP wird über den lokalen MCP-Konnektor von TypingMind angebunden. Das ist die beste Wahl, wenn der MCP-Server auf lokale Dateien, Desktop-Apps, Befehlszeilentools oder private Ressourcen auf Ihrem Computer zugreifen muss.

Welche Tools stellt Apple Deep Docs MCP MCP in TypingMind bereit?

Apple Deep Docs MCP stellt MCP-Funktionen bereit, die Sie auf der Plugins-Seite in TypingMind aktivieren und im Chat verwenden oder KI-Agenten zuweisen können.

Muss ich meine API-Schlüssel mit TypingMind teilen, um Apple Deep Docs MCP MCP zu verwenden?

Nein. TypingMind arbeitet vorrangig lokal, sodass Sie die Kontrolle über Ihre Modellanbieter, API-Schlüssel, Prompts und MCP-Konfiguration behalten. Falls Apple Deep Docs MCP eine Authentifizierung erfordert, fügen Sie beim Erstellen der Verbindung die erforderlichen Header, OAuth-Einstellungen oder die lokale Konfiguration für diesen MCP-Server hinzu.

Ähnliche MCP-Server

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇