Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

MCP server that enables local Apple on-device Foundation Model access via any MCP client, supporting text generation, structured output, and multi-turn chat on macOS.

README.md

apple-fm-mcp

![CI](https://github.com/yihan2099/apple-fm-mcp/actions/workflows/ci.yml) ![License: MIT](https://opensource.org/licenses/MIT) ![Python 3.10+](https://www.python.org/downloads/)

MCP server for Apple on-device Foundation Models. Use Apple Intelligence from any MCP client — Claude Code, Cursor, Windsurf — running locally on your Mac for free.

Built on python-apple-fm-sdk and the Model Context Protocol.

Requirements

  • macOS 26+ (Tahoe) with Apple Intelligence enabled
  • Apple Silicon Mac (M1+)
  • Python 3.10+
  • apple-fm-sdk — Apple's Python SDK for on-device Foundation Models

Installation

From source (recommended)

git clone https://github.com/yihan2099/apple-fm-mcp.git
cd apple-fm-mcp
uv sync

You also need the Apple Foundation Models SDK:

pip install git+https://github.com/apple/python-apple-fm-sdk.git

Note: apple-fm-mcp is not yet published to PyPI. uv tool install and pip install from PyPI will be available in a future release.

Usage

Claude Code

claude mcp add apple-fm -- apple-fm-mcp

Cursor / Windsurf

Add to your MCP config (~/.cursor/mcp.json or equivalent):

{
  "mcpServers": {
    "apple-fm": {
      "command": "apple-fm-mcp"
    }
  }
}

MCP Inspector

npx @modelcontextprotocol/inspector apple-fm-mcp

Tools

| Tool | Description | |------|-------------| | check_model_availability | Check if the on-device model is available | | generate | One-shot text generation with optional instructions | | generate_structured | JSON output matching a provided schema | | chat | Multi-turn conversation with named sessions | | tag_content | Content tagging using Apple's CONTENT_TAGGING use case | | list_sessions | List active conversation sessions | | clear_session | Delete a named session | | clear_all_sessions | Delete all sessions |

Examples

Generate text: > "Use apple-fm to explain what a closure is in Swift"

Structured output: > "Use apple-fm generate_structured to extract {name, email, company} from this text: ..."

Multi-turn chat: > "Start an apple-fm chat session called 'code-review' and ask it to review this function" > "In the 'code-review' session, ask it to suggest improvements"

Resources

| URI | Description | |-----|-------------| | apple-fm://status | Model availability + device info | | apple-fm://sessions | Active sessions metadata | | apple-fm://transcript/{name} | Conversation transcript for a session |

Prompt Templates

| Prompt | Parameters | Description | |--------|-----------|-------------| | summarize | text, style (concise/detailed/bullet-points) | Summarize text | | extract_structured | text, fields (comma-separated) | Extract named fields as JSON | | classify | text, categories (comma-separated) | Single-label classification |

Limitations

  • macOS only — Apple Foundation Models require Apple Silicon and macOS 26+
  • No streaming — MCP tools return complete responses
  • In-memory sessions — conversation state is lost when the server restarts
  • On-device model limits — the model is optimized for short tasks (summarization, extraction, classification), not long-form generation
  • No image/audio — text-only; multimodal support may come in future SDK versions

SDK Documentation

This project wraps apple-fm-sdk. Key references:

Development

git clone https://github.com/yihan2099/apple-fm-mcp.git
cd apple-fm-mcp
uv sync --dev
uv run pytest

Tests mock apple_fm_sdk so they run on any platform.

Linting

uv run ruff check src/ tests/
uv run ruff format src/ tests/

Contributing

See CONTRIBUTING.md for guidelines.

License

MIT

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use AI & ML servers.