swift-mcp
v1.0.1
Published
MCP server for Swift and SwiftUI best practices
Readme
Swift MCP Server
An MCP (Model Context Protocol) server that provides Swift and SwiftUI best practices, acting as a senior iOS/macOS developer expert.
Features
This MCP server provides the following resources:
- Swift Best Practices - Essential Swift language guidelines, code organization, memory management, and modern concurrency patterns
- SwiftUI Best Practices - Modern SwiftUI patterns, state management, performance optimization, and view composition
- Performance Optimization - iOS/macOS performance strategies including memory management, UI optimization, and profiling
- Core Data Best Practices - Robust Core Data implementation patterns, migration strategies, and performance tips
- UI/UX Guidelines - Apple platform UI/UX design principles, accessibility, animations, and platform-specific considerations
Installation
Claude Code
claude mcp add swift-mcp -- npx swift-mcpManual Configuration
Add to your MCP config:
{
"mcpServers": {
"swift-mcp": {
"command": "npx",
"args": ["swift-mcp"]
}
}
}Resources
Each resource provides comprehensive guidelines following:
- Ray Wenderlich Swift Style Guide
- Airbnb Swift Style Guide
- SwiftLint Rules
- Apple's Human Interface Guidelines
- What to fix in AI-generated Swift code
The MCP server acts as a senior iOS/macOS developer expert in Swift, SwiftUI, performance, Core Data, and UI/UX design.
