apple-docs
Provides offline Apple developer documentation search and retrieval across indexed frameworks.
Discover and filter indexed Apple frameworks with pagination.
Fetch detailed documentation for a symbol or article, with optional framework and concise output.
Run hybrid semantic search using FTS5 plus vector embeddings with RRF and lexical fallback.
Perform lexical symbol search with BM25, wildcard matching, and framework/platform/type filters.
Get server version and index metadata.
Check index health, freshness, search mode, kind distribution, and attribution defects.
Provides instant, offline-first access to Apple Developer Documentation, including symbol search across Apple frameworks, rich documentation retrieval, and technology discovery.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@apple-docs Get docs for SwiftUI's NavigationStack"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Apple Developer Documentation Studio (apple-doc-plugin)
Offline-first Apple Developer Documentation suite for Hermes Agent: 95,899 Apple SDK symbols across 30 frameworks, sub-5ms SQLite FTS5 search, React/Web/Android-to-SwiftUI Idiom RRF, automatic swift build compiler diagnostic grounding hook, @apple: context references, and a native Hermes Desktop Studio.
Built for the Hermes Agent Plugin Hackathon (November 2026) · Requires Hermes Agent >=0.22.5 · macOS, Linux, and Windows · Zero API keys required.
Judges, start here (2 seconds, zero API keys, zero Node setup needed):
Enable
apple-doc-pluginand run/apple-docs demoin any Hermes chat (orhermes apple-docs demoin CLI). It benchmarks wildcard FTS5 globbing (Navigation*View), React-to-SwiftUI idiom RRF (useEffect$\rightarrow$.task(id:_:)), behavioral recall ("prevent sheet swipe dismiss"$\rightarrow$interactiveDismissDisabled(_:)), and live compiler diagnostic grounding in ~85 ms, rendering interactive::apple-doc{...}cards inline in Hermes Desktop.Open Apple Docs in the Hermes Desktop sidebar (
/apple-docs) or click 95.9k Docsin the bottom statusbar to explore all 95,899 symbols, the Cross-Framework Idiom Rosetta Stone, and the interactive Xcode Compiler Error Lab.Type
@apple:NavigationSplitViewor@apple:useEffectin any Hermes prompt to expand verified Apple DocC declarations straight into context.
Why a Hermes Plugin (and Not a Prompt or Skill)
Hermes Surface | Registered Via | What It Does That a Skill Cannot |
Desktop Workspace Studio ( |
| Full 4-tab master-detail explorer over 95,899 symbols, interactive React/CSS/Android Rosetta Stone, and live Xcode compiler error simulator backed by |
Inline Transcript Cards ( |
| Renders native interactive Apple API cards directly inside assistant messages with availability pills, 1-click |
Dockable Right Inspector + Statusbar + |
| Persistent side-by-side API lookup drawer next to active coding sessions plus |
Automatic Compiler Grounding Hook |
| Intercepts failed |
|
| Adds |
|
| Zero-LLM-cost instant lookup ( |
6 Native Agent Tools + Bundled Skill |
| Sub-5ms Python |
Related MCP server: Apple RAG MCP
Desktop Studio Preview
Cross-Framework Idiom & Behavioral Recall
Developers and AI models frequently reason in React, CSS, or Android mental models, or describe desired UI behaviors rather than exact Apple symbol identifiers:
Query / Mental Model | Naive Keyword Search | What |
"prevent sheet swipe dismiss" | 0 matches |
|
"React useEffect equivalent" | 0 matches |
|
"SharedPreferences" / "localStorage" | 0 matches |
|
"display: flex" | 0 matches |
|
"Android Room database" | Unrelated matches |
|
"dismiss keyboard on tap outside" | 0 matches |
|
| Literal failure |
|
Install & Usage in Hermes Agent
hermes plugins install apple-doc-plugin
hermes plugins enable apple-doc-pluginSlash Commands (In Any Hermes Session)
/apple-docs demo— Run the 4-stage live benchmark + render inline::apple-doccards/apple-docs status— Inspect offline symbol count, frameworks, and latency/apple-docs idiom useEffect— Translate React/Web/Android patterns to Swift 6 / SwiftUI/apple-docs doc NavigationSplitView— Fetch Swift declaration, availability, and parameters/apple-docs search Grid*— Wildcard FTS5 symbol search
Inline @apple: Context References
Attach authoritative Apple documentation directly to any prompt:
Build a 3-column macOS document browser using @apple:NavigationSplitViewMigrate this React component's @apple:useEffect and @apple:localStorage hooks to SwiftUIStore credentials securely in the Keychain with @apple:Security/SecItemAdd
Offline Index Coverage (95,899 Symbols)
The shipped read-only SQLite FTS5 index (data/apple-docs.db) covers 95,899 symbols across Swift and Objective-C/C symbol trees with zero network setup required:
Framework | Symbols | Framework | Symbols |
Swift | 18,442 | CoreData | 1,170 |
Foundation | 13,013 | Combine | 1,062 |
AppKit | 12,654 | SwiftData | 552 |
UIKit | 11,449 | CoreLocation | 474 |
Security | 7,331 | RegexBuilder | 462 |
SwiftUI | 7,202 | LocalAuthentication | 246 |
RealityKit | 6,235 | Synchronization | 196 |
AVFoundation | 5,614 | Distributed | 93 |
WebKit | 3,193 | BundleResources | 88 |
Vision | 1,915 | ObjectiveC | 77 |
StoreKit | 1,531 | AVFAudio | 45 |
AuthenticationServices | 1,473 | Observation | 37 |
MapKit | 1,299 | + cross-ref modules | visionOS, WidgetKit, PassKit, AVKit |
Configuration (config.yaml)
Setting | Type | Default | Description |
|
|
| Append verified Apple DocC migration hints when |
|
|
| Route tool calls through the optional Node.js >= 22 MCP bridge even when dense vectors are not hydrated. |
Optional secret (via Hermes profile .env / agent.secret_scope.get_secret): GEMINI_API_KEY (only used if opting into hosted gemini-embedding-2 dense vector embedding in the Node runtime).
First Node start: when the optional Node.js bridge first launches and node_modules is absent, bin/launcher.cjs runs npm ci (lockfile-exact) from a git clone — or npm install from an npm tarball, which cannot ship a lockfile — and then builds dist/ with tsc. This writes node_modules/ and dist/ into the plugin's own folder and reaches the npm registry (dependency packages, including ones with native install scripts); nothing is installed globally. The npm child environment has plugin credentials (GEMINI_API_KEY, Google ADC variables) stripped before install scripts run.
Security & Behavior Disclosure (Catalog Rule 13)
Surfaces registered: 6 tools (
search_symbols,semantic_search,get_documentation,discover_technologies,get_version,index_info), 1 hook (transform_terminal_output), 1 slash command (/apple-docs), 1 CLI subcommand (hermes apple-docs), 1 context reference (@apple:), 1 bounded system-prompt guidance snippet (apple-docs-directives), 1 skill (apple-docs), 1 FastAPI router (dashboard/plugin_api.pyunder/api/plugins/apple-doc-plugin/), and 1 Desktop bundle (desktop/plugin.jsusing strictly@hermes/plugin-sdkandreact).Filesystem access: Reads its own shipped
data/apple-docs.dbin read-only URI mode (?mode=ro). Writes no files during normal Hermes operation — the one exception is the first optional Node-bridge start, which installs dependencies and buildsdist/inside the plugin's own folder (see "First Node start" above). In write-enabled Node hybrid mode, dense vectors hydrate intodata/apple-docs.runtime.db(falling back to$XDG_CACHE_HOME/apple-doc-pluginif the bundle is read-only).Network calls:
search_symbols,semantic_search,discover_technologies,get_version,index_info,/apple-docs demo, and thetransform_terminal_outputcompiler hook are 100% offline. Onlyget_documentation(and Desktop Studio symbol selection withlive=true) performs an HTTPSGETtohttps://developer.apple.com/tutorials/data/documentation/<symbol>.json(strictly host-checked todeveloper.apple.com, 2.5s timeout, 2 MiB cap) to enrich offline metadata with full Swift declaration tokens, falling back to the local SQLite database if unreachable. The first optional Node-bridge start additionally reaches the npm registry (see "First Node start" above).Subprocesses & credentials: The default Python SQLite FTS5 engine spawns no subprocesses and requires no credentials. An optional Node.js (
>=22) MCP child process (bridges/hermes/hermes_bridge.py) starts only ifprefer_node_bridge: trueis configured or dense vectors are hydrated inapple-docs.runtime.db; under Hermes,GEMINI_API_KEYis resolved exclusively viaagent.secret_scope.get_secret("GEMINI_API_KEY")(Rule 11) — in standalone npm/MCP use a plugin-root.envmay supply it instead. The bridge child environment setsAPPLE_DOCS_DISABLE_ADC=1, so ambient Google Application Default Credentials (GOOGLE_APPLICATION_CREDENTIALS, the gcloud credential file, or the cloud metadata server) are never used under Hermes — a key is required for hosted embeddings.Telemetry: None. No analytics, tracking, or third-party endpoints.
Prior art & pre-existing work: Authored by Andrew Mason (
AndrewMason7). Tool naming conventions originally inspired byMightyDillah/apple-doc-mcp; the 95,899-symbol SQLite FTS5 corpus, cross-framework idiom RRF engine, Python native engine, compiler diagnostic hook,@apple:context reference provider, and Hermes Desktop Studio were built forapple-doc-plugin(with the full Hermes native Desktop/Hook/Directive/Context-Reference suite built for the November 2026 Hackathon).
License
MIT © 2026 Andrew Mason
Available Tools
6 toolsdiscover_technologiesB
List and filter Apple frameworks that are indexed in the local database.
Inputs: page, query, pageSize.
get_documentationA
Point lookup for detailed symbol or article documentation (Swift syntax declarations, parameters, return types, deprecations). Queries local SQLite database first, falling back to Apple DocC CDN. Not a search tool. Pass framework directly (e.g. framework: "SwiftUI") if known.
Inputs: path (required), concise, framework.
get_versionA
Get the current server version and runtime index metadata (symbol count, indexed frameworks, snapshot build timestamp, embedding status)
Inputs: no named parameters.
index_infoA
Report index HEALTH (not just metadata): freshness provenance, real search mode (lexical vs hybrid), kind distribution, unclassified-symbol count, and framework/path attribution defects that degrade symbolType and framework filtering
Inputs: no named parameters.
search_symbolsA
Lexical symbol search using SQLite FTS5 BM25 with exact-title boosting and wildcard pattern matching (*, ?). Accepts optional framework, platform, and symbolType. Purely local lexical search; does not call Gemini.
Inputs: query (required), platform, framework, maxResults, +1 more.
semantic_searchA
Hybrid search combining SQLite FTS5 lexical search and vector embeddings (local in-process EmbeddingGemma 2 or cloud Gemini) with Reciprocal Rank Fusion (RRF). Search by natural language intent, conceptual query, or API name. If vector embedding provider is unavailable or circuit breaker is open, automatically falls back to lexical search with notice in result text.
Inputs: query (required), platform, framework, maxResults, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
The two search tools are properly differentiated (semantic_search = hybrid/intent-based, search_symbols = purely local lexical/BM25 with wildcards), and discover_technologies vs get_documentation have distinct browse-vs-lookup roles. The weakest boundary is get_version vs index_info, which both report index metadata, though index_info is explicitly framed as health/defect reporting.
All names are snake_case, but the pattern is mixed: four are verb_noun (discover_technologies, get_documentation, search_symbols, get_version) while semantic_search and index_info are noun phrases with no verb, and 'index_info' vs 'get_version' use different idioms for sibling metadata tools.
Six tools is well-scoped for a local Apple docs index: one per core need (browse frameworks, point lookup, two search modes, version, health). Nothing feels padded or missing from the count perspective.
Covers discovery, symbol/article lookup, two complementary search strategies, and index diagnostics, which is a full read-only lifecycle for a docs server. Minor gaps: no related-symbols/see-also traversal, no batch/multi-symbol lookup, and no way to list articles within a framework short of searching.
Maintenance
Related MCP Connectors
Search and read Apple developer documentation, HIG, and WWDC transcripts as Markdown.
Find Apple docs and WWDC with RAG retrieval and Jev relevance ranking. Browse topics or read pages.
Access and search Branch's official API documentation directly within any AI agent or client.
Versioned documentation registry and semantic search for AI tools and coding assistants.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceProvides AI agents with instant access to official Apple developer documentation, Swift programming guides, design guidelines, and Apple Developer YouTube content including WWDC sessions. Uses advanced RAG technology with semantic search and AI reranking to deliver accurate, contextual answers for Apple platform development.7-
- FlicenseNot gradedqualityNot gradedmaintenanceProvides AI agents with instant access to official Apple developer documentation, Swift docs, design guidelines, and Apple Developer YouTube content through advanced semantic and hybrid search capabilities. Features AI-powered reranking for accurate retrieval of Apple platform knowledge including iOS, macOS, watchOS, tvOS, and visionOS development resources.5-
- AlicenseAqualityDmaintenanceProvides access to Apple's official developer documentation, frameworks, APIs, and WWDC session transcripts across all Apple platforms. It enables AI assistants to search technical guides, sample code, and platform compatibility information using natural language queries.181,152 npm1,388MIT
- AlicenseNot gradedqualityBmaintenanceProvides access to Apple documentation and WWDC transcripts with semantic, keyword, and hybrid search capabilities, enabling developers to quickly find relevant code examples and technical information.116MIT