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
{
"mcpServers": {
"foundation-models": {
"command": "/path/to/mcp-foundation-models/.build/release/mcp-foundation-models",
"args": [
]
}
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
Recommend MCP Servers 💡
smartzan63/lucid-mcp-server
MCP server enabling multimodal LLMs to access and analyze Lucid diagrams through visual exports
spotify-mcp-server
A lightweight [Model Context Protocol (MCP)](https://modelcontextprotocol.io) server that enables AI assistants like Cursor & Claude to control Spotify playback and manage playlists.
aperag-mcp
ApeRAG: Production-ready GraphRAG with multi-modal indexing, AI agents, MCP support, and scalable K8s deployment
urlDNA
The urlDNA MCP Server enables LLM agents to interact with the urlDNA threat intelligence platform for URL scanning and phishing detection via an SSE interface.
eunomia-mcp-server
An extension of the Eunomia framework that connects Eunomia instruments with MCP servers to orchestrate data governance policies like PII detection and user access control.
horizondatawave/hdw-mcp-server
MCP server providing access to LinkedIn data and user account management via HorizonDataWave API