Overview
Features
Apple Foundation Models Integration
Leverages Apple's on-device language models for text generation to enable private, on-device inference.
MCP Protocol Implementation
Implements the Model Context Protocol for MCP clients using the swift-sdk.
Environment-based Configuration
Supports runtime configuration via environment variables, including SYSTEM_INSTRUCTIONS and DEBUG for prompts and debugging.
Graceful Service Lifecycle
Uses swift-service-lifecycle for clean startup and shutdown handling.
Command-line Argument Parsing
Parses and processes CLI arguments using swift-argument-parser.
Claude Desktop Integration
Can be registered in Claude Desktop's mcpServers config to route requests to the Foundation Models MCP server.
Who Is This For?
- MCP clients:Access Apple's on-device Foundation Models for private, secure text generation through MCP.
- Mac developers:Integrate private on-device text generation into macOS applications via MCP.
- Claude Desktop users:Configure Claude Desktop to route MCP foundation-models requests to the on-device server.




