apple-docs-mcp-server

apple-docs-mcp-server

Search and retrieve information from Apple's complete developer documentation, including API references, code examples, and Human Interface Guidelines, across all Apple platforms and versions.

Category
访问服务器

README

Apple Docs MCP Server

NPM Version License Node.js

Search through Apple's complete developer documentation using your AI coding assistant.

What this does

This tool connects your AI assistant (like Cursor) to Apple's entire developer documentation. Instead of manually browsing developer.apple.com, your AI can search through Apple's docs and provide precise answers with source links.

Complete documentation coverage:

  • All Apple platforms: iOS, macOS, watchOS, tvOS, and visionOS - from early versions to current iOS 26, macOS 26, watchOS 26, tvOS 26, visionOS 26
  • WWDC session transcripts from 2019-2025 (including latest WWDC 2025 with Liquid Glass API, Foundation Models Framework)
  • Complete API references for all frameworks - legacy APIs, current APIs, and newest additions
  • Code examples with context and explanations across all versions
  • Human Interface Guidelines (HIG) - Apple's complete design guidelines for all platforms

How it works: Natural language search - ask questions in plain English. Type "how to animate a button press" or "best practices for iOS navigation" and get relevant answers. The search understands concepts and context, not just exact keyword matches.

Database: 16,253+ documents with complete content coverage.

Installation

npm install apple-docs-mcp-server

The documentation database (260MB) downloads automatically during installation.

Setup with Cursor

1. Create .cursor/mcp.json in your project root:

{
  "schemaVersion": 1,
  "mcpServers": {
    "apple_docs": {
      "command": "/absolute/path/to/node_modules/apple-docs-mcp-server/run-mcp-safe.sh",
      "env": {
        "OPENAI_API_KEY": "your_openai_api_key_here"
      },
      "autoStart": true,
      "alwaysAllow": ["search_docs", "get_doc", "get_code_examples", "get_stats"],
      "timeout": 30000
    }
  }
}

2. Find your correct path:

# In your project directory:
echo "$(pwd)/node_modules/apple-docs-mcp-server/run-mcp-safe.sh"

3. Restart Cursor completely

How to use

Ask your AI assistant questions about Apple development:

API & Code examples (any version):

  • "Show me SwiftUI animation code examples"
  • "How do I use Core Data with CloudKit synchronization?"
  • "Foundation Models Framework setup and usage examples"
  • "What's new in UIKit for iOS 26?"

Design & Interface Guidelines:

  • "Apple's guidelines for button design in iOS apps"
  • "Best practices for navigation patterns on iPad"
  • "Accessibility requirements for app icons"

Natural language queries:

  • "How to handle memory management in SwiftUI?"
  • "How to implement Liquid Glass effects in my app?"
  • "Best way to implement dark mode support"

Your AI searches through Apple's complete documentation and provides answers with source links. When documents contain code examples, your AI can extract those examples with full context and explanations.

Key benefits

Complete historical and current coverage: This is the most comprehensive Apple developer documentation collection available. Everything Apple has ever published and continues to publish - from legacy APIs to cutting-edge frameworks, all WWDC sessions from 2019-2025, complete Human Interface Guidelines - all in one searchable database.

Natural language search: Ask questions in plain English. No need to know exact API names or keywords. The search understands what you're trying to accomplish.

Working code examples: Not just documentation text, but actual Swift code with explanations and context across all platform versions.

Fast and local: All documents are processed on your machine. Search results appear instantly without API calls.

From legacy to latest: Whether you need legacy iOS 13 APIs or the newest iOS 26 features like Liquid Glass API - it's all here with complete WWDC 2025 content.

Troubleshooting

Cursor shows "No tools":

  • Use absolute paths in .cursor/mcp.json
  • Make sure run-mcp-safe.sh is executable: chmod +x run-mcp-safe.sh
  • Restart Cursor completely

OpenAI API key errors:

  • Put your API key in the env section of mcp.json (recommended)
  • Check API key format: should start with sk-proj- or sk-

Database errors:

  • Reinstall if database is missing: npm uninstall apple-docs-mcp-server && npm install apple-docs-mcp-server
  • Check database file exists: ls -lh node_modules/apple-docs-mcp-server/embeddings.db

Available tools

  • search_docs: Search through all Apple documentation and design guidelines
  • get_doc: Get complete document content by ID
  • get_code_examples: Extract working Swift code examples from documentation with explanations
  • get_stats: Database statistics and information

Requirements

  • Node.js 18 or later
  • OpenAI API key
  • Cursor or compatible MCP client

License

MIT License - see LICENSE file for details.


This is an unofficial tool for accessing Apple developer documentation. No affiliation with Apple Inc.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选