Pibox logo

Pibox

Self-hosted MCP access to pi-coding-agent prompts and workspace file operations over streamable HTTP.

Install Pibox

Pick your client, then add it in one click or paste the config.

SSE (Remote)
Server URL
https://api.z.ai/api/anthropic

Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.

Overview

The Pibox MCP server exposes pi-coding-agent through streamable HTTP, with a run_prompt tool and workspace-confined file tools. It runs in Docker and can operate alongside Pibox API, Telegram, or cron modes, either under the API server’s /mcp/ path or on a separate sidecar port. Use it when an external agent needs to run Pi prompts and inspect or modify files in a controlled workspace.

Use cases

  • Delegate coding prompts to a Pi runtime
  • Inspect files in a mounted project workspace
  • Apply workspace-scoped file changes through an MCP client
  • Run MCP beside an API, Telegram, or cron deployment

Key features

  • Streamable HTTP MCP transport
  • pi-coding-agent prompt execution
  • Workspace-confined file tools
  • Docker-based self-hosting
  • Optional MCP token authentication
  • API, Telegram, and cron mode coexistence

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 1d ago

Recent health check succeeded.

7/7 checks healthy over the last 39d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars3Stargazers on the source repository.
Last commit2d agoMost recent push to the default branch.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Pibox works

What Pibox MCP server does

The Pibox MCP server puts pi-coding-agent behind a Model Context Protocol interface. MCP clients can call run_prompt to send work to Pi, then use file tools limited to the configured workspace. Pi handles the interaction with the LLM provider selected for the container.

This fits Coding Agents workflows where one agent needs to delegate a prompt to a separate Pi runtime. It can also provide an MCP entry point alongside Pibox’s other operating modes, rather than requiring a separate application for each interface.

How it works

Pibox runs as a Docker image based on the aicodebox container and includes Pi. Enable MCP mode with PIBOX_MCP_MODE=1. The MCP endpoint uses streamable HTTP. When API mode is also enabled, MCP is available beneath /mcp/ on the API port; without API mode, Pibox starts MCP as a sidecar uvicorn process on its own port and serves it at the port root.

MCP mode is independent of the foreground mode selection. It can coexist with API, Telegram, or cron operation. The API and MCP modes can therefore share a container while retaining their separate interfaces. Authentication can be configured with PIBOX_MCP_MODE_TOKEN.

Setup and configuration

The normal entry point is the installed pibox host wrapper. The installer creates the required Pi, aicodebox, and SSH state directories, pulls the selected image, and places the wrapper on PATH. Running the wrapper from a workspace mounts that directory at the same absolute path inside the container and persists Pi and aicodebox state.

A minimal MCP setup uses environment values similar to:

yaml
environment:
  - PIBOX_MCP_MODE=1
  - PIBOX_MCP_MODE_TOKEN=your-secret

Set the LLM provider endpoint, credentials, and model according to Pi’s provider configuration. The image supports documented OpenAI, Anthropic, and Google custom HTTP APIs through PIBOX_PROVIDER_*; Anthropic-compatible deployments can also use the documented ANTHROPIC_* variables. AICODEBOX_* equivalents are accepted by the underlying image, with AICODEBOX_* taking precedence when both prefixes are set.

Tools and capabilities

The Pibox MCP server provides:

  • run_prompt for sending a prompt to pi-coding-agent.
  • Workspace-confined file operations for working with files in the mounted directory.
  • Streamable HTTP transport for remote or local MCP client connections.
  • Optional token-based access control through the MCP mode configuration.
  • Coexistence with Pibox API, Telegram, and cron modes.

The workspace mount preserves the path used on the host, which allows prompts and file operations to refer to the same project location inside the container. The file tools enforce workspace boundaries rather than allowing unrestricted path traversal.

Limitations and notes

Pibox is self-hosted and requires Docker plus a configured LLM provider for Pi to produce responses. MCP mode exposes Pi and workspace operations; it does not by itself provide an independent model or workspace outside the mounted container directory.

Foreground modes are generally mutually exclusive, although Telegram and cron can run together. MCP mode is the exception because it runs independently. When API mode is enabled, clients must use the MCP path under /mcp/; in other modes, clients must use the separate MCP sidecar port.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Pibox

Pibox is an MCP server that connects external agents to pi-coding-agent running in a Docker container. Its main tools are run_prompt for sending prompts to Pi and workspace-confined file tools for listing, reading, writing, or managing project files through streamable HTTP.

Install the host wrapper with the repository’s install script, then enable MCP mode with `PIBOX_MCP_MODE=1`. The installer creates state directories, pulls the selected image, and installs `pibox` on `PATH`; run it from the workspace that Pi should access.

Set `PIBOX_MCP_MODE=1` and configure the MCP mode token if authentication is needed. With API mode enabled, connect through `/mcp/` on the API port; otherwise connect to the separate MCP sidecar port serving at its root.

Pibox can work with Cursor if the Cursor configuration supports streamable HTTP MCP servers and the required endpoint authentication.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPibox AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/pibox?style=directory)](https://allmcps.com/mcp/pibox)
HTML Embed
<a href="https://allmcps.com/mcp/pibox"><img src="https://allmcps.com/api/badge/pibox?style=directory" alt="Pibox on AllMCPs" /></a>