# PillDrops

> PillDrops is an open-source MCP server for agent sandbox. Self-hosted cloud sandboxes for running untrusted code, controlled from a CLI or AI agents. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Linux, macOS, Windows, API, Self-hosted
- **Repository:** https://github.com/pilldrops-oss/pilldrops-cli
- **MCP Registry name:** io.github.pilldrops-oss/pilldrops
- **Categories:** [agent sandbox](https://ai-powered.com/categories/agent-sandbox)
- **Listing updated:** 2026-12-02

## About

PillDrops is an engine that runs untrusted code inside isolated microVMs, and this repository provides its command-line client. From a terminal you can create sandboxes from templates, execute commands, attach an interactive PTY, move files, expose ports and open previews in a browser.

The CLI is built to be scripted: it returns machine-readable JSON with `--json`, uses stable exit codes, and never prompts unless it is attached to a terminal. It also includes a shell mode with a built-in prompt, and an `api` subcommand that reaches any `/v1` route with the stored credential.

It also serves the platform as MCP tools over stdio, so an AI assistant such as Claude Code can create and manage sandboxes directly. The MCP server is also available as a Go library with an HTTP transport. The project is aimed at developers and teams who want to run agent-generated or untrusted code on infrastructure they control.

## Features

- **Isolated microVM sandboxes:** Create sandboxes from templates and run commands or code inside them, separated from the host.
- **Interactive shell access:** Attach a real PTY to a sandbox for editors, REPLs and package installers.
- **Port exposure and previews:** Start services on a chosen port and open the preview in a browser.
- **Persistent volumes:** Create disks that outlive individual sandboxes and attach them when creating new ones.
- **Scriptable CLI output:** JSON output, stable exit codes and no prompts when not run in a terminal.
- **MCP server for AI clients:** Exposes platform operations as MCP tools over stdio for AI assistants.

## Good for

- Run code generated by an AI agent in an isolated environment before trusting it
- Give a coding assistant a disposable sandbox to test and fix a project
- Automate sandbox creation, command execution and cleanup in scripts or CI
- Preview a web service running inside a sandbox in a browser

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http pilldrops https://pilldrops.com/mcp
```

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

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "pilldrops": {
      "type": "http",
      "url": "https://pilldrops.com/mcp"
    }
  }
}
```

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

```text
https://pilldrops.com/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

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

```json
{
  "mcpServers": {
    "pilldrops": {
      "url": "https://pilldrops.com/mcp"
    }
  }
}
```

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

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "pilldrops": {
      "type": "http",
      "url": "https://pilldrops.com/mcp"
    }
  }
}
```

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

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://pilldrops.com/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add pilldrops --url https://pilldrops.com/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.pilldrops]
url = "https://pilldrops.com/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "pilldrops": {
      "httpUrl": "https://pilldrops.com/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http pilldrops https://pilldrops.com/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "pilldrops": {
      "serverUrl": "https://pilldrops.com/mcp"
    }
  }
}
```

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

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "pilldrops": {
      "url": "https://pilldrops.com/mcp",
      "transport": "http"
    }
  }
}
```

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

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "pilldrops": {
      "type": "streamableHttp",
      "url": "https://pilldrops.com/mcp"
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "pilldrops": {
      "url": "https://pilldrops.com/mcp"
    }
  }
}
```

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

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "pilldrops": {
      "url": "https://pilldrops.com/mcp"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "pilldrops": {
      "url": "https://pilldrops.com/mcp"
    }
  }
}
```

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

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "pilldrops": {
      "url": "https://pilldrops.com/mcp"
    }
  }
}
```

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

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://pilldrops.com/mcp
```

Enter a Name (for example "PillDrops"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

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

```json
{
  "mcpServers": {
    "pilldrops": {
      "type": "http",
      "url": "https://pilldrops.com/mcp"
    }
  }
}
```

## FAQ

### How is the CLI installed?

Through npm as @pilldrops/cli, by downloading a release binary for macOS, Linux or Windows, or by building it with Go.

### Does PillDrops work with AI assistants?

Yes. Running pilldrops mcp serves the platform as MCP tools over stdio, and the repository's notes show how to add it to Claude Code.

### Where does the server run?

PillDrops is self-hosted; the CLI defaults to http://localhost:8080 and can be pointed at another server with --api-url.

### Is PillDrops free?

Yes. PillDrops is open source, so you can use and self-host it for free.

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

Run this command in your terminal: claude mcp add --transport http pilldrops https://pilldrops.com/mcp

### What are the best alternatives to PillDrops?

The closest alternatives to PillDrops are Sandfort, Platinum Sandboxes, Sandscale, CreateOS and airgap.

## Where this comes from

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

## Alternatives

- [Sandfort](https://ai-powered.com/mcp/sandfort): Sandfort is an open-source MCP server for agent sandbox.
- [Platinum Sandboxes](https://ai-powered.com/mcp/platinum-sandboxes): Platinum Sandboxes is an MCP server for agent sandbox.
- [Sandscale](https://ai-powered.com/mcp/sandscale): Sandscale is a freemium MCP server for agent sandbox.
- [CreateOS](https://ai-powered.com/mcp/createos): CreateOS is an open-source MCP server for agent sandbox.
- [airgap](https://ai-powered.com/mcp/airgap-2): airgap is an open-source MCP server for security.
- [Sandbox Env MCP](https://ai-powered.com/mcp/sandbox-env-mcp): Sandbox Env MCP is an open-source MCP server for developer tools.
- [Sandbox as a Service](https://ai-powered.com/mcp/sandbox-as-a-service): Sandbox as a Service is an MCP server for developer tools.
- [MCP Sandbox Computer VM for AI](https://ai-powered.com/mcp/mcp-sandbox-computer-vm-for-ai): MCP Sandbox Computer VM for AI is an MCP server for developer tools.

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