previewhost
Provides integration for GitHub repositories, allowing environments to be created and managed across multiple repositories and worktrees.
Provides integration for Next.js applications, with framework configuration examples for setting up previews.
Supports PostgreSQL databases as part of local preview environments, managing database connections and data.
Provides integration for Python applications, with framework configuration examples for setting up previews.
Supports Redis databases as part of local preview environments, managing database connections and data.
Provides integration for Vite applications, with framework configuration examples for setting up previews.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Previewhost runs local previews for full-stack apps.
Run multiple isolated previews side by side for different Git worktrees or repositories. Each preview can start your frontend, backend, databases, Redis, setup jobs, and other services together.
Previewhost assigns local URLs and ports, starts services in dependency order, and keeps managed data separate between environments. Use it from the dashboard, CLI, Node.js library, or through MCP with your coding agent.
Secrets stay as references in configuration and can be entered privately outside the agent chat. Service and job logs are available in one place.

Get started
Previewhost requires Node.js 22.23 or later.
npm install -g previewhostChoose the interface you need:
Interface | Guide |
Dashboard | Dashboard guide: choose a local folder, review its configuration, and start a preview. |
Coding agent | MCP setup: register a client and ask it to preview your application. |
Terminal | First preview with the CLI: run a frontend and backend, replace them, and stop them. |
Node.js program | Node.js library: start a runtime, request a page, and close it. |
Previewhost supports macOS, Linux, and Windows. See the platform and database requirements for architecture, system dependency, and database details.
For an existing installation, read the reset instructions before updating.
Start with installation if Previewhost is not installed. The introduction explains previews, environments, and project owners.
Default lookup uses root preview.yaml, then preview.yml. If both exist, select one with --file or keep one default.
New configurations save as preview.yaml only when neither file exists.
For a project with a configuration file and the global CLI installed:
previewhost inspect
previewhost start --allow-exec
previewhost dashboard--allow-exec permits trusted commands and managed database operations with your user permissions, without a sandbox.
The dashboard opens in your browser. Use New preview to select a local folder and configuration, or Configuration to edit bindings and apply changes. Keep its terminal open; closing the dashboard does not stop previews.
Related MCP server: Codex Local Ops
Documentation
Task | Guide |
Install or update Previewhost | |
Run a complete example | |
Connect a coding agent | |
Describe your application | |
Run services, migrations, and seeds | |
Connect or manage local data | |
Supply private credentials | |
Preview existing task checkouts | |
Start and manage previews in the browser | |
Diagnose errors | |
Embed the runtime | |
Look up fields and commands | |
Check supported clients and frameworks | |
Understand permissions and recovery |
The optional agent skill ships in the npm package under
dist/skills/previewhost. Install it through your client's skill mechanism.
MCP registration and skill installation are separate operations.
Reset required for earlier installations
This release uses ~/.local/share/previewhost for runtime storage and Previewhost names for managed Docker resources.
It does not discover or migrate earlier runtime namespaces, Keychain secrets, or retained-data records. Existing files and resources are left intact.
Before updating, stop earlier Previewhost owners with the installed version.
If no encrypted keystore exists, run
previewhost secrets init. Enter required secrets through private input.For new managed databases, choose a fresh
--data-dir.Keep old data directories, Docker volumes, and Keychain items until you decide how to retain them.
For valuable old database data, use the earlier release to access and export it first. Use that release for any explicit cleanup of old data. Removing a record or generating a new password does not recover its database. See keystore recovery for backups and lost passwords.
Development
See CONTRIBUTING.md for source builds and verification.
Run npm run dev:docs to start the documentation site locally.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Give your agent its own cloud: Postgres, Redis, a sandbox or any Docker image, in one MCP call.
Email inboxes, webhook URLs, mock APIs and 170+ tools for coding agents over one MCP connection.
MCP-first control plane for ProAgentStore agents and private instances.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables an AI agent to manage local development environments over MCP by starting, stopping, and restarting applications and processes, reading logs with cursors, and inspecting or freeing listening ports. Exposes a fixed set of id- and port-based tools, so the agent can operate registered processes without running arbitrary commands.MIT
- AlicenseDqualityCmaintenanceEnables controlled local developer operations including file and process management, shell execution, SSH, WSL, Docker, Git, browser and desktop automation, media processing, and asynchronous jobs through MCP.146MIT

Surflet MCPofficial
AlicenseNot gradedqualityCmaintenanceEnables developers to expose a selected local loopback web application as a temporary tester link and manage previews, feedback, evidence, and status through MCP tools.Apache 2.0
briqofficial
AlicenseNot gradedqualityBmaintenanceEnables agents to deploy, run, expose, inspect, and manage isolated cloud environments, including databases, caches, browsers, GitHub-hosted apps, and arbitrary OCI images, via MCP tools.2MIT