- Explore MCP Servers
- mcp-foundation-models
Mcp Foundation Models
What is Mcp Foundation Models
The MCP Foundation Models server provides text generation functionalities utilizing Apple’s Foundation Models framework, enabling secure and private on-device language model access for text generation.
Use cases
This server can be used in various applications requiring text generation, such as chatbots, virtual assistants, and content creation tools, ensuring data privacy by processing requests on the user’s device.
How to use
To use the server, clone the repository, build the project using Swift, and configure the relevant application (like Claude Desktop) to point to the server’s executable path. You can also set default system instructions and enable debug logging using environment variables.
Key features
Key features include integration with Apple’s on-device language models for enhanced privacy and performance, support for command line argument parsing, and graceful service lifecycle management.
Where to use
Ideal for applications running on macOS 26.0 or later, particularly on Apple Silicon Macs, where it can leverage the full capabilities of Apple’s Foundation Models for text generation tasks.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Mcp Foundation Models
The MCP Foundation Models server provides text generation functionalities utilizing Apple’s Foundation Models framework, enabling secure and private on-device language model access for text generation.
Use cases
This server can be used in various applications requiring text generation, such as chatbots, virtual assistants, and content creation tools, ensuring data privacy by processing requests on the user’s device.
How to use
To use the server, clone the repository, build the project using Swift, and configure the relevant application (like Claude Desktop) to point to the server’s executable path. You can also set default system instructions and enable debug logging using environment variables.
Key features
Key features include integration with Apple’s on-device language models for enhanced privacy and performance, support for command line argument parsing, and graceful service lifecycle management.
Where to use
Ideal for applications running on macOS 26.0 or later, particularly on Apple Silicon Macs, where it can leverage the full capabilities of Apple’s Foundation Models for text generation tasks.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
mcp-foundation-models
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.
Features
- Apple Foundation Models Integration: Leverages Apple’s on-device language models for text generation
Requirements
- macOS 26.0 or later (macOS Tahoe)
- Xcode 26.0 or later
- Swift 6.2 or later
- Apple Silicon Mac (for optimal Foundation Models)
Installation
Building from Source
-
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
Use it in Claude Desktop for instance
Edit Claude configuration file ‘$HOME/Library/Application Support/Claude/claude_desktop_config.json’
Add this server full path as “mcpServers” sub object
Environment Variables
The server supports configuration through environment variables:
SYSTEM_INSTRUCTIONS: Set default system instructions for the AI assistantDEBUG: Enable debug logging (any non-empty value)
Dependencies
- swift-argument-parser: Command line argument parsing
- swift-sdk (MCP): Model Context Protocol implementation
- swift-service-lifecycle: Graceful service lifecycle management
TODO
- manage some session id to keep some conversation history
License
MIT
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










