mcp-box

mcp-box

Private MCP server exposing the ascii Box API as shell and file tools, letting agents like ChatGPT or Claude drive Linux boxes.

Category
Visit Server

README

mcp-box

Private MCP server that turns the ascii Box API into tools an external agent can drive. ChatGPT, Claude, Cursor, or Grok is the agent. The Box is the Linux machine.

POST /prompt is never used. Agents run shell and file tools only.

Install

npm install
cp .env.example .env   # set BOX_API_KEY
npm run typecheck
npm test

Run

stdio (Claude Desktop, Cursor, Grok local):

npm run start:stdio
# or
npx tsx src/stdio.ts

Streamable HTTP (local Inspector, or behind tunnel-client):

npm run start:http
# listens on http://127.0.0.1:8787/mcp when PORT=8787 in .env

ChatGPT: use OpenAI Secure MCP Tunnel, not a public Cloudflare URL. See docs/chatgpt.md.

# after tunnel-client is installed and CONTROL_PLANE_API_KEY is set
export CONTROL_PLANE_TUNNEL_ID=tunnel_6a7290ef51b88191af7b32deba8e0640
tunnel-client run \
  --control-plane.tunnel-id "$CONTROL_PLANE_TUNNEL_ID" \
  --mcp.server-url http://127.0.0.1:8787/mcp

Then in ChatGPT: Criar app → Conexão Túnel → select mcp-box → Sem autenticação.

Environment

Variable Default Purpose
BOX_API_KEY (required for live) Box dashboard API key; never sent to the MCP client
BOX_BASE_URL https://ascii.dev/api/box/v1 API base
MCP_BOX_MODE isolated isolated or trusted
ALLOW_WRITES true When false, deny non-read tools
HOST 127.0.0.1 HTTP bind address
PORT 3333 HTTP port
MCP_BOX_AUDIT_PATH stderr (trusted) Optional audit JSONL path

See .env.example.

Trust modes

Mode noEnv on create/fork Account secrets Audit log Force stop
isolated (default) always true blocked off denied
trusted may be false allowed via env / account JSON lines allowed with confirm: true

Isolated boxes cannot act on your account secrets. Use them for untrusted agent work.

Trusted mode records every tool call (timestamp, tool, boxId, outcome). Desktop URLs and tokens are redacted in logs.

Tools

Tool Read-only Notes
box_create no Default size small; TTL 3600s; waits until ready
box_list yes Optional state filter
box_get yes Desktop URL redacted in summary
box_exec no timeoutSeconds capped at 60
box_exec_background no Convention under .mcp-box-jobs/
box_job_status yes Poll pid/exit/log tails
box_read_file yes Relative paths only
box_write_file no utf8 or base64
box_download_artifact yes Base64, max ~2MB
box_desktop yes Secret URL; do not log full value
box_stop_and_wait no Requires confirm: true
box_resume no Wait until ready
box_fork no Isolated forks are noEnv
box_interrupt no Best-effort; prompt-oriented

There is no box_prompt tool.

Background jobs

Box has no native shell job API. Background work is:

  1. Write a launcher under .mcp-box-jobs/<jobId>/
  2. nohup the command; store pid and logs
  3. Poll with box_job_status

Clients

Grok template

npm run grok:template          # small box: grok CLI + OAuth + EnzoTironi/skills + zoen-skills/pstack
npm run grok:diagnose -- bx_…  # resume + smoke; REARCHIVE=1 to stop again

Current template: go-zoen / bx_sb5sbxzz (see docs/grok-template.md). Fork for ChatGPT work with Grok + skills + go-zoen.

ChatGPT write caveat

Full write MCP tools in ChatGPT generally need Business / Enterprise / Edu. Pro is often read-only for connectors. Confirm your plan before relying on ChatGPT as the primary write agent.

Security

  • Keep BOX_API_KEY on the host only.
  • Prefer isolated mode unless you intentionally need account secrets.
  • Redact desktop URLs (_token) from logs and tickets.
  • Bind HTTP to localhost unless you add auth (v1 has no OAuth).

Non-goals (v1)

  • Multi-tenant OAuth
  • Wrapping POST /prompt
  • Native job queue
  • Cloudflare Workers deploy

Development

npm test
npm run typecheck
npm run smoke              # fake client tools/list
LIVE_BOX=1 npm run smoke   # live create → exec → write/read → stop

License

Private / unlicensed unless you add one.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured