Apple docs MCP for AI coding
334k+ developer documents instantly searchable.
Connect your client
Run the following command in your terminal:
claude mcp add --transport http apple-docs https://xdocs.dev/mcp
Optional: Add a skill to teach Claude when to use the tools:
---
name: apple-docs
description: Search Apple developer documentation for Swift, SwiftUI, UIKit, AppKit, and 370+ frameworks. Use when looking up iOS/macOS/visionOS APIs, checking method signatures, finding platform availability, or debugging Apple framework issues.
---
# Apple Documentation
Search 334K pre-indexed Apple developer documents with sub-3ms latency.
## Tools
search_apple_docs - Full-text search with filters
query: "NavigationStack"
framework: "SwiftUI" (optional)
platform: "ios" (optional: ios/macos/visionos/watchos/tvos)
expand_result - Get full documentation for a symbol
identifier: "SwiftUI/NavigationStack"
list_frameworks - Browse all 370+ frameworks
filter: "UI" (optional)
choose_framework - Scope subsequent searches
framework: "UIKit"
## Workflow
1. Search broadly: search_apple_docs("async image loading")
2. Filter if needed: add framework or platform params
3. Expand for details: expand_result("SwiftUI/AsyncImage")
## Tips
- Use framework filter for precise results
- Expand results to see full method signatures
- Check platform param in results for availability
For more information, see the Claude Code MCP documentation.
Add a custom connector in Claude Desktop settings:
1. Open Claude Desktop 2. Navigate to Settings → Connectors 3. Select "Add custom connector" 4. Enter apple-docs as the name 5. Set URL to https://xdocs.dev/mcp 6. Click "Add"
Add to your Cursor MCP settings:
{
"apple-docs": {
"url": "https://xdocs.dev/mcp"
}
}
Create .vscode/mcp.json in your workspace:
{
"servers": {
"apple-docs": {
"type": "http",
"url": "https://xdocs.dev/mcp"
}
}
}
Add to your Copilot for Xcode extensions configuration:
{
"mcpServers": {
"apple-docs": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://xdocs.dev/mcp"]
}
}
}
For clients supporting Streamable HTTP, connect directly to the server URL. For stdio-only clients, use mcp-remote as a proxy:
{
"mcpServers": {
"apple-docs": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://xdocs.dev/mcp"]
}
}
}
Pre-indexed. Instant. Complete.
Unlike on-demand fetching, we've already done the work. Every search is instant.
Sub-3ms Search
Powered by Meilisearch. Results before you finish typing. No waiting for Apple's servers.
Smart Relevance
Framework-aware ranking. Core components surface first. Filter by platform, type, or framework.
Complete Coverage
SwiftUI, UIKit, AppKit, Metal, ARKit, Core ML, HealthKit, and 360+ more frameworks.
Always Available
No dependency on Apple's infrastructure. Works when their servers are slow or down.
Built for exploration
Everything you need to navigate Apple's documentation programmatically.