Turf
v1.5.1Self-hosted, autonomous infrastructure-as-code tool, built on OpenTofu.
Values you need
| Variable | What it is | |
|---|---|---|
TURF_ACCEPT_EULA | required | Turf is proprietary software. To accept the Turf license terms (version 1.0, https://turf.build/license/v1/), run `turf license accept` or set TURF_ACCEPT_EULA=yes. Free for individuals, education and small businesses within the Community limits. Government and larger organizations need a commercial |
TURF_RESTATE_URL | required | A Turf engine's restate-server ingress, an http(s) URL or unix:<socket path>. Unset, the server uses this user's local engine. |
TURF_WORKDIR | optional | Maps this server's working directory to the engine's, when the engine mounts the configurations at a different path. Set the engine's --workdir too. |
TURF_PROVIDER_ENV | optional | Variables this server sends to the Turf engine for provider plugins, by name. Comma-separated: NAME (this server's value of it), NAME=VALUE (a fixed value) or PREFIX_* (every variable under the prefix). Set the variable itself alongside, e.g. AWS_PROFILE=prod with TURF_PROVIDER_ENV=AWS_PROFILE. Noth |
TURF_TIER | optional | Permission tier: which tools the server lists and what their arguments may do. Default: full |
TURF_CONSOLE_URL | optional | Where a browser opens the Turf console for the engine TURF_RESTATE_URL names; results then carry console_url links. |
TURF_HOME | optional | Where this user's local engine keeps its data. Keep the path short: the engine listens on unix sockets beneath it. Default: ~/.turf |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add turf -e 'TURF_ACCEPT_EULA=<TURF_ACCEPT_EULA>' -e 'TURF_RESTATE_URL=<TURF_RESTATE_URL>' -- npx -y @turfbuild/turf-mcp-server@1.5.1Add to
claude_desktop_config.json{
"mcpServers": {
"turf": {
"args": [
"-y",
"@turfbuild/turf-mcp-server@1.5.1"
],
"command": "npx",
"env": {
"TURF_ACCEPT_EULA": "<TURF_ACCEPT_EULA>",
"TURF_RESTATE_URL": "<TURF_RESTATE_URL>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"turf": {
"args": [
"-y",
"@turfbuild/turf-mcp-server@1.5.1"
],
"command": "npx",
"env": {
"TURF_ACCEPT_EULA": "<TURF_ACCEPT_EULA>",
"TURF_RESTATE_URL": "<TURF_RESTATE_URL>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "TURF_ACCEPT_EULA",
"id": "turf-accept-eula",
"password": true,
"type": "promptString"
},
{
"description": "TURF_RESTATE_URL",
"id": "turf-restate-url",
"password": true,
"type": "promptString"
}
],
"servers": {
"turf": {
"args": [
"-y",
"@turfbuild/turf-mcp-server@1.5.1"
],
"command": "npx",
"env": {
"TURF_ACCEPT_EULA": "${input:turf-accept-eula}",
"TURF_RESTATE_URL": "${input:turf-restate-url}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.turf]
command = "npx"
args = ["-y", "@turfbuild/turf-mcp-server@1.5.1"]
env = { "TURF_ACCEPT_EULA" = "<TURF_ACCEPT_EULA>", "TURF_RESTATE_URL" = "<TURF_RESTATE_URL>" }Docker
Requires Docker
Run in a terminal
claude mcp add turf -e 'TURF_ACCEPT_EULA=<TURF_ACCEPT_EULA>' -e 'TURF_RESTATE_URL=<TURF_RESTATE_URL>' -- docker run -i --rm -e TURF_ACCEPT_EULA -e TURF_RESTATE_URL ghcr.io/turfbuild/turf-mcp-server:v1.5.1Add to
claude_desktop_config.json{
"mcpServers": {
"turf": {
"args": [
"run",
"-i",
"--rm",
"-e",
"TURF_ACCEPT_EULA",
"-e",
"TURF_RESTATE_URL",
"ghcr.io/turfbuild/turf-mcp-server:v1.5.1"
],
"command": "docker",
"env": {
"TURF_ACCEPT_EULA": "<TURF_ACCEPT_EULA>",
"TURF_RESTATE_URL": "<TURF_RESTATE_URL>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"turf": {
"args": [
"run",
"-i",
"--rm",
"-e",
"TURF_ACCEPT_EULA",
"-e",
"TURF_RESTATE_URL",
"ghcr.io/turfbuild/turf-mcp-server:v1.5.1"
],
"command": "docker",
"env": {
"TURF_ACCEPT_EULA": "<TURF_ACCEPT_EULA>",
"TURF_RESTATE_URL": "<TURF_RESTATE_URL>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "TURF_ACCEPT_EULA",
"id": "turf-accept-eula",
"password": true,
"type": "promptString"
},
{
"description": "TURF_RESTATE_URL",
"id": "turf-restate-url",
"password": true,
"type": "promptString"
}
],
"servers": {
"turf": {
"args": [
"run",
"-i",
"--rm",
"-e",
"TURF_ACCEPT_EULA",
"-e",
"TURF_RESTATE_URL",
"ghcr.io/turfbuild/turf-mcp-server:v1.5.1"
],
"command": "docker",
"env": {
"TURF_ACCEPT_EULA": "${input:turf-accept-eula}",
"TURF_RESTATE_URL": "${input:turf-restate-url}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.turf]
command = "docker"
args = ["run", "-i", "--rm", "-e", "TURF_ACCEPT_EULA", "-e", "TURF_RESTATE_URL", "ghcr.io/turfbuild/turf-mcp-server:v1.5.1"]
env = { "TURF_ACCEPT_EULA" = "<TURF_ACCEPT_EULA>", "TURF_RESTATE_URL" = "<TURF_RESTATE_URL>" }For AI agents
- Ask the user for: TURF_ACCEPT_EULA, TURF_RESTATE_URL. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: apply, cancel, close, delete, destroy, drift, import, init, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json