Install locally
Two commands put Turf™ on your machine and add it to your agent: the MCP server your agent talks to
and the engine that plans and applies. The engine starts when a tool first needs it and keeps running,
so a rollout keeps going after the conversation that started it ends. Homebrew adds the turf CLI and
an engine that starts at login.
Read the terms at turf.build/license/v1 first: the first line accepts them.
npx -y @turfbuild/turf-mcp-server license accept # downloads Turf, about a minute, and accepts the termsnpx add-mcp@2 @turfbuild/turf-mcp-server --name turf -gIt needs Node 18 or later, on macOS or Linux, arm64 or x64.
The first line downloads Turf in your terminal, which takes about a minute, and records your
acceptance once, in ~/.turf/license.json. The second registers the server with the agents on this
machine: it runs add-mcp, Neon’s open-source
installer, which finds the agents you have installed, asks which ones to add Turf to, and writes each
one’s config. Running it again replaces the entry. Restart Claude Desktop or Cursor after the config
changes.
There is nothing else to install. npm brings the server, the engine and the console, and the engine starts when a tool first needs it. Your agent’s first start is quick, since the download is done. If it fails, turn Turf off in your agent, run the first line in a terminal and let it finish, then reconnect. Later starts take several seconds.
This install has no turf CLI. Where these pages run turf-mcp-server, run
npx -y @turfbuild/turf-mcp-server in its place.
brew install restatedev/tap/restate-server turfbuild/tap/turfHomebrew adds the turf CLI and an engine that starts at login. After you
accept the license and connect your agent, the server
starts the engine when a tool first needs it. To start it at every login instead:
brew services start turf # optional: the engine at every logincurl -fsSL https://get.turf.build/install.sh | bashWith Homebrew on your PATH the script runs the Homebrew install and starts the service. Without it,
the script unpacks the release into ~/.turf/bin, with restate-server beside it, and the server
starts the engine when a tool first needs it. To run the engine in a terminal instead:
turf-mcp-server engine runOptions: --no-brew, --dir DIR, --no-start, --no-telemetry, --verify, --accept-eula.
The script asks you to accept the license terms on your terminal and records a yes with
turf license accept. --accept-eula answers for you: passing it accepts the terms at
https://turf.build/license/v1/, so pass it once you have read them. Where there is no terminal
and no option, the script prints the step and the engine waits for it.
Accept the license
Section titled “Accept the license”Turf is proprietary software under the Turf Community Edition License 1.0. It is free for individuals, education and small businesses within the Community limits. Government and larger organizations need a commercial license, and any organization can evaluate Turf in non-production for 30 days. turf.build/licensing says who that covers, in plain words.
Read the terms at turf.build/license/v1, then accept them once:
npx -y @turfbuild/turf-mcp-server license acceptThis is the first line of the npx install. Run it before your agent starts Turf: it downloads Turf here, in your terminal, and your agent’s first start is then quick.
turf license acceptturf license acceptEither command records your acceptance in ~/.turf/license.json: the terms version, the time and the
method. The server reads that record at the next call, and an engine waiting for it starts within
seconds, with nothing to restart. turf license status shows whether the terms are accepted; without
the CLI, npx -y @turfbuild/turf-mcp-server license status does.
The turf CLI also asks on its first run in a terminal: type yes to accept.
Where no one is there to answer, set TURF_ACCEPT_EULA=yes in the environment of the process that
runs Turf. Setting it accepts the terms at https://turf.build/license/v1/, so set it once you have
read them. Only yes accepts, in any letter case; true, 1 and y do not.
| Where Turf runs | How to accept |
|---|---|
| A server your agent starts with npx | npx -y @turfbuild/turf-mcp-server license accept on the same machine. The server checks again on the next call, so no restart is needed, and the engine it starts is accepted as the server is. |
| An MCP client, with the CLI installed | turf license accept on the same machine. The server checks again on the next call, so no restart is needed. A server in a container reads only the container’s environment: TURF_ACCEPT_EULA=yes there, which an entry’s args pass in with -e. |
| The Homebrew service | turf license accept. The service waits and starts within seconds. Or put TURF_ACCEPT_EULA=yes in ~/.homebrew/services/turf.env and restart the service. |
turf-mcp-server engine run in a terminal |
turf license accept, before or after you start it: it checks every 2 seconds. Or TURF_ACCEPT_EULA=yes in that terminal. |
| A container or Kubernetes® | TURF_ACCEPT_EULA=yes in the environment of each Turf container (the engine, the server and the console), or the --accept-eula flag. |
| CI | TURF_ACCEPT_EULA=yes in the job’s environment. |
An engine the server starts is accepted as the server is. A variable set in your shell or in an MCP
client’s configuration does not reach the Homebrew service. The record does, and so does turf.env.
Until the terms are accepted:
- The MCP server starts and lists its tools. Every call returns the license notice instead of running, and the server starts no engine.
- The CLI asks on a terminal. Anywhere else it prints the notice and exits with status 77.
- The Homebrew service, if you run it, stays up and starts nothing, and
turf-mcp-server engine statussaysawaiting license. In a container the engine and the console print the notice and exit with status 77.
There is no license key, no license server and no update check. With telemetry on, the engine’s start
event carries the terms version and the method; nothing else about your acceptance leaves the
machine. The turf CLI’s source is open under MPL-2.0.
What was installed
Section titled “What was installed”Two npm packages, which npm keeps in its own cache. Nothing is put on your PATH.
| Package | Carries |
|---|---|
@turfbuild/turf-mcp-server |
A small launcher, and one package for your platform with the server, the engine, its built-in provider and the console. |
@restatedev/restate-server |
restate-server, the engine’s dependency, from Restate’s own package. |
npm downloads about 180 MB and unpacks about 550 MB. No npm package carries the turf CLI: it comes
with Homebrew or the script.
Five binaries from Turf’s tap, and restate-server, the engine’s dependency, from Restate’s own tap.
The table below says what each is.
With Homebrew, the same as the Homebrew install. Without it, the release archive’s five binaries and
restate-server, in ~/.turf/bin. The table below says what each is.
| Binary | Role |
|---|---|
turf-mcp-server |
The MCP server. Your agent runs it over stdio; in a cluster it serves HTTP. |
turf-engine |
The engine: plans and applies durably, runs the providers. |
turf-builtin-provider |
The engine’s built-in provider, which carries turf actions. |
turf-ui |
The console, a read-only web view of every run, at http://127.0.0.1:8873. |
turf |
The Turf CLI: Turf’s own agent, turf up, turf destroy, turf console. Homebrew and the script only. |
The engine is built on Restate for durable execution.
The engine
Section titled “The engine”The server starts this user’s engine when a tool first needs it and none is running. That call waits
up to 90 seconds; past that it says the engine is still starting, and to call again. The engine then
runs in the background and keeps running when your agent quits, so a run waits in it between
sessions. It runs restate-server, turf-engine and the console, and keeps its data under ~/.turf.
npx -y @turfbuild/turf-mcp-server engine statusnpx -y @turfbuild/turf-mcp-server engine stopengine status says where the engine listens, how it was started, whether it answers, its version,
the console’s address and where its logs are. engine stop stops it; the next call that needs it
starts it again. With Homebrew or the script, the same commands are turf-mcp-server engine status
and turf-mcp-server engine stop.
To start it at login instead, run the Homebrew service: brew services start turf. It is the same
engine, and it takes over one a server started. TURF_ENGINE_AUTOSTART=off in a server’s environment
keeps that server from starting one.
Provider credentials. Providers run inside the engine, not in your shell or your agent.
Credentials in their usual files (the default AWS profile, ~/.kube/config, gcloud’s
application-default credentials, the az login) are read there with nothing set. A variable a
provider needs goes in the env of Turf’s entry in your agent, with TURF_PROVIDER_ENV naming it:
"env": { "AWS_PROFILE": "prod", "TURF_PROVIDER_ENV": "AWS_PROFILE"}Restart the agent, and the server sends the variables you named to the engine with each run:
Send a variable to providers. A configuration’s own
settings, such as a profile or a kubeconfig path that belongs to that directory, go in its
mise.local.toml (mise). The Homebrew service and
~/.homebrew/services/turf.env are only for what the engine itself needs, such as a proxy:
The engine’s environment.
The console
Section titled “The console”The console is a read-only web view of every workspace’s runs, rounds and approvals, beside the engine.
Only you can open it: run turf console once to sign your browser in, and every link your agent
gives you opens directly after that. Without the CLI,
npx -y @turfbuild/turf-mcp-server engine console signs in the same way. TURF_CONSOLE_ADDR=off in
the engine’s environment turns it off; another loopback address moves it. More in
The engine and the console.
Upgrading
Section titled “Upgrading”There is nothing to run. An entry that names no version asks npm at every start, so a new release is installed the next time your client starts the server. That start is slow again, about half a minute.
The engine that is running stays the old one until it is stopped. Stop it, and the next call starts the new one:
npx -y @turfbuild/turf-mcp-server engine stopAfter a patch release the server keeps using the running engine and says nothing. Only across a minor release, such as 1.5 to 1.6, does it refuse the older engine and name this remedy.
To hold a version, pin it in the entry: @turfbuild/turf-mcp-server@1.5.0.
brew upgrade turfbuild/tap/turfbrew services restart turf # if you run the serviceturf-mcp-server engine stop # if a server started the engineThen restart your agent’s MCP connection. After engine stop, the next call starts the new engine.
Run the script again. With Homebrew it upgrades as above. Without it, the script unpacks the new release and says what to restart. Then restart your agent’s MCP connection.
The Turf CLI and turf-mcp-server must be the same release.
The first upgrade from a release before 1.5 also needs the license accepted, once
(Accept the license).
A minor upgrade stops any rollout still running on the old engine: a run waiting for approval ends
cancelled with the upgrade as the cause, and one in the middle of an apply finishes what is in flight
and ends partial. Everything applied is kept; run up again and plan plans what remains.
Verify the binaries
Section titled “Verify the binaries”Every release artifact is signed and logged in the public Sigstore transparency log:
gh attestation verify "$(command -v turf)" --repo turfbuild/turfThe server binaries, the container image and the bills of materials are verified with cosign, and the npm packages are published with npm provenance; every command is in Verify a release. For a network with no route to the internet, see Air-gapped installation.
Connect your agent. With the npx install your agent is already connected: go to Your first run.
Turf™ is a trademark of Turf LLC. Terraform® is a trademark of HashiCorp. Ansible® is a trademark of Red Hat, LLC, registered in the United States and other countries. Helm®, Kubernetes®, Prometheus® and OpenTelemetry® are registered trademarks, and Jaeger™ is a trademark, of the Linux Foundation. OpenTofu® and Model Context Protocol® are registered trademarks of LF Projects, LLC. All other trademarks are the property of their respective owners. Turf is not affiliated with, endorsed by, or sponsored by HashiCorp, IBM, Red Hat, the Linux Foundation, LF Projects or the OpenTofu project.
© 2026 Turf LLC. Free for individuals, education and small businesses within the Community limits, under the Turf Community Edition License 1.0. Government and larger organizations need a commerciallicense.turf.build · Discord ·GitHub