An MCP server that integrates Apple's FoundationModels for text generation.
A Model Context Protocol (MCP) server that provides text generation capabilities using Apple's Foundation Models framework. This server enables MCP clients to access Apple's on-device language models for secure, private text generation.
Clone the repository:
git clone <repository-url>
cd mcp-foundation-models
Build the project:
swift build -c release
The executable will be available at:
.build/release/mcp-foundation-models
Edit Claude configuration file '$HOME/Library/Application Support/Claude/claude_desktop_config.json'
Add this server full path as "mcpServers" sub object
{
"mcpServers": {
"foundation-models": {
"command": "/path/to/mcp-foundation-models/.build/release/mcp-foundation-models",
"args": [
]
}
The server supports configuration through environment variables:
SYSTEM_INSTRUCTIONS
: Set default system instructions for the AI assistantDEBUG
: Enable debug logging (any non-empty value)MIT