Skip to main content
Glama
Apple RAG MCP

Apple RAG MCP

Apple RAG

Apple developer documentation and WWDC transcripts for AI agents — via MCP or CLI.

Website · Connect Guide · Docs Pulse · CLI on npm · English | 简体中文

CI Release npm CLI MCP 2026-07-28 License: MIT Listed on mcpservers.org Glama MCP

Powered by Jev & RAG hybrid retrieval

376,000+

1,880+

395,000+

Every 5 min

Apple Doc Pages

WWDC Videos

Indexed Chunks

Live Docs Radar


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.

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"
{
  "mcpServers": {
    "apple-rag-mcp": {
      "type": "http",
      "url": "https://mcp.apple-rag.com"
    }
  }
}
  • Transport: Streamable HTTP (https://mcp.apple-rag.com)

  • Protocol: Stateless MCP 2026-07-28, with legacy initialize support (2025-11-25, 2025-06-18, 2025-03-26)

  • Auth (optional): Add Authorization: Bearer <MCP_TOKEN> from your dashboard or authorize your IP at apple-rag.com/authorized-ips

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.


Related MCP server: Apple RAG MCP

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 pgvector semantic 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 ETag collector 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-28 alongside legacy initialize handshakes 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 &amp; 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.

Better docs. Better context. Better code.

Get Started → · Explore Docs Pulse →

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Provides 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
      -
    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Provides 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
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides comprehensive access to Apple's development documentation ecosystem including hidden Xcode docs, Swift Evolution proposals, GitHub repositories, and WWDC session notes. Enables developers to search and retrieve advanced Apple development resources not available through public channels.
      16
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Provides 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.
      18
      996 npm
      1,389
      MIT