Skip to main content
Glama

PCBridge

Use your computer like a coding agent — from any AI chatbot.

PCBridge is a web-hosted MCP bridge that lets ChatGPT, Claude, Gemini, and other compatible chatbots execute code, edit files, run commands, and use Git on your computer through a secure connection.

How It Works

┌─────────────────┐     ┌──────────────────┐     ┌─────────────────┐
│   AI Chatbot    │────▶│  PCBridge Cloud  │────▶│  Your Computer  │
│ (ChatGPT, etc.) │◀────│  (Vercel + MCP)  │◀────│  (Local Runner) │
└─────────────────┘     └──────────────────┘     └─────────────────┘
  1. Cloud (pcbridge.vercel.app): Hosts the dashboard, MCP gateway, and request routing

  2. Local Runner: Lightweight agent on your computer that executes tool calls

  3. Secure Connection: Token-based pairing with configurable approval for destructive operations

Related MCP server: ArenaBridge

Quick Start

1. Install the Runner

curl -fsSL https://pcbridge.vercel.app/setup.sh -o setup.sh && bash setup.sh

2. Get a Pairing Code

Go to pcbridge.vercel.app/dashboard and click "Generate Code".

3. Start PCBridge

pcbridge start --code XXXXXX

4. Configure Your Chatbot

Add to your chatbot's MCP configuration:

{
  "mcpServers": {
    "pcbridge": {
      "url": "https://pcbridge.vercel.app/api/mcp",
      "headers": {
        "X-Device-Id": "YOUR_DEVICE_ID"
      }
    }
  }
}

Features

  • File Operations: Read, write, edit, list, and delete files

  • Terminal: Execute commands with configurable approval for destructive operations

  • Git: Status, diff, log, and commit (with approval)

  • Secure: Token-based pairing, path sandboxing, approval system

  • MCP Native: Works with any MCP-compatible chatbot

  • Cross-Platform: Linux (including Omarchy), macOS, Windows (WSL2)

Architecture

Component

Location

Description

Cloud

app/

Next.js app with MCP endpoint, dashboard, and device registry

Local Runner

local-runner/

Node.js agent that executes tool calls

Setup

setup.sh

OS detection, Node.js installation, runner setup

Security

  • All execution stays on your computer

  • Token-based device pairing

  • Path sandboxing (operations restricted to project directory)

  • Configurable approval for destructive operations

  • Encrypted cloud communication

Development

# Install dependencies
npm install

# Run locally
npm run dev

# Build
npm run build

# Type check
npm run typecheck

Deployment

The cloud gateway keeps runtime state (paired devices, pending approvals) in a store. On serverless hosts each request can hit a different instance, so state must be shared:

  1. Deploy to Vercel.

  2. Add an Upstash Redis database (Vercel → Storage → Upstash, or the Marketplace integration). This injects KV_REST_API_URL and KV_REST_API_TOKEN automatically.

  3. Redeploy. /api/health reports "storage": "shared".

Without a shared store, the app falls back to in-memory state — fine for local development and single-instance hosting, but on Vercel the dashboard may not show a connected runner. The dashboard warns when in-memory mode is active.

Documentation

License

MIT

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables remote AI agents to read, patch, and (opt-in) execute commands in a local workspace, with all actions approved locally and fully audited.
    2,485 npm
    2
    MIT
  • A
    license
    Not graded
    quality
    A
    maintenance
    Exposes a governed suite of 38 OAuth-gated tools that let web-based AI chat clients read, write, edit, and search local files, run whitelisted shell commands, inspect databases and localhost APIs, drive browsers and DevTools, and manage background tasks, Git, clipboard, notifications, and ports. Local IDEs connect directly over loopback, while remote clients reach the same machine through a secure tunnel.
    MIT
  • A
    license
    Not graded
    quality
    A
    maintenance
    Enables web-based AI assistants and local IDEs to securely operate a local machine through an OAuth-gated suite of 38 tools covering files, shell, search, Git, databases, browser automation, DevTools, background tasks, clipboard, localhost services, and Postman. Access is constrained by a command whitelist, folder allowlists, and rate limits so clients never receive unrestricted shell access.
    MIT