A Model Context Protocol (MCP) server that provides seamless access to Apple's Developer Documentation directly within your AI coding assistant.
- π― 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 frameworksget_documentation- Get symbol or framework docs (handles both automatically)search_symbols- Search with wildcards and filterscheck_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
- π 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
- Node.js 18+ installed on your system
- npm (comes with Node.js)
-
Clone this repository:
git clone https://github.com/MightyDillah/apple-doc-mcp.git cd apple-doc-mcp -
Install dependencies:
npm install
-
Build the server:
npm run build
This compiles the TypeScript code and creates the
dist/folder with the executable server.
- 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"]
}
}
}/path/to/apple-doc-mcp with the actual path to your cloned repository.
π‘ Tip: To get the absolute path on macOS/Linux, run pwd inside the apple-doc-mcp folder.
- Restart your AI assistant
- Try: "List available Apple technologies"
- You should see 4 new tools available
- The server will automatically notify you if updates are available on startup
- Check Node.js version: Ensure you have Node.js 18+ installed (
node --version) - Verify build completed: Make sure
dist/index.jsexists after runningnpm run build - Use absolute paths: Relative paths in MCP config often fail
- Check config syntax: Ensure your JSON configuration is valid
- Restart completely: Close and reopen your AI assistant after config changes
# Navigate to your project folder
cd /path/to/apple-doc-mcp
# Test the server starts without errors
node dist/index.jsYou should see: Apple Developer Documentation MCP server running on stdio
# macOS/Linux - Get absolute path
pwd
# Example output: /Users/yourname/projects/apple-doc-mcp
# Windows
echo %cd%
# Example output: C:\Users\yourname\projects\apple-doc-mcpOnce configured, just talk naturally to your AI assistant. Here are examples:
"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"
"Use apple-doc-mcp to browse SwiftUI framework structure"
"Get current UIKit topics from Apple documentation"
"Search Apple docs for Foundation framework details"
"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 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.
Browse all available Apple frameworks and technologies.
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 for symbols across Apple frameworks with advanced filtering.
query(required): Search query with wildcard supportframework(optional): Search within specific frameworksymbolType(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 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
Server Won't Start
- Ensure Node.js 18+ is installed
- Verify the path in your MCP config points to the correct
dist/index.jslocation - 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
distdirectory 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
maxResultsfor faster responses
- 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
- Node.js: 18.0.0 or higher
- Memory: ~50MB RAM during operation
- Network: Internet connection to Apple's documentation API
Found a bug or want to add a feature? Contributions welcome!
- Fork the repository
- Create a feature branch
- Submit a pull request
See CONTRIBUTING.md for detailed guidelines.