Use MLX-Serve when your goal is to connect an API-capable client to a model running on your Mac. This guide refers to ddalcu’s project; other repositories share the name.
Install on Mac
Official Mac download. In David Dalcu’s repository, click Download for Mac. The upstream README lists Apple Silicon and macOS 26.2 or later for the desktop app. Use the official Mac app instructions for the package and first launch before downloading a model.
Set it up
Check the macOS requirement for the official desktop release. Start with one small supported text model and confirm it replies in the app. In the external client, select the protocol documented by MLX-Serve that the client actually supports. Copy the base URL and model identifier from the running server. A request meant for an Anthropic-style Messages endpoint should not be pasted unchanged into an OpenAI-style client.
Check that it works
Submit a short prompt from the external client while the server is running. Stop the local server and repeat: the request should now fail. If it still returns text, inspect the client’s provider selection for a cloud fallback.
Test the local API before changing your client
Use the port and model ID from the successful model list for a short generation request. If that succeeds and your app still fails, compare the app’s base address and exact model identifier with the request you just verified. Keep the loaded model fixed during that comparison.
Use the port shown by your running MLX-Serve instance. The project’s API reference uses port 11234; replace it if your instance shows a different one. Start with a text chat model already loaded.
base=http://127.0.0.1:11234
curl -sS --max-time 5 -i "$base/v1/models"
Look for an HTTP 200 and the chat model you intend to use. Copy its exact ID from the response. A model listing confirms that the API can answer; it does not confirm that the model can generate text.
curl -sS --max-time 60 -i "$base/v1/chat/completions" \
-H 'Content-Type: application/json' \
-d '{"model":"REPLACE_WITH_MODEL_ID","messages":[{"role":"user","content":"Reply with a single short greeting."}],"max_tokens":128,"stream":false}'
- Connection refused: Confirm the local server is running and compare its port with the command.
- HTTP 200 with a model list but no usable chat reply: Check the exact model ID, whether it supports text chat, and the error body or model output. A 200 with an empty message is not a successful chat test.
- A chat reply here but not in your app: Check the app’s provider, model ID, and requested endpoint. A client that appends
/chat/completionsto an OpenAI base URL usually needshttp://127.0.0.1:11234/v1, while a field that asks for the full endpoint needs the whole path. Do not use the Chat Completions path for a Messages or Responses client. - The app still answers after you stop MLX-Serve: Ask it a fresh question and repeat the Terminal list check. If the local API is unavailable but the app still returns a fresh answer, check for another provider or fallback before treating it as local.
Test the route and the response format your client needs
Use the version of the API reference that matches your server. The MLX-Serve API reference documents multiple wire protocols on the same port. The OpenAI-compatible chat route and the Anthropic-style Messages route accept different request structures. A JSON payload that works against one should be checked against the other protocol’s required shape before you use it there.
For an OpenAI-compatible client, start with the non-streaming request above and write down the exact base URL, complete route and model ID. Look at the HTTP outcome and read the returned answer field. Try a request with a known result, such as asking for the appointment day in “Cedar review takes place Thursday.” A response that returns a plausible but different day establishes that the request produced text and failed the task. Save that result rather than changing both the model and the client settings.
Identify the first check that fails
If the local chat in the MLX-Serve app fails to load a model, review the downloaded artifact and the selected instance before debugging HTTP. If the app generates well but a loopback request cannot connect, check whether the listener is running and which port the app shows. If you can list models but the request returns a route or body error, inspect the URL and the selected protocol. If the direct request works and your external client fails, compare its provider, exact model ID and any path it appends to the base URL.
If plain chat works and a streaming client stalls, keep the successful non-streaming result. Change one setting to enable streaming and check whether the client receives and renders partial events, then whether it recognizes the end of the response. Some applications display a response only after buffering. Observe the timing at the client and report which boundary you actually measured. Avoid treating a blank streaming panel as a failed model load when the direct request still works.
Finally, if the app depends on a local server, stop it only during a test session you control and retry a new prompt. A continued successful answer after the local endpoint stops suggests another route is in use. Check the provider before assuming this application is safe to use without network access.
Write down the local contract your client expects
Identify the server address shown in MLX-Serve and keep it with the installed model identity. Also write down whether the client expects an OpenAI-compatible base URL or a full endpoint. A base URL may already include the version prefix, while a full route also names the operation. Use the documented route for the installed server. If the client appends the operation path itself, entering that operation again in its base field can produce a wrong URL. Check the actual requested path in the available diagnostics when the client reports a route error.
Choose a model compatible with your installed version and record the exact string returned by its model list. A library label can be easier to read than the ID the server accepts. Copy the server’s value into a simple direct request first. Leave the previous working model and address available while trying a new package. This lets you find whether the regression followed the model, route or client configuration.
For a longer-lived local setup, preserve the original endpoint with its port while testing another instance. Two local services can use nearby ports and implement similarly named routes. A response containing valid JSON could still come from the wrong process. Compare the model list with the expected one and verify the application behind that listener. Keep the local binding used for this single-Mac workflow while working through the routing problem.
Start with a complete non-streamed response
Use the direct chat route already shown above with a small answer key. For example, provide “Report ID KITE-29 is assigned to J. Han on Thursday” and request just the identifier and day. Record the request’s model ID, route, status and complete response. Verify both values. A valid JSON body and successful HTTP status show that the route responded. The two fields establish what the model actually did with the prompt.
When the server reports an error, read the response body before changing requests. A model-ID error after a successful list request suggests you should compare the selected ID with the list. If the route cannot be found, compare the full URL and API version. If the request reaches the model and stops midway, capture the server’s actual message and retest with a small input and suitable completion limit. Keep one failed example before moving to the next trial.
If the response completes but the answer returns KITE-92 or the wrong day, preserve that response as an accuracy failure. Try a second short input that differs only in the identifier, then inspect whether the same model and conversation settings were applied. This makes it easier to separate behavioral problems from configuration problems. If the purpose is document extraction, exact fields should be checked even if the interface renders every reply normally.
Compare the same endpoint in your application
Once direct chat works, configure the intended client with the same base, model ID and small message. Use a clean session and turn off optional actions when the real job allows it. Keep the direct response beside the client result. If the client fails before it sends a request, check its provider choice and required configuration. If the server receives a request with a different model or duplicated path, correct the corresponding field in the client. Use the route already verified by the direct example as your comparison point.
If the client accepts a response but displays nothing useful, inspect the response format it expects. Start with the documented complete response before enabling streaming. If the installed server and client both support streaming, look for the first displayed content and whether the client collects the complete answer. Record these separately. A server can produce useful content earlier than the final frame in a stream, while the client may wait or assemble the text differently. Verify the final identifier and weekday after the interface finishes.
Exercise only the response format your workflow needs
A script that extracts fields may care about a predictable machine-readable result. A chat client may need only correct readable text. For a machine-readable task, use an example with field names and an expected missing value. If you intend to request any structural controls, check support for the exact server and route first. After a reply, parse and inspect the documented response area, then check each required value against the source. A response’s transport format and the model’s generated text are different layers of the application.
If your client supports additional routes or request features, add only the one required for your use after the basic chat has passed. For instance, compare a short independent prompt with a client conversation that adds multiple messages. Record the expected result and the reason the extended route is needed. Validate that specific route using the documentation for your release. A working chat endpoint does not establish coverage of every operation another application can request.
Save repeatable local evidence before changing versions
Keep the version, local address, exact model identifier and one working short request in a handoff note. Store the expected fields and the returned text or structured values. If you use a remote or network-accessible configuration elsewhere, keep its record separate from the local setup. After changing ports, models or releases, repeat the smallest working request first. This helps show whether the new setup provided the same contract before you test its finer behavior.
For a development workflow that needs to reopen offline, first verify the required model and runtime assets are already present. When safe to do so, restart your own server and make the complete direct request again. Then test the client you will use. If the model endpoint appears but the first generation triggers a missing file, keep the existing setup’s readiness record and diagnose the asset path. If the client reports the old result after restart, use a new practice code to establish that the response was generated in the current session.
Record which observations were available. For example, list successful model discovery, completed direct chat and final client output as separate items. Add any unverified request type only if it matters to your planned use. Leave the known correct example in your notes so a teammate can reproduce the basic behavior without opening a long existing chat.
Work through a mismatch between two local ports
Imagine the intended server is available at the port shown in the app, but an editor is still configured with an old local port. The editor may display an error or reach another service. Compare the exact base and model discovery results before changing any inference settings. Update the editor to the known direct endpoint format for its provider and resend the same practice task. Confirm whether the server now sees the request and whether the application displays both expected values.
If the correct request still fails only with streaming turned on, step back to the complete non-streaming check. Keep separate notes for the direct route and the client. A team can keep working with the confirmed complete response while it investigates the streaming assembly its application needs. If the basic route no longer works, restore the last working application settings and verify the documented endpoint again before opening another issue.
Verify a local API result that another program will store
Take a concrete automation task, such as writing the model’s interpretation of a short appointment note into a local text record. Make a harmless two-line response key with the identifier and day. Send the known request directly and keep the complete reply. Then run the intended client with the exact same task and inspect the saved record. Check that it has both expected values in the right places. A rendered chat window and a file written by a program exercise different consumers of the local service.
If your client needs machine-readable fields, write down the expected shape before testing. For example, agree that the saved record should contain an ID as a text value and a weekday as a second text value. Submit a second note with no weekday and decide in advance how the consumer should represent that missing value. Check the model’s text and the client interpretation separately. The local service’s successful HTTP response cannot tell you whether the receiving program saved the right fields.
Find which layer produced an incomplete result
When the direct request returns both fields but the saved record is missing one, inspect what arrived at the client for the same request. Check the complete response text before changing the model. If the field was present and the record lost it, isolate the assignment or parsing step. If the direct request for the client’s actual input also omits it, compare that input with the known working one. The client may have added or removed instructions, or it may be calling a different model.
When a short message works and a representative larger one fails, keep the exact output criteria and document the amount of extra input. Write down the error or stopping point and the prompt the server received if available. A smaller verified excerpt can keep the job usable. If you increase capacity or change a quantization, compare those same cases again before promoting the new setup.
Cycle the components that need to restart in the actual workflow. Reopen the app, list the model ID and send a fresh answer key after startup. Then reopen the consumer and read the saved result again. Include the installed release and a record of which file or UI received it. Once this passes, you have a minimal local handoff that another developer can repeat after an update.
Who built it
David Dalcu maintains this project under ddalcu. His announcement in Apple’s MLX community is dated July 3, 2026. That confirms the project was public by then; the exact first release date and any company founding date were not verified.