Skip to content
MCP serverOfficial: Published to the official MCP Registry by the GitHub account or domain it is named after, which owns its code or website.

Turf

Self-hosted infrastructure-as-code tool that AI agents drive, with human approval before

Runs locally

Turf is an MCP server for cloud and infrastructure. It runs locally on your machine and is started by your AI client.

Pricing
Free trial
Platforms
CLI, API, Self-hosted
Runs
Locally
Version
1.5.1
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add turf --env TURF_ACCEPT_EULA='<TURF_ACCEPT_EULA>' -- npx -y @turfbuild/turf-mcp-server

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "turf": {
      "command": "npx",
      "args": [
        "-y",
        "@turfbuild/turf-mcp-server"
      ],
      "env": {
        "TURF_ACCEPT_EULA": "<TURF_ACCEPT_EULA>"
      }
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "turf": {
      "command": "npx",
      "args": [
        "-y",
        "@turfbuild/turf-mcp-server"
      ],
      "env": {
        "TURF_ACCEPT_EULA": "<TURF_ACCEPT_EULA>"
      }
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "turf": {
      "command": "npx",
      "args": [
        "-y",
        "@turfbuild/turf-mcp-server"
      ],
      "env": {
        "TURF_ACCEPT_EULA": "<TURF_ACCEPT_EULA>"
      }
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "turf": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@turfbuild/turf-mcp-server"
      ],
      "env": {
        "TURF_ACCEPT_EULA": "<TURF_ACCEPT_EULA>"
      }
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add turf --env TURF_ACCEPT_EULA='<TURF_ACCEPT_EULA>' -- npx -y @turfbuild/turf-mcp-server

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.turf]
command = "npx"
args = ["-y", "@turfbuild/turf-mcp-server"]
env = { TURF_ACCEPT_EULA = "<TURF_ACCEPT_EULA>" }

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "turf": {
      "command": "npx",
      "args": [
        "-y",
        "@turfbuild/turf-mcp-server"
      ],
      "env": {
        "TURF_ACCEPT_EULA": "<TURF_ACCEPT_EULA>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "turf": {
          "command": "npx",
          "args": [
            "-y",
            "@turfbuild/turf-mcp-server"
          ],
          "env": {
            "TURF_ACCEPT_EULA": "<TURF_ACCEPT_EULA>"
          }
        }
      }
    }

    Or run: gemini mcp add -s user -e TURF_ACCEPT_EULA='<TURF_ACCEPT_EULA>' turf npx -- -y @turfbuild/turf-mcp-server

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "turf": {
          "command": "npx",
          "args": [
            "-y",
            "@turfbuild/turf-mcp-server"
          ],
          "env": {
            "TURF_ACCEPT_EULA": "<TURF_ACCEPT_EULA>"
          }
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "turf": {
          "command": "npx",
          "args": [
            "-y",
            "@turfbuild/turf-mcp-server"
          ],
          "env": {
            "TURF_ACCEPT_EULA": "<TURF_ACCEPT_EULA>"
          }
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "turf": {
          "command": "npx",
          "args": [
            "-y",
            "@turfbuild/turf-mcp-server"
          ],
          "env": {
            "TURF_ACCEPT_EULA": "<TURF_ACCEPT_EULA>"
          }
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "turf": {
          "command": "npx",
          "args": [
            "-y",
            "@turfbuild/turf-mcp-server"
          ],
          "env": {
            "TURF_ACCEPT_EULA": "<TURF_ACCEPT_EULA>"
          }
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "turf": {
          "command": "npx",
          "args": [
            "-y",
            "@turfbuild/turf-mcp-server"
          ],
          "env": {
            "TURF_ACCEPT_EULA": "<TURF_ACCEPT_EULA>"
          }
        }
      }
    }

    The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "turf": {
          "command": "npx",
          "args": [
            "-y",
            "@turfbuild/turf-mcp-server"
          ],
          "env": {
            "TURF_ACCEPT_EULA": "<TURF_ACCEPT_EULA>"
          }
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "turf": {
          "command": "npx",
          "args": [
            "-y",
            "@turfbuild/turf-mcp-server"
          ],
          "env": {
            "TURF_ACCEPT_EULA": "<TURF_ACCEPT_EULA>"
          }
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • TURF_ACCEPT_EULATurf 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 license.Required
  • TURF_RESTATE_URLThe Turf engine's restate-server ingress, an http(s) URL or unix:<socket path>. The image runs no engine of its own, so a container run needs one.Required
  • TURF_WORKDIRMaps 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_ENVVariables 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). In a container, pass the variable itself in too (-e), or use NAME=VALUE; a path or profile names one where the engine runs. Nothing is sent unless named; PATH never is.
  • TURF_TIERPermission tier: which tools the server lists and what their arguments may do.
  • TURF_CONSOLE_URLWhere a browser opens the Turf console for the engine TURF_RESTATE_URL names; results then carry console_url links.
  • TURF_ACCEPT_EULATurf 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 license.Required
  • TURF_RESTATE_URLA Turf engine's restate-server ingress, an http(s) URL or unix:<socket path>. Unset, the server uses this user's local engine.
  • TURF_HOMEWhere this user's local engine keeps its data. Keep the path short: the engine listens on unix sockets beneath it.
  • TURF_PROVIDER_ENVVariables 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. Nothing is sent unless named; PATH never is.
  • TURF_TIERPermission tier: which tools the server lists and what their arguments may do.

About Turf

Turf lets an AI agent plan infrastructure changes on OpenTofu configurations, pause for a person to approve, and then apply them. The agent connects through an MCP server that exposes Turf's operations as tools, prompts and resources, so the same workflow can be driven from an assistant rather than a terminal.

The engine runs on your own machine or in a cluster, and the MCP server connects to it through a restate-server ingress. Provider credentials are read from the environment and only sent to the engine when named explicitly. Access can be narrowed with permission tiers that limit which tools are listed and what their arguments may do.

It suits platform and DevOps engineers who want agents to handle routine infrastructure work while keeping a human in the loop for every apply. The software is proprietary: individuals, education and small businesses can use it under the Community license, while larger organisations need a commercial license.

What it does

Plan then approve
The agent proposes an infrastructure plan and waits for a person to confirm before anything is applied.
OpenTofu based
Configurations are run on OpenTofu, so existing OpenTofu modules and workflows carry over.
Permission tiers
Read, plan, apply and full tiers control which tools the server exposes and what they may change.
Provider environment control
Only the environment variables you name are passed to provider plugins, and PATH is never sent.
Self-hosted engine
The engine runs locally or in a cluster and can be reached over HTTP or a unix socket.
Web console links
When a console URL is configured, results include links to view the engine in a browser.

Good for

  • Letting an assistant plan and deploy cloud resources while a person signs off each apply
  • Tearing down test or preview environments with a single reviewed command
  • Importing existing infrastructure into managed workspaces
  • Running infrastructure changes from an AI client without giving it unrestricted access

Pricing

Free trial

Free for individuals, education and small businesses within Community limits; commercial licence for larger organisations

Prices change. Check turf.build before you buy.

Turf FAQ

Does Turf require a licence to use?

Individuals, education and small businesses can use it free within the Community limits. Government and larger organisations need a commercial licence.

Where does Turf run?

The engine is self-hosted, either on your own machine or in a cluster, and the MCP server connects to it.

Can I limit what the agent can change?

Yes. The TURF_TIER setting chooses between read, plan, apply and full permissions.

Is Turf free?

Turf is a paid product with a free trial.

How do I add Turf to Claude Code?

Run this command in your terminal: claude mcp add turf --env TURF_ACCEPT_EULA='<TURF_ACCEPT_EULA>' -- npx -y @turfbuild/turf-mcp-server

What are the best alternatives to Turf?

The closest alternatives to Turf are Tofu, FoggyKitchen MCP, MCP Server Terraform, Terraback and Tenkai.

Where this comes from

  • Description: written from the project's website and its MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers