
苹果文档
STDIO为AI编程助手提供苹果开发文档的MCP服务器
为AI编程助手提供苹果开发文档的MCP服务器
A Model Context Protocol (MCP) server that provides seamless access to Apple's Developer Documentation directly within your AI coding assistant.
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*
, ?
)Clone this repository:
git clone https://github.com/MightyDillah/apple-doc-mcp.git cd apple-doc-mcp
Ready to use! (Pre-built distribution included)
# No build step required - just configure your MCP client
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.
Once 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.
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 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_updates
Check for available updates from the git repository.
Server Won't Start
dist/index.js
location"0 tools" Showing Up
dist
directory is included - no build step requirednode /path/to/apple-doc-mcp/dist/index.js
No Results Found
"*View*"
instead of "View"
Performance Issues
maxResults
for faster responsesFound a bug or want to add a feature? Contributions welcome!
See CONTRIBUTING.md for detailed guidelines.