swiftlens
SwiftLens is an MCP server that provides deep, semantic-level analysis of Swift codebases to AI models.
SwiftLens bridges AI models and Swift development by leveraging SourceKit-LSP for Xcode-grade accuracy. It offers features like token-optimized output, real-time code understanding, and cross-file navigation, enabling AI agents to interact with Swift code effectively. The server supports modern Swift syntax and complex types, ensuring comprehensive analysis and safe code modifications.
Compatible with
Install
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"swiftlens": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-swiftlens"
]
}
}
}Config File Location
Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/claude/claude_desktop_config.json
Some servers require additional setup - check the GitHub README for specific instructions.
Permissions