# Tofu

> Tofu is a freemium MCP server for cloud and infrastructure. Deploy and run an app from a coding agent: logs, versions, databases, domains, sign-in. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Starting price:** $5 a month
- **Platforms:** Web, API, CLI
- **Website:** https://trytofu.ai/docs/agent
- **MCP Registry name:** ai.trytofu/tofu
- **Categories:** cloud and infrastructure, developer tools
- **Listing updated:** 2026-11-15

## About

A coding agent connects to Tofu's control plane, the same one the dashboard uses, and can put an app online and look after it. The bridge exposes 108 tools, 13 loaded by default; the rest are reachable as commands of the installed client, or all at once by setting `TOFU_TOOLS=all`. Groups include deploy and rollback, runtime and build logs, environment variables, managed databases with backups, app sign-in and invites, domains and DNS records, Stripe payments, app email, sandboxes and site analytics.

Approval is deliberate. Login is a device flow: the agent asks for a code and you approve it in a browser where you are already signed in. The connection lasts 30 days and can be revoked on the dashboard. Tofu tells the agent to ask you before it goes live, adds a database, changes a domain, spends money, restores an earlier version or deletes anything. The docs say nothing here can change billing, buy or transfer a domain, or run SQL, and that secrets are entered in the dashboard, not by the agent.

Two ways to connect exist: a local stdio client needing Node.js 22 or newer, or the hosted address `https://app.trytofu.ai/mcp` added as a custom connector.

## Features

- **Deploy and rollback:** Put an app online, list deployments and restore an earlier version.
- **Logs and status:** Read build and runtime logs and check a deployment's state.
- **Managed databases:** Create, back up, restore and migrate a database for an app.
- **App sign-in controls:** Configure sign-in, users, invites and sharing modes.
- **Domain management:** Connect, verify and manage domains and DNS records.
- **Approval prompts:** The agent is told to ask before risky actions, and login needs your browser approval.

## Good for

- Ship a project built by a coding agent without leaving the chat
- Read runtime logs after a failed update
- Roll back to a previous version
- Add a custom domain and database to an app
- Invite people to a private app

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http tofu https://app.trytofu.ai/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://app.trytofu.ai/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "tofu": {
      "url": "https://app.trytofu.ai/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "tofu": {
      "type": "http",
      "url": "https://app.trytofu.ai/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "tofu": {
      "serverUrl": "https://app.trytofu.ai/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "tofu": {
      "type": "http",
      "url": "https://app.trytofu.ai/mcp"
    }
  }
}
```

## Tools

- `login`: Starts a device sign-in and returns a code and approval URL.
- `finishLogin`: Completes the sign-in after you approve it.
- `connectionStatus`: Checks whether the agent is connected.
- `deploy`: Puts an app online.
- `status`: Reports an app's current status.
- `getRuntimeLogs`: Reads runtime logs.
- `getBuildLogs`: Reads build logs.
- `rollback`: Puts an earlier version back.
- `databaseStatus`: Reports a database's status.

## FAQ

### How do I connect an agent?

Run the setup prompt for your coding agent, or add https://app.trytofu.ai/mcp as a remote MCP server.

### How long does a connection last?

30 days, and you can revoke it on the dashboard's Coding agent page.

### Can the agent change billing or run SQL?

No. The docs say nothing here can change billing, buy or transfer a domain, or run SQL.

### What does Tofu cost?

Free to start, Starter is $5 a month and Pro $20 a month, with a 7-day trial on paid plans.

### Is Tofu free?

Tofu has a free plan, with paid plans for more usage or features. Paid plans start at $5 a month.

### How do I add Tofu to Claude Code?

Run this command in your terminal: claude mcp add --transport http tofu https://app.trytofu.ai/mcp

### What are the best alternatives to Tofu?

The closest alternatives to Tofu are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/tofu
