The Install Before the First Question: What npx and uvx Cost an Apple Health MCP Server
Before your agent asks a single question about your sleep, it has to launch a server. For a Node server that is one npx call. For a Python server it is uvx, a resolver and a cache. We timed both from a clean machine state.
AI-assisted, human reviewed. How we use AI
Quick answer
On 2026-12-03, from empty caches on one Linux box, a Node Apple Health MCP server reached its first tool list in about 1 second and left a 1.2 MB cache. A Python one run through uvx took about 3.3 seconds and left a 342 MB cache of 43 packages. Warm, both answered in about 0.65 seconds. The gap is a one-time cost, and it is smaller than the failures that follow it: the wrong runtime on the client's PATH, and a cached version that never updates.
What we measured
The probe does the least a client does: spawn the server over stdio, send initialize, then tools/list, and stop the clock when the tool list arrives. Same machine, Node v24.15.0, npm 11.12.1, uv 0.11.7, with the npm and uv caches pointed at empty folders for the cold runs. Paste it and time your own:
import subprocess, json, sys, time
t0 = time.time()
p = subprocess.Popen(sys.argv[1:], stdin=subprocess.PIPE,
stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, text=True)
def send(o): p.stdin.write(json.dumps(o) + "\n"); p.stdin.flush()
send({"jsonrpc":"2.0","id":1,"method":"initialize","params":{
"protocolVersion":"2025-06-18","capabilities":{},
"clientInfo":{"name":"probe","version":"0"}}})
for line in p.stdout:
d = json.loads(line)
if d.get("id") == 1:
send({"jsonrpc":"2.0","method":"notifications/initialized"})
send({"jsonrpc":"2.0","id":2,"method":"tools/list"})
if d.get("id") == 2:
print(f"{time.time()-t0:.2f}s, {len(d['result']['tools'])} tools")
break
p.kill()
Run it as python3 probe.py npx -y health-export-mcp --demo and python3 probe.py uvx apple-health-mcp-server serve. The --demo flag serves our synthetic dataset, so no export file is needed. The Python server was started with no data folder, which still answers tools/list.
The numbers
| Route | Cold, two runs | Warm, two runs | Cache left behind |
|---|---|---|---|
npx -y health-export-mcp (1.15.0) | 1.02s, 1.09s | 0.70s, 0.72s | 1.2 MB |
uvx apple-health-mcp-server (0.6.2) | 3.17s, 3.38s | 0.66s, 0.64s | 342 MB, 43 packages |
python3 -m venv then pip install (0.6.2) | 12.18s to install | n/a | 350 MB virtualenv |
Two honest limits. This is one machine on a fast connection, so the ratio travels better than the seconds. And the Python server was already in a good case here: uv found an installed Python 3.14 on this box, which clears that server's 3.12 floor. On a laptop with an older system Python, uv fetches an interpreter first, which is its own cold cost we did not time.
Why the Python cache is 275 times larger
The Python server is built for a different job. It loads your export into a local DuckDB database, so it declares duckdb, pyarrow and lxml, among others, and needs Python 3.12 or later. That is a reasonable design for SQL over a large export, and the 342 MB is the price of the engine. Ours reads the files the app already wrote and has no runtime dependencies, which is why the cache is 1.2 MB and why it needs only Node 18 or later. Neither is wrong. They are two answers to where the work should happen, and the install is where you first pay for the choice.
One more data point, from a single cold run: a Node server that bundles a database, @neiltron/apple-health-mcp, took 12.84 seconds to its first tool list. We ran it once, so we are not ranking it, only noting that "npx" alone does not predict the number. What the package pulls in does.
Failure one: the client cannot find the launcher
The slow install is rarely what stops a person. The common stop is a client that cannot start the command at all. Desktop apps often launch with a shorter PATH than your shell, so a Node from nvm or Homebrew is invisible to them. Our README says what to do when the server works in a terminal but not in the client:
npx -y health-export-mcp --doctor
# works here, not in Claude Desktop? use the .mcpb,
# or put an absolute path in the client config:
{
"mcpServers": {
"health-export": {
"command": "/opt/homebrew/bin/npx",
"args": ["-y", "health-export-mcp"]
}
}
}
uvx has the same exposure. On the machine we tested, uvx lives in ~/.local/bin, a folder a GUI app does not always have on its PATH. Find yours with which uvx and use that absolute path in the same way. The point is that a faster install does not help if the client never reaches the launcher, so test the launcher from the client's side, not the terminal's.
Failure two: the cache that never updates
The Vaultbeat Python package documents a trap worth knowing for any uvx server: without @latest, uvx fetches the newest version once, then reuses its local copy on every later run. That means a fix you read about on the project page does not reach you until you ask for it. You can pin a version on purpose, which is often right for a health server you want to stay still, or write uvx name@latest if you want each launch to resolve the current release. The failure is not either choice. It is making neither choice and finding out later.
The npx side has a mirror image. npx -y resolves the latest version published to npm at run time, so a pinned health-export-mcp@1.15.0 is the way to freeze it. A pinned launch of health-export-mcp@1.15.0 started in 1.03 seconds in our run, so pinning costs nothing you will notice.
A short checklist before you pick
- Which runtime does it need, and is it on the client's PATH? Node 18 or later for ours, Python 3.12 or later for the one we tested.
- What does a cold start fetch? Count packages and megabytes, not just seconds.
- Is the version pinned or floating? Decide on purpose.
- Does
tools/listanswer with no data present? It means you can test the install before you have an export.
Where this leaves us
Our server, health-export-mcp, has 194 metrics, 21 tools (19 read-only, plus two that log events to a file beside the export) and 23 prompts, with zero dependencies. It reads files you own. Your health data never reaches us or a cloud AI. That does not make it the right pick for everyone: if you want to run SQL over a very large export, the DuckDB route is built for that, and the extra install is the cost of it. If you want a first tool call in about a second, count what each candidate downloads before you commit.
Frequently asked
Is npx or uvx faster for an Apple Health MCP server?
On our clean-cache run, npx reached a first tool list in about 1 second and uvx in about 3.3 seconds, because the Python server pulled 43 packages and a 342 MB cache. Warm, both took about 0.65 seconds. One machine, one day, so treat it as a method, not a verdict.
Why does my MCP server work in a terminal but not in Claude Desktop?
A desktop app often starts with a shorter PATH than your shell, so a Node from nvm or Homebrew, or a uv in ~/.local/bin, is not found. Run the server command in a terminal first, then give the client an absolute path to the executable or use a bundled install.
Does uvx update an MCP server on its own?
No. Without an @latest suffix, uvx reuses the version it cached on first run. Pin a version on purpose, or add @latest if you want each launch to resolve the newest release.
Time it yourself
One command, 21 tools (19 read-only), 23 prompts and 194 metrics. Free to install, open source, and it reads a file you own.
Where it goes: the app reads Apple Health read-only and writes JSON to a folder you pick. Nothing reaches us or a cloud AI. What you get: all 194 metrics, 21 tools (19 read-only) and 23 prompts. Setup: about two minutes. Price: $24.99 one time after a 7-day free trial, not a subscription.
Early access: your AI, reading your own Apple Health. The agentic upgrade opens to a small group first. Join the early-access list, one email when it opens.