Previewship Mcp

Created By
blockdancez2 months ago
PreviewShip is a frontend preview deployment and sharing platform for developers. Deploy your static site and get a shareable preview URL in seconds — no Git, no CI/CD, no complex configuration.
Overview

PreviewShip

Deploy previews, share instantly. From your editor, terminal, AI agent, or browser — one step to a live link.

PreviewShip is a frontend preview deployment and sharing platform for developers. Deploy your static site and get a shareable preview URL in seconds — no Git, no CI/CD, no complex configuration.

Open Source Packages

PreviewShip provides three open-source client packages:

PackagenpmDescription
CLIpreviewshipDeploy from the terminal with one command
MCP Serverpreviewship-mcpNative tool integration for AI coding agents
VS Code ExtensionMarketplaceOne-click deploy from your editor

Deployment Methods

MethodCommand / ActionBest For
CLInpx previewship deploy ./distTerminal, scripts, CI/CD
MCP ServerSay "deploy to PreviewShip" in AI chatClaude Code, Cursor, Windsurf
VS Code / Cursor ExtensionCommand Palette → PreviewShip: DeployEditor-first workflow
Web ConsoleDrag & drop zip at previewship.comZero-tool deployment

CLI

One-command deploy from any terminal. Supports JSON output for AI agents and CI pipelines.

Quick Start

# Set your API Key
npx previewship login --key ps_live_YOUR_KEY

# Deploy a directory
npx previewship deploy ./dist

Commands

CommandDescription
previewship login [--key KEY]Set API Key for authentication
previewship deploy [path] [-n name] [--json]Deploy a directory and get a preview URL
previewship status <id> [--json]Check deployment status by ID
previewship usage [--json]Show remaining deployment quota
previewship whoamiDisplay current configuration

Options

# Deploy with a custom project name
npx previewship deploy ./dist -n my-project

# JSON output for AI agents and CI
npx previewship deploy ./dist --json

# Custom exclude patterns
npx previewship deploy ./dist --exclude "*.map" --exclude "tests/**"

Environment Variables

VariableDescription
PREVIEWSHIP_API_KEYAPI Key (overrides saved config)
PREVIEWSHIP_SERVER_URLCustom API server URL
CIAuto-enables JSON output in CI environments
NO_COLORDisables colored output

Programmatic Usage

The CLI also exports its core functions for use as a library:

import { deploy, getStatus, getUsage } from 'previewship'
import { ApiClient } from 'previewship'
import { packDirectory, DEFAULT_EXCLUDE_PATTERNS } from 'previewship'

MCP Server

Model Context Protocol server that lets AI coding agents deploy previews as a native tool call. Works with Claude Code, Cursor, Windsurf, and any MCP-compatible client.

Setup

Claude Code — add to ~/.claude/settings.json:

{
  "mcpServers": {
    "previewship": {
      "command": "npx",
      "args": ["-y", "previewship-mcp"],
      "env": {
        "PREVIEWSHIP_API_KEY": "ps_live_YOUR_KEY"
      }
    }
  }
}

Cursor — create .cursor/mcp.json in your project root:

{
  "mcpServers": {
    "previewship": {
      "command": "npx",
      "args": ["-y", "previewship-mcp"],
      "env": {
        "PREVIEWSHIP_API_KEY": "ps_live_YOUR_KEY"
      }
    }
  }
}

Windsurf — add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "previewship": {
      "command": "npx",
      "args": ["-y", "previewship-mcp"],
      "env": {
        "PREVIEWSHIP_API_KEY": "ps_live_YOUR_KEY"
      }
    }
  }
}

Available Tools

ToolDescriptionParameters
deploy_previewDeploy a directory and get a preview URLpath (optional), projectName (optional), excludePatterns (optional)
check_deploymentCheck deployment status by IDdeploymentId (required)
show_usageShow remaining deployment quota

Usage

Once configured, simply ask your AI agent:

"Deploy this project to PreviewShip" "Check the status of my last deployment" "How many deploys do I have left today?"


VS Code / Cursor Extension

One-click deploy from VS Code or Cursor. Install from the VS Code Marketplace or Open VSX Registry.

Install

Via Command Palette (Ctrl+P / Cmd+P):

ext install previewship.previewship

Via VSIX (offline install):

code --install-extension previewship-0.1.3.vsix
# Or for Cursor:
cursor --install-extension previewship-0.1.3.vsix

Commands

CommandDescription
PreviewShip: Set API KeyStore your API Key securely (encrypted via VS Code Secrets API)
PreviewShip: Deploy Current WorkspacePackage, upload, and deploy your project
PreviewShip: Show UsageDisplay daily/monthly deployment quota

Settings

SettingDefaultDescription
previewship.serverUrlhttps://api.previewship.comAPI server URL
previewship.excludePatternsnode_modules/**, .git/**, .env*, etc.File exclude patterns for packaging
previewship.pollIntervalMs3000Deployment status polling interval (ms)
previewship.pollTimeoutMs300000Polling timeout (ms)

Getting Started

  1. Register a free account at previewship.com
  2. Create an API Key from the console → API Keys page
  3. Deploy using any method above
  4. Share the preview link with your team

Plans

FreePro MonthlyPro Yearly
Price$0$9/mo$84/yr ($7/mo)
Projects1812
Daily Deploys52035
Max Zip Size15 MB50 MB80 MB
Preview Expiry7 days30 days365 days

Free plan requires no credit card. Start deploying instantly.

Supported Frameworks

Any static frontend output works — React, Vue, Svelte, Angular, Next.js (export), Nuxt (generate), Astro, vanilla HTML/CSS/JS, and more. Just make sure your build output contains an index.html.

Requirements

  • Node.js ≥ 20.0.0 (for CLI and MCP)
  • VS Code ≥ 1.85.0 (for extension)
  • An API Key from previewship.com

License

MIT — see LICENSE for details.

Server Config

{
  "mcpServers": {
    "previewship": {
      "command": "npx",
      "args": [
        "-y",
        "previewship-mcp"
      ],
      "env": {
        "PREVIEWSHIP_API_KEY": "ps_live_YOUR_KEY"
      }
    }
  }
}
Project Info
Created At
2 months ago
Updated At
2 months ago
Author Name
blockdancez
Star
-
Category
Tags

Recommend Clients

View All
@ENCONVERT/MCP

a month ago
HEYM

6 days ago
STATIONONE

a month ago
BETTERCLAW

13 days ago
HEYM

6 days ago
PDFCHECK-MCP

a month ago
SOCIAL-API.AI

a month ago
PISS

3 months ago
VIDEO-TO-CLAUDE

16 days ago
BUNDLIST

2 months ago
NANA-BANANA-PRO

3 months ago
ENTRANS

23 days ago
SUPERNORMAL

2 months ago