Purpose Coding agents often spend paid remote tokens on simple tasks, such as summarizing logs or extracting fields from documents. fm-mcp lets agents like Claude Code and Codex hand such work to the small on-device model already available on the Mac, namely fm from Apple Foundation Models shipped with macOS 27. After handoff, no cost is incurred, text does not leave the local machine, and it can run offline. The project also explicitly tells agents what this small model cannot do.
Key capabilities
- Provides three tools: summarise, extract, and classify. They accept text or a text file path (up to 1 MB), so agents do not need to read file contents themselves. docs/TOOLS.md lists all parameters and invocation examples.
- On the first tool call, fm-mcp starts the model service itself (fm serve) and stops it when the session ends.
- Works as an ordinary stdio MCP server, and other clients running local servers on the same Mac can also connect.
- Automatically configures Claude Code and Codex via fm-mcp install, and can install skills and instructions that guide agents on when to hand off tasks.
- fm-mcp doctor is used for self-checks: it checks the Mac, macOS, fm, license, model, a test request, and the configuration of both agents, and gives fixes for failed items.
Usage Environment requirements: Apple Silicon Mac (Intel Macs are not supported), macOS 27, Apple Intelligence enabled, and a one-time fm license (fm license) accepted. This is the only supported scope; other environments are not supported. Installation: obtain the binary via Homebrew; if Homebrew is not yet installed, install it first from brew.sh, whose installer will ask whether to install the Xcode command line tools—accept and wait for completion. The material does not give the specific brew install command, so none is provided for now. Other ways to obtain the binary are also not listed in the material. Configuring agents: after running fm-mcp install, on the Claude Code side an fm-mcp MCP server is added to ~/.claude.json (when claude when the command exists, complete it via claude mcp add), and install the fm-delegate skill in ~/.claude/skills/; on the Codex side, it adds [mcp_servers.fm-mcp] to ~/.codex/config.toml, and adds a marked section to ~/.codex/AGENTS.md (or to AGENTS.override.md if that file is used). Before making changes, the command backs up each file and prints all changed paths; running it repeatedly produces no changes. Parameters: --claude or --codex configures only one of the agents, --dry-run only shows the changes without writing them, --no-guidance skips the skill and the AGENTS.md section, and fm-mcp install --uninstall removes everything it added. The skill and the AGENTS.md section are used to tell the agent when it should hand off tasks; without them, the agent can only see the tool descriptions, and handoff works poorly. Claude Code plugin method: the plugin can provide Claude Code with MCP servers and skills without requiring fm-mcp install, but it still requires the binary to already be in PATH (install it first via the Homebrew method above), otherwise Claude Code will report a server connection failure. For Claude Code, choose one of the two: the plugin or fm-mcp install; using both at the same time will result in two fm-mcp servers; when using the plugin, run fm-mcp install --codex to configure only Codex. Other MCP clients: fm-mcp install does not configure them, and they also do not get handoff guidance, so the agent can only judge on its own based on the tool descriptions. The following clients have been tested on a real Mac; other clients may work but have not been tested. Claude Desktop (tested version 2.31226.1, 2026-10-11): in Settings › Developer › Edit Config, add the corresponding configuration to mcpServers in claude_desktop_config.json, then quit and reopen Claude Desktop; you need to use the full path (you can use which fm-mcp print). fm-mcp is most helpful for local files on a Mac: give Claude the file path, and it passes in the path, so the text does not go through Claude; for web pages, Claude Desktop first reads the page itself, and handing it over saves nothing. Devin (formerly Windsurf, test version Devin.app 3.8.20, 2026-10-11): add the configuration to mcpServers in ~/.config/devin/mcp_config.json.
Use cases Suitable for handing simple text processing such as log summarization, document field extraction, and text classification to an on-device model, especially when working with local files, where the path can be passed in directly to avoid the text going through a remote model; also suitable for privacy-sensitive scenarios where you want offline completion and do not want to incur remote token costs.
Limitations
- Small model, small context: about 8K tokens, shared by input and answer; for logs full of IDs and numbers, each word consumes far more tokens than ordinary text.
- Not suitable for code, math, reasoning, facts not contained in the text, or tasks where a wrong answer is costly and cannot be verified.
- It makes mistakes: summaries may omit or distort details; extract usually returns null for fields that do not exist in the text, but it is not reliable. In a short invoice test, a missing PO number was filled in with the vendor name in 10 out of 25 cases. When the model gets stuck on a field, fm-mcp keeps the completed fields, sets the stuck field to null and explains, and that call takes about 15 seconds. You should only request fields that may exist in the text; nested schemas are less reliable than flat schemas. Important results need to be checked yourself.
- Handles only one request at a time: the model is shared by all sessions on the Mac, and calls queue up; a short extraction takes 1–2 seconds, and a long summary may take more than a minute.
- Safety filtering: the on-device model sometimes refuses harmless input; fm-mcp reports this explicitly, and the agent then completes the task itself.
- Privacy: all processing is done on the Mac; fm-mcp communicates with fm serve through a local Unix socket and sends nothing over the network; the text only enters the on-device model. SECURITY.md documents the details and how to report security issues privately.
Other The project is MIT-licensed, is not affiliated with or endorsed by Apple; it only calls the fm tool installed on the Mac and contains nothing from Apple. The author is Yasiru Rangana (AI Architect and AI Engineer, Sydney). MCP name: io.github.yrangana/fm-mcp; site: yrangana.github.io/fm-mcp (includes content on the measured limitations of on-device models during the build process). Project documentation also includes AGENTS.md (architecture, measured facts about fm serve, project rules), docs/MANUAL_TEST.md (test checklist for each version), and CHANGELOG.md (version changes).