# Mcpd

> Turn your sandbox into an MCP server

- **Type:** MCP server
- **Install:** `agentstack add mcp-substructureai-mcpd`
- **Verified:** Pending review
- **Seller:** [substructureai](https://agentstack.voostack.com/s/substructureai)
- **Installs:** 0
- **Category:** [Integrations](https://agentstack.voostack.com/c/integrations)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [substructureai](https://github.com/substructureai)
- **Source:** https://github.com/substructureai/mcpd

## Install

```sh
agentstack add mcp-substructureai-mcpd
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# mcpd

Built by [substructure.ai](https://substructure.ai)

Pairs well with [subs](https://github.com/substructureai/subs): an agent harness for the cloud.

## Turn your sandbox into an MCP server.

Execute tools inside your sandbox, so your agent harness can run elsewhere.

## Install

```sh
curl -fsSL https://subs.dev/mcpd.sh | bash
```

## Quick start

Start an MCP server with a single bash tool:

```sh
mcpd --tool '{
  "name": "bash",
  "title": "Bash",
  "description": "Run a bash command. This is a sandbox environment you can use for anything.",
  "inputSchema": {
    "type": "object",
    "required": ["command"],
    "properties": {
      "command": { "type": "string", "description": "The command to run." }
    }
  },
  "_meta": {
    "dev.subs/exec": { "argv": ["/bin/bash", "-lc", "{command}"] }
  }
}' \
--no-auth \
--bind "127.0.0.1:8080"
```

## Connect a harness

**[subs](https://github.com/substructureai/subs)**, in `subs.toml`. Declare the
connection, then give it to an agent:

```sh
curl -fsSL https://subs.dev/cli.sh | bash
```

```toml
[mcp.sandbox]
url = "http://127.0.0.1:8080/mcp"

[agent.coder]
llm = "openrouter"
model = "deepseek/deepseek-v4-flash-0731"
system = "You are a coding agent."
mcp = ["mcp.sandbox"]
```

Hand the connection its token once. It never appears in the file:

```sh
subs auth mcp.sandbox
subs chat coder -c subs.toml
```

**Claude Code**

```sh
claude mcp add --transport http sandbox http://127.0.0.1:8080/mcp \
  --header "Authorization: Bearer $MCPD_TOKEN"
```

**Codex**, in `~/.codex/config.toml`:

```toml
[mcp_servers.sandbox]
url = "http://127.0.0.1:8080/mcp"
bearer_token_env_var = "MCPD_TOKEN"
```

**Cursor**, in `~/.cursor/mcp.json` or `.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "sandbox": {
      "url": "http://127.0.0.1:8080/mcp",
      "headers": { "Authorization": "Bearer ${env:MCPD_TOKEN}" }
    }
  }
}
```

## More examples

See [examples/](examples/) for config that mimics the tools of other popular harnesses.

## License

MIT — see [LICENSE](LICENSE).

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [substructureai](https://github.com/substructureai)
- **Source:** [substructureai/mcpd](https://github.com/substructureai/mcpd)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** yes
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: flagged — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-substructureai-mcpd
- Seller: https://agentstack.voostack.com/s/substructureai
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
