The value here is retrieval quality rather than volume: a small set of trusted educators, a quality filter on what gets indexed, and a store that keeps what you already looked up. The premium half is genuinely optional — the free sources work with no credentials at all, and Patreon only matters if you already support the creators it reaches.
An MCP server over a curated body of Swift and SwiftUI writing. It fetches, caches, and indexes four public sources, keeps what it finds in a single-file store so recall survives a restart, and can reach Patreon creators once OAuth is set up.
- get_swift_pattern — reference patterns from the free sources, narrowed by topic, by source, or by a minimum quality score
- search_swift_content — one natural-language search across every enabled source, with an option to require code in the results
- list_content_sources — which sources exist and which are currently on
- enable_source — turn a source on, premium ones included once they are configured
- Persistent memory in ~/.swift-patterns-mcp/swift-patterns-memory.mv2, so a pattern found last session is still findable after a restart
- Semantic recall as an opt-in fallback when keyword scores come in low, with a configurable activation threshold
- Auto-refreshing content from RSS feeds and GitHub, so the index tracks what the sources publish
Node.js 18.0.0 or higher. Clients run npx -y swift-patterns-mcp@latest; the same command opens a setup wizard when you run it in an interactive terminal, and the wizard can write the config for Cursor, Claude Code, Windsurf, or VS Code. Nothing else is needed for the four free sources. Configuration lands at ~/.swift-patterns-mcp/config.json. Patreon content needs PATREON_CLIENT_ID and PATREON_CLIENT_SECRET, and YOUTUBE_API_KEY adds video search from those creators. Semantic recall downloads a transformer model the first time it runs.
One command — npx -y swift-patterns-mcp@latest
