apple-docs
MCP server for semantic search through Apple developer documentation, WWDC transcripts, and code examples. 16K+ documents indexed for AI agents.
claude mcp add --transport stdio bbssppllvv-apple-docs-mcp-server node node_modules/apple-docs-mcp-server/run-mcp-safe.sh \ --env OPENAI_API_KEY="your_openai_api_key_here"
How to use
Apple Docs MCP Server provides a local search gateway to Apple's extensive developer documentation. It exposes tools that let your AI assistant query the Apple docs, fetch full documents by ID, extract Swift code examples with explanations, and retrieve database statistics. Use the server to power natural-language questions like how to implement a specific UI pattern, how to use a WWDC framework, or how to locate design guidelines, while the AI can present results with source links and relevant code samples. The system is designed to run locally, so responses are fast and do not require external API calls for documentation content.
To use it, connect your MCP client (for example Cursor) to the configured mcp.json in your project. The client can invoke tools such as search_docs to perform a natural-language search across all Apple docs, get_doc to fetch full content for a specific document, get_code_examples to pull working Swift code examples with explanations, and get_stats to inspect the database. Ensure you have an OpenAI API key set in the environment as required by the server, and that Node.js 18+ is installed on your machine. With this setup, your AI assistant can provide precise, source-backed answers drawn directly from Apple documentation and guidelines.
How to install
Prerequisites:
- Node.js 18 or later
- npm (comes with Node.js)
- OpenAI API key (for the MCP server usage)
-
Install the MCP server package
- Run in your project directory: npm install apple-docs-mcp-server
-
Ensure the documentation database downloads automatically during installation
- The server will download the 260MB documentation database as part of setup.
-
Create the MCP configuration file
- In your project root, create a file named .cursor/mcp.json with the following content (adjust the absolute path to your environment): { "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 } } }
-
Start or restart your MCP client (e.g., Cursor) to connect to the server using the configured mcp.json.
Note: If you modify environment variables or paths, restart the MCP client to apply changes.
Additional notes
Tips and common issues:
- If Cursor shows "No tools", ensure you have the absolute path to run-mcp-safe.sh in mcp.json and that the script is executable (chmod +x run-mcp-safe.sh).
- Put your OpenAI API key in the env section of mcp.json to avoid API key errors.
- If you run into database errors, reinstall the package and verify node_modules/apple-docs-mcp-server/embeddings.db exists.
- The documentation database is sizeable (around 260MB) and downloads automatically during installation.
- This server requires Node.js 18+ and an OpenAI API key; ensure both are available in your environment.
- Available tools: search_docs, get_doc, get_code_examples, get_stats.
Related MCP Servers
rtfmbro
rtfmbro provides always-up-to-date, version-specific package documentation as context for coding agents. An alternative to context7
Archive-Agent
Find your files with natural language and ask questions.
apple-mail
MCP server giving AI assistants full access to Apple Mail - read, search, compose, organize & analyze emails via natural language
mirroir
MCP server for controlling a real iPhone via macOS iPhone Mirroring...and any MacOs app. Screenshot, tap, swipe, type — from any MCP client.
context
Self-hosted MCP server for your documentation
shodan
Shodan MCP server for Claude, Cursor & VS Code. 20 tools for passive reconnaissance, CVE/CPE intelligence, DNS analysis, and device search. 4 tools work free without an API key. OSINT and vulnerability research from your IDE.