Apple Doc MCP

Apple Doc MCP

A Model Context Protocol server that provides AI coding assistants with direct access to Apple's Developer Documentation, enabling seamless lookup of frameworks, symbols, and detailed API references.

Category
访问服务器

Tools

list_technologies

List all available Apple technologies/frameworks

search_symbols

Search for symbols across Apple frameworks (supports wildcards like "RPBroadcast*")

check_updates

Check for available updates from the git repository

get_documentation

Get detailed documentation for any symbol, class, struct, or framework (automatically detects and handles both)

README

Apple Doc MCP

A Model Context Protocol (MCP) server that provides seamless access to Apple's Developer Documentation directly within your AI coding assistant.

📋 Changelog

1.0.1 Update

  • 🎯 Intelligent Fallback System: When searching for frameworks instead of symbols (e.g., "SwiftUI"), the server now provides helpful framework information and guidance on correct usage
  • 🔧 Tool Consolidation: Streamlined from 4 tools to 4 focused tools:
    • list_technologies - Browse all Apple frameworks
    • get_documentation - Get symbol or framework docs (handles both automatically)
    • search_symbols - Search with wildcards and filters
    • check_updates - Check for repository updates via git
  • 🚀 Pre-built Distribution: No more manual building required - clone and use immediately
  • 🧹 Dynamic Framework Discovery: Removed all hard-coded framework lists for fully dynamic operation
  • ⚡ Automatic Update Notifications: Server automatically checks for updates on startup and notifies users when new versions are available
  • 🛡️ Enhanced Error Handling: Better null safety and professional error messages

🚀 Features

  • 🔍 Smart Search: Find symbols across all Apple frameworks with wildcard support (*, ?)
  • 📚 Framework Browsing: Explore any Apple framework structure (SwiftUI, UIKit, Foundation, etc.)
  • 📖 Detailed Documentation: Get comprehensive symbol documentation with examples
  • 🎯 Advanced Filtering: Filter by platform (iOS, macOS, etc.), symbol type, or framework
  • ⚡ Real-time Data: Always up-to-date with Apple's latest documentation
  • 🔄 Auto-Update Alerts: Automatic notifications when repository updates are available
  • 🧠 AI-Optimized: Clean markdown output perfect for AI assistants

📦 Installation

  1. Clone this repository:

    git clone https://github.com/MightyDillah/apple-doc-mcp.git
    cd apple-doc-mcp
    
  2. Ready to use! (Pre-built distribution included)

    # No build step required - just configure your MCP client
    

🔌 Quick Setup

Step 1: Configure Your AI Assistant

Claude Desktop: Edit ~/.config/claude/claude_desktop_config.json Cursor: Settings (Cmd/Ctrl + ,) → Extensions → MCP Continue.dev: Edit ~/.continue/config.json VS Code (Claude): Settings → MCP Servers

{
  "mcpServers": {
    "apple-doc-mcp": {
      "command": "node",
      "args": ["/path/to/apple-doc-mcp/dist/index.js"]
    }
  }
}

Replace /path/to/apple-doc-mcp with the actual path to your cloned repository.

Step 2: Restart & Test

  1. Restart your AI assistant
  2. Try: "List available Apple technologies"
  3. You should see 4 new tools available
  4. The server will automatically notify you if updates are available on startup

🎯 How to Use

Once configured, just talk naturally to your AI assistant. Here are examples:

Browse Available Technologies

"Use apple-doc-mcp to list all current Apple frameworks"
"Get the latest available Apple technologies from Apple's docs"
"Search Apple documentation for all available frameworks"

Explore a Framework

"Use apple-doc-mcp to browse SwiftUI framework structure"
"Get current UIKit topics from Apple documentation"
"Search Apple docs for Foundation framework details"

Search for Specific APIs

"Search Apple's SwiftUI docs for drag and drop APIs"
"Use apple-doc-mcp to find RPBroadcast* classes in ReplayKit"
"Look up current *View* symbols across Apple frameworks"
"Find all *Controller classes in UIKit using Apple docs"

Get Detailed Documentation

"Get the latest SwiftUI View protocol docs from Apple"
"Use apple-doc-mcp to look up UIViewController documentation"
"Search Apple's current docs for NSURLSession details"

The AI will automatically use the MCP tools to fetch current Apple documentation and provide comprehensive answers.

🛠️ Available Tools

list_technologies

Browse all available Apple frameworks and technologies.

get_documentation

Get detailed documentation for symbols or frameworks (automatically detects type).

  • path (required): Documentation path (e.g., "documentation/SwiftUI/View") or framework name (e.g., "SwiftUI")

Examples:

{"path": "SwiftUI"}
{"path": "documentation/SwiftUI/View"}
{"path": "Foundation"}

search_symbols

Search for symbols across Apple frameworks with advanced filtering.

  • query (required): Search query with wildcard support
  • framework (optional): Search within specific framework
  • symbolType (optional): Filter by symbol type (class, protocol, struct, etc.)
  • platform (optional): Filter by platform (iOS, macOS, etc.)
  • maxResults (optional): Maximum results (default: 20)

Examples:

{"query": "RPBroadcast*"}
{"query": "*Controller", "framework": "UIKit"}
{"query": "*View*", "platform": "iOS", "maxResults": 5}

check_updates

Check for available updates from the git repository.

  • No parameters required
  • Shows current branch status, available updates, and update instructions
  • Note: The server automatically checks for updates on startup and displays notifications

🚨 Troubleshooting

Server Won't Start

  • Ensure Node.js 18+ is installed
  • Verify the path in your MCP config points to the correct dist/index.js location
  • Check your MCP configuration syntax
  • Restart your AI assistant after config changes

"0 tools" Showing Up

  • This usually means the server isn't starting properly
  • Check the file path in your configuration is correct and absolute
  • The dist directory is included - no build step required
  • Try testing the server directly: node /path/to/apple-doc-mcp/dist/index.js

No Results Found

  • Try broader search terms
  • Use wildcard patterns: "*View*" instead of "View"
  • Remove filters to expand search scope

Performance Issues

  • First search may be slower (builds cache)
  • Subsequent searches are much faster
  • Reduce maxResults for faster responses

⚙️ Technical Details

  • 10-minute caching to avoid API rate limits
  • 15-second timeouts for reliable performance
  • Smart framework prioritization for faster searches
  • Graceful error handling for robust operation

📋 Requirements

  • Node.js: 18.0.0 or higher
  • Memory: ~50MB RAM during operation
  • Network: Internet connection to Apple's documentation API

🤝 Contributing

Found a bug or want to add a feature? Contributions welcome!

  1. Fork the repository
  2. Create a feature branch
  3. Submit a pull request

See CONTRIBUTING.md for detailed guidelines.

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选