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 💡
clojars-deps-server
A Model Context Protocol (MCP) server that provides tools for fetching dependency information from Clojars, the Clojure community's artifact repository.
pkgx
A Model Context Protocol server that can run any Open Source tool via pkgx.
paperpal
An MCP extension that provides LLMs access to arXiv and Hugging Face papers for literature review and discussion.
CLDGeminiPDF
An MCP server that enables Claude Desktop to analyze PDF documents using Google's Gemini AI models, extracting text and providing intelligent analysis.
SiddheshDongare/GIT-Pilot
A FastMCP-based server for GitHub automation and management, simplifying repository, pull request, and issue operations.
mcp-cli
A powerful, feature-rich command-line interface for interacting with Model Context Protocol servers.