Provides access to curated Swift and SwiftUI patterns, best practices, and code examples for iOS application development.
Integrates with Patreon to unlock and access premium iOS development content from supported creators via OAuth authentication.
Aggregates and automatically synchronizes the latest Swift development articles and patterns from trusted creator RSS feeds.
Offers a knowledge base of curated Swift code examples, architectural patterns, and design principles from community experts.
Integrates with YouTube via API to fetch and index iOS development tutorials and educational content.
swift-mcp
šÆ Curated Swift/SwiftUI Patterns from Top iOS Developers
An MCP server providing curated Swift and SwiftUI best practices from leading iOS developers, including patterns and real-world code examples from Swift by Sundell, SwiftLee, and other trusted sources.
Quick Start ⢠Features ⢠Documentation ⢠Examples ⢠Contributing
š Table of Contents
šÆ About
swift-mcp is a Model Context Protocol (MCP) server that provides your AI assistant with access to curated Swift and SwiftUI patterns, best practices, and code examples from top iOS developers and educators.
Whether you're building a new iOS app or looking for solutions to common Swift problems, swift-mcp gives your AI assistant the knowledge to provide expert-level guidance based on real-world patterns from the Swift community.
Why swift-mcp?
ā Curated Content: Only high-quality patterns from trusted iOS developers
ā Always Up-to-Date: Automatically fetches the latest articles and patterns
ā MCP Native: Works seamlessly with Claude, Cursor, Windsurf, and other MCP-compatible tools
ā Privacy First: Free sources require no authentication
ā Extensible: Optional Patreon integration for premium content you already support
š Features
Core Features
š Expert Knowledge Base: Access patterns from Swift by Sundell, Antoine van der Lee, and more
š Intelligent Search: Query by topic, pattern, or specific iOS concepts
šÆ Quality Filtering: Configurable quality thresholds ensure only the best content
š Multiple Sources: Aggregate knowledge from various trusted educators
š Auto-Updates: Content automatically refreshes from RSS feeds
ā” Fast Performance: Efficient caching and indexed search
Built-in Sources (Free)
ā Swift by Sundell - Articles, patterns, and best practices
ā Antoine van der Lee - Tutorials, tips, and deep dives
ā Point-Free - Open source libraries and patterns
Premium Sources (Optional)
š Patreon Integration - Access premium content from creators you support
š Prerequisites
Before installing swift-mcp, ensure you have:
Node.js: Version 18.0.0 or higher (Download)
npm: Comes with Node.js
MCP-Compatible AI Assistant: Such as:
Any tool supporting the Model Context Protocol
š Quick Start
Get started in less than 2 minutes:
Test It Out
In your AI assistant (Cursor, Claude, etc.), try:
You'll get curated patterns from Swift by Sundell, Antoine van der Lee, and other top sources!
š¦ Installation
Global Installation (Recommended)
Configure Your AI Assistant
Cursor
Create or edit .cursor/mcp.json:
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
Windsurf
Create or edit .windsurf/mcp.json:
VS Code
Add to your VS Code MCP config:
Verify Installation
š§ Configuration
Configuration File
The configuration file is automatically created at ~/.swift-mcp/config.json:
Configuration Options
Option | Type | Default | Description |
| boolean |
| Enable/disable a source |
| number |
| Minimum quality score (0-100) |
| number |
| Cache time-to-live in seconds |
š Environment Variables
swift-mcp uses environment variables for optional premium features. Free sources work without any configuration.
Available Variables
Variable | Required | Description |
| For Patreon | OAuth client ID from Patreon Developer Portal |
| For Patreon | OAuth client secret from Patreon Developer Portal |
| For YouTube | Google API key for YouTube content |
Setting Variables in MCP Client Config (Recommended)
The recommended way to configure environment variables is through your MCP client's configuration file. This passes variables directly to the swift-mcp server.
Cursor
Claude Desktop
Windsurf
VS Code
Local Development
For local development and testing, you can use a .env file in the project root:
Copy the example file:
cp .env.example .envAdd your credentials:
# .env PATREON_CLIENT_ID=your_client_id PATREON_CLIENT_SECRET=your_client_secret YOUTUBE_API_KEY=your_api_keyThe
.envfile is automatically loaded when running the server locally.
Note: Never commit
.envfiles to version control. The.envfile is already in.gitignore.
š” Usage Examples
Once installed, ask your AI assistant natural questions:
Basic Queries
Advanced Queries
With Patreon Integration
š Content Sources
Free Sources
Currently supported, no authentication needed:
Source | Creator | Content Type | Update Frequency |
Swift by Sundell | John Sundell | Articles, patterns, best practices | Weekly |
Antoine van der Lee | Antoine van der Lee | Tutorials, tips, deep dives | Weekly |
Point-Free | Point-Free | Open source libraries, patterns | On release |
Premium Sources
Requires authentication and active subscriptions:
Source | What You Get | Setup Method | Status |
Patreon | Premium content from iOS creators | OAuth 2.0 | ā Available |
š Premium Integration (Optional)
Patreon Integration
Unlock premium content from iOS creators you already support on Patreon.
Requirements
Active Patreon account with at least one iOS creator subscription
Patreon Creator account (free - no need to launch a creator page)
10 minutes for one-time OAuth setup
Why Creator Account?
Patreon requires OAuth apps to be registered by creators. You don't need to launch a creator page or become an active creator - just register as one to create an OAuth app for personal use.
Setup Steps
Start the setup wizard:
swift-mcp setup --patreonFollow the interactive prompts to:
Create a Patreon OAuth application
Set up redirect URIs
Configure credentials
Complete OAuth authentication in your browser
Start using premium content immediately!
What You Get
ā Access to premium tutorials and patterns from creators you support
ā Automatic extraction of code from downloadable content
ā Quality filtering and advanced search
ā Multi-creator support
ā Private, secure authentication
š Detailed Guide: Patreon Setup Documentation
āļø Commands
Source Management
Configuration
Authentication
šļø How It Works
AI Assistant Query: Your AI assistant sends a query through the MCP protocol
swift-mcp Processing: The server searches enabled sources based on your query
Content Retrieval: Fetches and parses content from RSS feeds, APIs, and cached data
Quality Filtering: Applies configurable quality thresholds
Response: Returns formatted, relevant patterns and examples to your AI assistant
š§ Troubleshooting
Common Issues
Installation Problems
Error: Node version incompatible
Error: Permission denied during global install
Configuration Issues
Sources not returning results
Patreon Integration Issues
OAuth redirect not working
Ensure redirect URI is exactly:
http://localhost:3000/patreon/callbackCheck no other process is using port 3000
Verify OAuth credentials are correctly set
No premium content showing
Confirm you have active Patreon subscriptions to iOS creators
Re-authenticate:
swift-mcp auth patreonCheck Patreon source is enabled:
swift-mcp source list
Getting Help
š Full Documentation
š Report Issues
š¬ Discussions
š Documentation
Quick Start Guide - Get started in 2 minutes
Patreon Setup Guide - Detailed Patreon integration instructions
Project Structure - Technical architecture and codebase overview
šŗļø Roadmap
Current Focus (v1.x)
Core MCP server implementation
Swift by Sundell RSS integration
Antoine van der Lee RSS integration
Basic source management
Patreon OAuth integration
Point-Free GitHub integration
Advanced quality filtering
Code extraction from articles
Future Plans (v2.x)
Additional premium source integrations
More free content sources (developer blogs, newsletters)
Advanced content discovery and recommendations
Better content filtering and categorization
Local content caching improvements
Advanced search with vector embeddings
Custom source plugins
Long-term Vision
Community-contributed sources
Pattern recommendation engine
Code snippet validation
Integration with Xcode
Swift package ecosystem integration
š¤ Contributing
We welcome contributions! Whether it's bug reports, feature requests, or code contributions, we appreciate your help.
How to Contribute
Fork the repository
Create a feature branch:
git checkout -b feature/amazing-featureCommit your changes:
git commit -m 'Add amazing feature'Push to the branch:
git push origin feature/amazing-featureOpen a Pull Request
Development Setup
Areas We Need Help
š Bug fixes and testing
š Documentation improvements
šØ Adding new content sources
ā” Performance optimization
Code of Conduct
Please be respectful and constructive. We're here to build something great together!
š License
This project is licensed under the MIT License - see the LICENSE file for details.
š Credits
Created By
Lasha Efremidze - GitHub
Built With
Model Context Protocol - The protocol enabling AI-to-tool communication
TypeScript - Language and tooling
rss-parser - RSS feed parsing
Patreon API - Premium content integration
Content Sources
Special thanks to the iOS developers and educators whose content makes this possible:
š John Sundell - Swift by Sundell
š Antoine van der Lee - SwiftLee
š Point-Free - Advanced Swift education
Inspiration
This project was inspired by the need to bring expert iOS knowledge directly into AI-assisted development workflows.
Made with ā¤ļø for the Swift community
ā Star this repo ⢠š Report Bug ⢠⨠Request Feature