xdocs

An MCP server, also hosted at xdocs.dev, that searches a local mirror of Apple's developer documentation, the Human Interface Guidelines, The Swift Programming Language and related docs.

View on GitHub ↗
Stars
★ 30
Last commit
4 Dec 2026
Maintenance
Active
Licence
MIT
Category
MCP Servers
GitHub
Averyy/apple-dev-docs

Overview

xdocs, from the apple-dev-docs repository, is an MCP server that gives an AI assistant a searchable mirror of Apple's developer documentation. The project is independent and is not affiliated with Apple. The README describes Apple's documentation site as hard for agents to read, and this server as a complete, searchable copy in a cleaner format, with the content itself unchanged.

The hosted endpoint is https://xdocs.dev/mcp. You can also run the server yourself with Docker or Python and Meilisearch. The README says the corpus is updated automatically twice a week from Apple's live documentation, and that this includes WWDC 2026 content. How soon a given page appears has not been checked. It searches documentation pages, not WWDC transcripts.

The code is licensed under the MIT licence. The documentation it mirrors is not: Apple's developer documentation, Human Interface Guidelines and App Store pages are copyright Apple Inc. and, per the README and THIRD_PARTY_NOTICES, are provided for development use only. Other mirrored docs keep their upstream licences.

Features

  • Four MCP tools: search_apple_docs (natural-language search, with optional framework and platform filters), expand_result (the full page for a symbol or file path, in parts if it is long), list_frameworks, and get_version.
  • A large corpus. The README reports 400 or more frameworks and about 400,000 documents. The repository's documentation folder currently has 429 top-level entries, which include frameworks and other doc sets. The page count has not been independently checked.
  • Nested modules, Objective-C and C pages that Apple lists only in a framework's Objective-C view, and a separate page for each overload of an overloaded symbol.
  • Deprecation markers, with a pointer to what to use instead, and a lower rank when only the deprecation note matches.
  • The Human Interface Guidelines, The Swift Programming Language, a wide slice of docs.swift.org, selected Swift Package Index API references (including CareKit and MLX Swift), MLX and Core ML Tools, some Apple open-source tooling docs, and Apple's App Store and app privacy pages.
  • Platform filters for iOS, macOS, tvOS, watchOS and visionOS, wildcard search, and token budgets from 1,000 to 25,000 tokens.
  • Streamable HTTP transport. Stdio-only clients can use mcp-remote as a bridge.
  • The README gives a median search time of about 16 ms. That is the author's own figure and has not been independently verified.
  • The hosted server, per the README, is read-only, has no accounts, cookies or analytics, and logs tool arguments only when a call fails or is rejected. That privacy policy has not been independently audited; it is published at xdocs.dev/privacy.html.

Requirements

  • For the hosted service: an MCP client and a network connection. No account is required. The README's default rate limit is 60 requests a minute per IP, with a higher shared limit for published Claude and ChatGPT connector address ranges.
  • To run it yourself: Python 3.11 or later, or Docker (the image uses Python 3.11). Scraping uses Python 3.12 or later. The README asks for 1.5 GB of RAM (4 GB or more recommended for indexing) and about 13 GB of disk for the image and the Meilisearch index.

Install

  1. The reliable path is the hosted server:

  2. Claude Code: claude mcp add --transport http apple-docs https://xdocs.dev/mcp

  3. Claude Desktop: Settings, Connectors, add a custom connector named apple-docs with the URL https://xdocs.dev/mcp

  4. Cursor: add a server whose URL is https://xdocs.dev/mcp

  5. VS Code: a .vscode/mcp.json server of type http with that URL

  6. Stdio-only clients: run npx -y mcp-remote https://xdocs.dev/mcp

  7. Self-hosting is possible, but the root README's Docker steps do not match the compose files in the repo. The default docker-compose.yml is a production file: it expects an external Docker network named web and publishes the server on port 8001, not 8000. For a local build, the repo also has docker-compose.local.yml, which likewise publishes port 8001. You will need a .env file with MEILI_MASTER_KEY. Prefer the MCP server README and those compose files over the root README's "localhost:8000" line until that is corrected. The first index run is described as taking around 20 minutes.

Example

Ask your agent to search for a SwiftUI button style, limited to the SwiftUI framework on iOS. It should call search_apple_docs, then expand_result on a symbol or file path when it needs the full page. You can also ask it to list frameworks whose names contain "UI".

Works with

Claude CodeCursorVS CodeAny MCP client

Listed in

Read the code before you install anything. SwiftAgents doesn't review or endorse the tools listed here. Active: a commit in the last 90 days. Slowing: last commit within the past year. Stale: older than a year, or archived.

Report a correction

More in this category