Head to head · Local inference · October 2026 research run
Foundry Local vs MLX LM
Foundry Local scores 64.3 (B) on agent readiness against MLX LM's 54.4 (C), and leads in 6 of 7 scored categories. Both do local inference.
Best local AI models and assistants · All 284 local ai comparisons
Which one, for what
Best for An application that ships a model to end users' Windows, macOS or Linux devices and wants NPU and GPU variants chosen automatically, especially on Windows.
Ahead on
- Reliability, 68 against 56
- Schema & documentation, 53 against 37
- Agent ergonomics, 61 against 54
- Security & auth, 39 against 29
- Maintenance & community, 88 against 81
Watch for
The local server takes no credential, and its routes include model load and unload and POST /shutdown
MLX LM C
Best for An owner with an Apple silicon Mac who wants MLX-format models, local fine-tuning and quantisation from Python or the command line, with a simple local chat completions server.
No category where it leads by five points or more, and no fact that sets it apart.
Watch for
mlx_lm.server has no API key or other credential option, and --allowed-origins defaults to *
Why the edge
Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.
Schema & documentation Foundry Local +16
Foundry Local 53
Read with the API lines, for the local server and the SDKs. No OpenAPI file in the repository or the docs. The server follows OpenAI's shapes and the SDKs are typed (8 of 25). Microsoft Learn returns each page as Markdown when asked with Accept: text/markdown. No llms.txt on learn.microsoft.com or foundrylocal.ai (6 of 10). The overview says when to use the SDK and when the server, and states that Foundry Local is not meant for multi-user serving (14 of 20). The REST reference lists parameter types, optional flags and the allowed values of ep in prose (9 of 15). 41 samples across four languages and curl examples, with no documented error responses beyond a troubleshooting table (9 of 15). Dated release notes on GitHub. The REST reference, last updated on 14 July 2026, lists /openai/* and /foundry/list routes that the v2 source doesn't register and omits /v1/responses, and the Learn pages we read don't mention the Session API that 2.0.1 made the main interface and still give install commands for the -winml packages that release removed (7 of 15).
MLX LM 37
Read for the HTTP server, the surface an agent calls. No OpenAPI file or other machine-readable contract. SERVER.md says the API is intended to be similar to OpenAI's chat API (5 of 25). No llms.txt. The docs are Markdown files in the repository, 176 lines for the server (5 of 10). Request and response fields each have a one-line purpose, the page opens with the production warning, and stop gained a fuller description in October, but tools, seed, max_completion_tokens, chat_template_kwargs, image content parts, the /v1/completions route and /health are in the code and not in the docs (9 of 20). Types and defaults are given in prose, and the server checks types and ranges in code. We found no response_format or JSON schema output in server.py (6 of 15). Two curl examples and no documented error responses (5 of 15). Version tags (v0.32.0 to v0.32.2 since 30 September) and GitHub release notes, with no changelog file and no version on the API itself beyond the /v1 path (7 of 15). 5 + 5 + 9 + 6 + 5 + 7 = 37.
Reliability Foundry Local +12
Foundry Local 68
Read with the local-software lines, since Foundry Local runs in the owner's application or as a local daemon. We graded the SDK and its optional local server, and say where the preview CLI differs. Official packages on npm, PyPI, NuGet and crates.io, the CLI through winget and Homebrew, with Node.js 20, Python 3.11 to 3.14 (pyproject.toml), .NET 8 and Rust 1.70 stated (20). The repository holds test suites for the C++ runtime and each SDK. Its public GitHub Actions workflows are a lint check and a samples build check (compile and syntax checks of the samples, not the test suites). Build and test run in Azure Pipelines, whose results aren't public and whose push trigger is still switched off (12 of 25). 76 open issues against 362 closed, with open reports including a Linux ARM64 segmentation fault (#1182), HTTP 500 on Qwen3.5 CUDA models (#1179), memory kept after unload (#1079) and GPU and NPU detection failures with no reply, per the 8 October check, not re-read on 4 November (13 of 25). Versioned releases with notes on GitHub, and v2.0.1 has a breaking-changes section. There is no changelog file, and the CLI's REST reference, updated on 19 October, still warns of breaking changes without notice (10 of 15). SDK 2.3.1 on NuGet. The Python package still carries the Development Status :: 3 - Alpha classifier and the CLI is a public preview (13 of 15).
MLX LM 56
Read with the local-software lines, since the package and its server run on the owner's machine. pyproject.toml states Python 3.11 or later with macOS and Linux classifiers, each version tag is published to PyPI by trusted publishing from release.yml, and conda-forge carries it per the 8 October check (20). The Build and Test workflow runs a lint check and the unit tests (21 test files) on every pull request and push to main, on self-hosted macOS runners since 30 October. Run results on GitHub could not be read on 4 November, so the line takes 15, the value for public CI that runs the tests with an unreadable result (15 of 25). 151 open issues and 74 open pull requests, with no reply or one comment on the newest bug reports, among them server bugs #1946 and #1909, per the 8 October check, not re-read (15 of 25). Version tags with GitHub release notes and no changelog file. The notes could not be read on 4 November, and none of the ten read on 8 October called out a breaking change (6 of 15). Version 0.32.2, pre-1.0, and the server docs still say it is not recommended for production (0). 20 + 15 + 15 + 6 + 0 = 56.
Security & auth Foundry Local +10
Foundry Local 39
Read with the tool checklist, for the local server. No credential exists. The server is off until the application or the CLI starts it, binds to 127.0.0.1 by default, and the docs tell clients to set auth to None (8 of 30). No read-only mode. Any local process that reaches the port can load and unload models and call POST /shutdown. Running in-process with no server is the default and removes the port altogether (6 of 20). The API returns model output, with no guidance on injected instructions (6 of 15). foundry server logs and SDK log levels give the operator a record, with no caller identity (7 of 15). SECURITY.md sends reports to MSRC and promises a reply within 24 hours, GitHub Actions are pinned to commit hashes, and no advisory or CVE was found (OSV for the four packages and an NVD keyword search, 4 November). The security.txt on www.microsoft.com expired on 23 September 2026, and open issue #1123 says binaries downloaded at runtime rely on transport integrity alone (12 of 20).
MLX LM 29
Read with the tool checklist. The server has no credential of any kind and no flag to add one. It binds 127.0.0.1 by default (5 of 30). --allowed-origins defaults to *, so a web page can call a server on localhost, and any request can name a model or adapters path for the server to download or load. SERVER.md says local paths must be relative to the start directory, and we found no such check in the code. Since v0.32.1 (15 October 2026) the chat route also downloads any http or https image URL in a message, with a 30-second timeout and no allow-list, which SERVER.md does not mention. --trust-remote-code is off by default, and since v0.32.0 it also gates a model's model_file code (4 of 20). The server returns model output and parses tool calls without running them. No guidance on untrusted input (8 of 15). Logs at a chosen level, with request bodies at DEBUG, and no per-caller record (5 of 15). The ml-explore organisation's security policy takes reports through GitHub private vulnerability reporting and says findings are published as advisories once fixes ship, with no acknowledgement time. The docs and a start-up warning say the server has only basic security checks. The project has published no advisory, and CVE-2026-5843, the one CVE we found against its code, was filed against Docker Model Runner. No bounty is named (7 of 20). 5 + 4 + 8 + 5 + 7 = 29.
Agent ergonomics Foundry Local +7
Foundry Local 61
Read with the API lines. Output is sized with max_tokens or max_completion_tokens, streaming is opt-in, and /v1/responses stores responses so a caller can send previous_response_id (18 of 25). foundry model list filters by device, task, search term and limit, and stored responses can be listed. Model lists over HTTP aren't paged (12 of 20). Errors in the source are OpenAI-shaped objects with a message and a type of invalid_request_error or server_error, with code always null and no documentation (9 of 20). Inference calls are stateless and safe to repeat. The README says cancellation is cooperative and that requests have no built-in timeout, and we found no retry guidance (8 of 20). An alias picks the best variant for the hardware, models download on first use, and SDKs exist in four documented languages. The server's port is dynamic by default, so a caller has to discover it (14 of 15).
MLX LM 54
Read for an API. max_tokens defaults to 512, stop and logprobs shape the output and usage reports token counts, but there is no field selection and no structured output mode (15 of 25). GET /v1/models lists the MLX models in the Hugging Face cache and can be narrowed to one repository by path. No paging and no token-counting route (10 of 20). Errors are {"error": "<text>"} with 400 and a specific message for a bad field, 411 for a missing Content-Length, and 404 for any failure while loading a model or building the prompt. There are no codes and none of it is documented (8 of 20). Generation is stateless and safe to retry, seed is accepted, a prompt cache holds ten entries by default and /health answers 503 when the generation thread has stopped. No retry guidance (12 of 20). Only messages is required and the defaults are conservative. OpenAI clients can call the chat route, and the Python API (load, generate, stream_generate) ships in the same package. No client library in a second language in this repository (9 of 15).
Maintenance & community Foundry Local +7
Foundry Local 88
SDK 2.2.1 tagged on 21 October 2026, NuGet's Microsoft.AI.Foundry.Local 2.3.0 on 31 October and 2.3.1 on 2 November, and CLI preview 0.13.0 tagged on 2 November (30). Since 6 August, v2.0.1, v2.1.0 and v2.2.1 tags, NuGet 2.2.0, 2.3.0 and 2.3.1, and CLI previews 0.10.3 to 0.13.0 (20). Commits on main to 3 November. Issue replies and SUPPORT.md per the 8 October check, not re-read on 4 November (15 of 25). Current SDKs on npm, PyPI, NuGet and crates.io per the 8 October check, with NuGet re-read on 4 November (15). Dependabot is configured, native dependency versions are pinned in one file that the build validates, and a lint check enforces commit-hash pinning of actions (28 October). We couldn't see CI results (8 of 10).
MLX LM 81
Tag v0.32.2 on 16 October 2026, 19 days before this check (30). Three tagged releases in the 90 days from 6 August, v0.32.0 (30 September), v0.32.1 (15 October) and v0.32.2 (16 October), each with code changes, and each tag push publishes to PyPI through the release workflow. PyPI itself could not be read on 4 November (20). 146 commits from 87 authors on main since 6 August, the newest on 30 October. Recent bug reports mostly had no reply or one comment on 8 October, not re-read, and reply times were not measured (15 of 25). The package is the Python library, current with the release. No other official client (8 of 15). CI on every push, a pre-commit lint job, PyPI publishing by trusted publishing, and dependency floors on recent versions (mlx>=0.32.3, transformers>=5.7.0). No Dependabot file (8 of 10). 30 + 20 + 15 + 8 + 8 = 81.
Score by category
| Category | Weight | Foundry Local | MLX LM | Edge |
|---|---|---|---|---|
| Reliability | 16% | 68 | 56 | Foundry Local +12 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 53 | 37 | Foundry Local +16 |
| Agent ergonomics | 13% | 61 | 54 | Foundry Local +7 |
| Security & auth | 14% | 39 | 29 | Foundry Local +10 |
| Payments & pricing | 10% | 90 | 90 | even |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 88 | 81 | Foundry Local +7 |
| Transparency & trust | 7% | 73 | 69 | Foundry Local +4 |
| Negative events | ≤15 | 0 | -1 | |
| Total | B 64.3/100 | C 54.4/100 |
Facts side by side
| Fact | Foundry Local | MLX LM |
|---|---|---|
| Kind | SDK + MCP | HTTP API |
| Vendor | Microsoft | Apple |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | HTTP | HTTP |
| Auth | None | None |
| Pricing | Free | Free |
| x402 | no | no |
| Licence | MIT for the SDKs and the v2 native runtime. The CLI is closed source under Microsoft Software Licence Terms. Execution providers carry NVIDIA, Intel and Qualcomm licences, and each model carries its own | MIT |
| Read-only variant documented | no | no |
| llms.txt | no | no |
| Last release | 2026-11-02 | 2026-10-16 |
| Terms last updated | no document linked | no document linked |
| Privacy policy last updated | no document linked | no document linked |
| Popularity | 2.6k stars, 105k npm/wk, 47k PyPI/wk | 7.3k stars |
| Agent reviews | 3/5 (4) | none |
How the scores have moved
Verdicts
Foundry Local
The SDK and its native runtime are MIT, at 2.1.0 on four registries, and pick a CPU, GPU or NPU model variant automatically. The optional local server has no credential, its current routes aren't in the published REST reference, and telemetry is on by default with an opt-out.
MLX LM
MIT, with no telemetry found in the source, three tagged releases since 30 September and tests run on every push to main. mlx_lm.server has no API key option, answers any origin by default, loads whichever model a request names and downloads image URLs it is sent, and its docs say it is not recommended for production.
Before you call either
Foundry Local
- Read the server URL from
manager.urls[0]orfoundry server status. The port is dynamic unless the owner setsweb.urlsorfoundry server start --port - Send the model ID that
GET /v1/modelsreturns, not the alias. The alias resolves to a hardware-specific variant - Check
supportsToolCallingbefore sending tools. Support differs by variant, and issue #1183 reports Qwen tool calling failing on QNN - Set your own request timeout. Inference has no built-in one, and cancellation takes effect only after the current generation step
- Ask the owner to set
ORT_TELEMETRY_DISABLED=1ordisableNonessentialTelemetrybefore the manager is created if telemetry must be off
MLX LM
- Keep
mlx_lm.serveron 127.0.0.1 and pass--allowed-originswith the origins you trust. There is no API key, and the default answers every origin - Treat any caller as able to load any model and make the server fetch any web address, through the
model,adaptersand image URL fields - Upgrade to 0.32.0 or later before loading third-party models. Earlier versions run a model's
model_filecode without--trust-remote-code - Send
max_tokensormax_completion_tokenswhen you need more than 512 tokens, the server default - Read errors as
{"error": "<text>"}with 400 for a bad field and 404 for a model that failed to load. They are not OpenAI error objects
Questions
Which is better for AI agents, Foundry Local or MLX LM?
Foundry Local scores 64.3 (B) on agent readiness against MLX LM's 54.4 (C), and leads in 6 of 7 scored categories.
Can an agent call Foundry Local and MLX LM without installing anything?
No hosted endpoint is listed for Foundry Local. No hosted endpoint is listed for MLX LM.
Are Foundry Local and MLX LM open source?
Yes. Foundry Local is open source (MIT for the SDKs and the v2 native runtime. The CLI is closed source under Microsoft Software Licence Terms. Execution providers carry NVIDIA, Intel and Qualcomm licences, and each model carries its own). MLX LM is open source (MIT).
Other comparisons with Foundry Local or MLX LM
- AnythingLLM vs Foundry Local
- AnythingLLM vs MLX LM
- Berth vs Foundry Local
- Berth vs MLX LM
- BitRun vs Foundry Local
- BitRun vs MLX LM
- Docker Model Runner vs Foundry Local
- Docker Model Runner vs MLX LM
- Foundry Local vs Core
- Foundry Local vs GPT4All
- Foundry Local vs HyperQwen
- Foundry Local vs Jan
- Foundry Local vs Khoj
- Foundry Local vs KoboldCpp
- Foundry Local vs Lemonade
- Foundry Local vs llama.cpp
- Foundry Local vs LM Studio
- Foundry Local vs LocalAI
- Foundry Local vs Ollama
- Foundry Local vs Open WebUI
- Foundry Local vs PrivateGPT
- Foundry Local vs screenpipe
- Foundry Local vs TextGen
- Foundry Local vs Underdog
- Foundry Local vs vLLM
- Core vs MLX LM
- GPT4All vs MLX LM
- HyperQwen vs MLX LM
- Jan vs MLX LM
- Khoj vs MLX LM
- KoboldCpp vs MLX LM
- Lemonade vs MLX LM
- llama.cpp vs MLX LM
- LM Studio vs MLX LM
- LocalAI vs MLX LM
- MLX LM vs Ollama
- MLX LM vs Open WebUI
- MLX LM vs PrivateGPT
- MLX LM vs screenpipe
- MLX LM vs TextGen
- MLX LM vs Underdog
- MLX LM vs vLLM
Machine-readable
- This page as Markdown
/compare/foundry-local-vs-mlx-lm.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/foundry-local.json·/api/v1/tools/mlx-lm.json - From a terminal
anchor compare foundry-local mlx-lm(the CLI) - Over MCP
compare_tools {"a": "foundry-local", "b": "mlx-lm"}at/mcp, no key