Start immediately with anonymous access (30 calls/week). Sign in at apple-rag.com/overview anytime for personalized prompts, MCP tokens, authorized IPs, and higher limits.
Overview
Start immediately with anonymous access (30 calls/week). Sign in at apple-rag.com/overview anytime for personalized prompts, MCP tokens, authorized IPs, and higher limits.
README
Quick Start
[!TIP] No account or API key required to try. Start immediately with anonymous access (30 calls/week). Sign in at apple-rag.com/overview anytime for personalized prompts, MCP tokens, authorized IPs, and higher limits.
Option 1: MCP (Recommended)
Connect any MCP-capable agent directly to https://mcp.apple-rag.com (Streamable HTTP), or copy a tailored setup prompt from the connection guide.
Claude Code
claude mcp add-json --scope user apple-rag-mcp '{"type":"http","url":"https://mcp.apple-rag.com","headers":{"X-Apple-RAG-Client":"claude"}}'
Codex (~/.codex/config.toml)
[mcp_servers.apple-rag-mcp]
url = "https://mcp.apple-rag.com"
[mcp_servers.apple-rag-mcp.http_headers]
X-Apple-RAG-Client = "codex"
Option 2: CLI (Shell-based Agents)
For agents with shell access (Node.js 22.20+), apple-rag-cli exposes the exact same three tools plus a bundled apple-dev-docs agent skill.
npm install -g apple-rag-cli
# Try immediately without signing in
apple-rag search "SwiftUI NavigationStack path binding" --limit 3 --json
# Link your account via browser OAuth PKCE / Device Grant when needed
apple-rag auth login
# Or install the bundled apple-dev-docs Agent Skill directly
npx skills add BingoWon/apple-rag-mcp
See packages/cli/README.md for exit codes, --output, unattended automation keys, and agent skill setup.
Three Tools, One Workflow
Both MCP and CLI expose the same focused surface so agents pull only the official context they need:
| Tool | Purpose | Example |
|---|---|---|
search |
Hybrid keyword + semantic search across Apple docs & WWDC transcripts (English queries) | apple-rag search "StoreKit Transaction currentEntitlements" --limit 4 |
browse |
Explore SwiftUI & UIKit topic trees without guessing documentation URLs | apple-rag browse "https://developer.apple.com/documentation/swiftui/view" --depth 1 |
fetch |
Read full documentation or supported public webpages with source & retrieval provenance | apple-rag fetch "https://developer.apple.com/documentation/swiftui" |
Agent task: "How do I bind NavigationStack path state on iOS 26/27?"
1. search("SwiftUI NavigationStack NavigationPath binding")
└─▶ Hybrid recall (exact symbol + pgvector) ─▶ Ranked by Jev ─▶ Top official passages + URLs
2. browse("https://developer.apple.com/documentation/swiftui/navigation") [optional]
└─▶ Official SwiftUI topic hierarchy & related symbols
3. fetch("https://developer.apple.com/documentation/swiftui/navigationstack")
└─▶ Full page content, availability & code examples with canonical Apple source URL
Why Apple RAG
- Hybrid Retrieval + Decision Model Ranking — Combines exact symbol/lexical matching with 2560-dim
pgvectorsemantic recall, then ranks candidates with Jev against your query’s API, platform, and OS version constraints. Requests from mainland China route automatically to Microsoft Decision 1.1 via ZenMux, with Qwen fallback if the primary ranker is unavailable. - Apple Docs Pulse (Live Documentation Radar) — A continuous 5-minute
ETagcollector monitors Apple framework roots and release notes, records structured diffs, deprecations, and beta changes, and publishes automated daily/weekly bilingual AI trend digests plus RSS/JSON feeds at apple-rag.com/updates. - 4-Stage Resilient
fetch— Resolves pages in order from the indexed corpus → fresh cache → official Apple DocC JSON → live extraction fallback, returning provenance metadata while keeping third-party pages strictly outside the Apple search index. - Zero-Friction Compatibility & Isolated Credentials — Supports modern stateless MCP
2026-07-28alongside legacyinitializehandshakes so Cursor, Claude Code, Codex, and VS Code connect out of the box. MCP tokens, authorized IPs, CLI device sessions, and automation keys are independently revocable while sharing one account quota.
Plans & Shared Quotas
All tool calls (search, browse, fetch) share a single account allowance across MCP connections, CLI devices, and automation keys. Retrieval model calls are included.
| Plan | Weekly Quota | Rate Limit | Pricing |
|---|---|---|---|
| Anonymous Trial | 30 calls | 3 / min | Free — no sign-up |
| Free Account | 50 calls | 5 / min | Free (Sign up) |
| Pro | 50,000 calls | 50 / min | $1 / week (Card & Alipay · subscription or one-time pass) |
| Enterprise | Custom | Custom | Contact us |
Architecture & Repository
The hosted service at apple-rag.com manages the corpus, continuous collector, vector database, and retrieval model credentials. The complete application source is open in this repository:
flowchart LR
Agents["AI Agents (MCP / CLI)"] --> Edge["Cloudflare Worker (API · MCP · Cron)"]
Edge --> D1["Cloudflare D1 (Accounts · Quotas · Logs)"]
Edge --> PG["PostgreSQL + pgvector (Docs · Catalog · Diffs)"]
Edge --> Rank["Hybrid Search (Embeddings + Jev / Decision)"]
Edge --> Apple["Apple Docs JSON & Web Fetch"]
| Path | Description |
|---|---|
worker/ |
Cloudflare Worker runtime — MCP server (2026-07-28 + legacy), REST & CLI OAuth APIs, hybrid search engine, Docs Pulse collector |
src/ |
React 19 + Vite + Tailwind CSS v4 frontend — website, /connect, /updates radar, user dashboard, admin console |
packages/cli/ |
Standalone apple-rag-cli npm package |
shared/ |
Pure cross-runtime contracts, tool metadata, and datetime helpers |
skills/ |
Agent skill definition (skills/apple-dev-docs/SKILL.md) |
Local Development
pnpm install
pnpm verify # Parallel lint and typecheck
pnpm build # Production web + Cloudflare Worker bundle
pnpm dev # Start local Vite + Worker dev server
License
Licensed under the MIT License.
Recommended Tools
Try a different keyword or remove a filter.
Install
npx skillfish add bingowon/apple-rag-mcp