Skip to main content
Glama
README.md
# shipbastion-mcp

**Pre-launch security scans and AI-search visibility checks inside Cursor, Claude Code, Claude Desktop, Windsurf and Antigravity. Also works as a CLI.**

[![npm](https://img.shields.io/npm/v/shipbastion-mcp?color=cb3837&logo=npm)](https://www.npmjs.com/package/shipbastion-mcp)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
[![Node](https://img.shields.io/badge/node-%3E%3D18-339933?logo=node.js&logoColor=white)](https://nodejs.org)
[![Zero dependencies](https://img.shields.io/badge/dependencies-0-brightgreen)](package.json)
[![MCP](https://img.shields.io/badge/MCP-2024--11--05%20→%202025--11--25-7c3aed)](https://modelcontextprotocol.io)
[![Verified by ShipBastion](https://shipbastion.com/badge/trust/shipbastion.com.svg)](https://shipbastion.com/trust/shipbastion.com)

Ask your AI coding agent *"audit my landing page before launch"* or *"how visible is my brand in ChatGPT?"* and get a graded report with a fix list, without leaving the editor.

- **Zero dependencies.** One `npx` command, Node 18+, nothing to compile.
- **No API key.** It calls the public [ShipBastion](https://shipbastion.com) and [CiteReady](https://cite.shipbastion.com) endpoints.
- **Read-only.** It never changes your site, and it refuses to scan private or localhost addresses.
- **Keeps working when rate-limited.** If the scan API returns 429 or is down, it runs a lighter local check instead (headers, TLS, DNS, and leaked keys or source maps in the assets your page links to).

## Tools

| Tool | What it does | Network |
|---|---|---|
| `vibeshield_scan_url(url)` | Live security scan with 100+ checks: security headers, TLS, SPF/DMARC, subdomain takeover, API keys leaked in JS bundles, exposed source maps, `.env` and `.git`, Supabase and Firebase misconfigurations. Returns a grade, a score and findings sorted by severity. | shipbastion.com |
| `citeready_brand_visibility(brand, category, competitor?, domain?)` | Measures how often LLMs are likely to cite a brand by checking the sources they draw on (Wikidata, Wikipedia, GitHub, Hacker News, Reddit), with an optional head-to-head against a competitor. | cite.shipbastion.com |
| `generate_security_headers(framework, reportOnly?)` | Ready-to-paste CSP, HSTS, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy and COOP config for `nextjs`, `vercel`, `cloudflare` (also Netlify), `nginx`, `caddy` or `express`. | offline |
| `generate_llms_txt(siteName, url, description, keyPages?)` | A [`/llms.txt`](https://llmstxt.org) file that follows the spec, plus a `robots.txt` snippet that allows GPTBot, ClaudeBot and PerplexityBot. | offline |
| `check_trust_badge(domain)` | The live **Verified by ShipBastion** SVG badge, trust-page URL, and Markdown/HTML snippets to embed them. | shipbastion.com |

## Install

### Claude Code

```bash
claude mcp add shipbastion -- npx -y github:zColdWater/shipbastion-mcp
# add it to every project:
claude mcp add --scope user shipbastion -- npx -y github:zColdWater/shipbastion-mcp
```

### Cursor

[![Install in Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](cursor://anysphere.cursor-deeplink/mcp/install?name=shipbastion&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsInNoaXBiYXN0aW9uLW1jcCJdfQ==)

Or add this to `~/.cursor/mcp.json` (global) or `.cursor/mcp.json` (per project):

```json
{
  "mcpServers": {
    "shipbastion": {
      "command": "npx",
      "args": ["-y", "github:zColdWater/shipbastion-mcp"]
    }
  }
}
```

### Claude Desktop

Open **Settings → Developer → Edit Config** (`claude_desktop_config.json`), add the entry below, then restart Claude Desktop:

```json
{
  "mcpServers": {
    "shipbastion": {
      "command": "npx",
      "args": ["-y", "github:zColdWater/shipbastion-mcp"]
    }
  }
}
```

### Windsurf

Add this to `~/.codeium/windsurf/mcp_config.json`, or use **Windsurf Settings → Cascade → MCP Servers → View raw config**:

```json
{
  "mcpServers": {
    "shipbastion": {
      "command": "npx",
      "args": ["-y", "github:zColdWater/shipbastion-mcp"]
    }
  }
}
```

### Antigravity

In the Agent panel open **⋯ → MCP Servers → Manage MCP Servers → View raw config** and add the same `mcpServers.shipbastion` entry shown above.

### VS Code (Copilot agent mode)

```bash
code --add-mcp '{"name":"shipbastion","command":"npx","args":["-y","github:zColdWater/shipbastion-mcp"]}'
```

## Prompts to try

- "Scan https://myapp.com for security issues before I launch."
- "Generate production security headers for my Next.js app and add them to next.config."
- "How visible is Supabase to AI search compared to Firebase?"
- "Write an llms.txt for my site with the docs, pricing and blog pages."
- "Give me a Verified by ShipBastion badge for myapp.com for my README."

## CLI

The same package works as a CLI. Exit codes are `0` for pass and `1` for fail or error, so you can drop it into a pre-deploy hook.

```bash
npx shipbastion-mcp scan https://myapp.com                # exits 1 on any critical/high finding
npx shipbastion-mcp scan https://myapp.com --fail-under 80 # exits 1 if score < 80
npx shipbastion-mcp geo Supabase database Firebase
npx shipbastion-mcp headers nextjs > next.config.mjs
npx shipbastion-mcp llms-txt "Acme" https://acme.dev "Acme builds rockets" \
    --section Docs --page "API|/docs/api|REST reference" --out public/llms.txt
npx shipbastion-mcp badge myapp.com
```

Add `--json` to any command for machine-readable output.

**Example: `scan`** (live output)

```
VibeShield example.com  Grade C  76/100  live · 109 checks
Baseline safe with hardening opportunities: Zero leaked secrets across 0 full JS bundle(s) (1 KB) and 28 sensitive endpoint probes, but 1 hardening gap(s) (CSP/HSTS/headers) keep the score at 76/100.

  TLS      ✔ TLSv1.3 · 86d left
  Headers  1/10 · missing Strict-Transport-Security, Content-Security-Policy, X-Frame-Options, ...
  Email    SPF ✔  DMARC ✔ p=reject
  Secrets  0 leaked   Source maps 0

  MEDIUM   9 of 10 Mozilla Observatory security headers/policies missing

✔ PASS — no critical/high findings
```

**Example: `geo`** (live output)

```
CiteReady Supabase (database)  Grade B  82/100

  ✔ wikidata           100
  ✔ wikipedia          33
  ✔ github             100
  ✔ hackerNews         100
  ✘ reddit             n/a  Reddit public rate-limit fallback (excluded from denominator)

  vs Firebase: 98/100 (A+) → leader Firebase (Δ -16)

  HIGH   Wikipedia Citations & Category Mentions
         Publish original benchmark data studies & open-source specs that industry editors naturally cite.
```

### Pre-deploy git hook

```bash
# .git/hooks/pre-push
npx -y github:zColdWater/shipbastion-mcp scan https://staging.myapp.com --fail-under 80 || {
  echo "Security gate failed. Fix the findings above before pushing."; exit 1; }
```

For CI, use the GitHub Action: **[zColdWater/vibeshield-action](https://github.com/zColdWater/vibeshield-action)**.

## Configuration

Everything is optional.

| Env var | Default | Purpose |
|---|---|---|
| `SHIPBASTION_TIMEOUT_MS` | `45000` | Timeout for live API calls |
| `SHIPBASTION_OFFLINE` | unset | `true` = always use the local passive scan |
| `NO_COLOR` | unset | Turn off colored CLI output |

## Go further

- **[VibeShield Pro Cursor Auto-Fix Pack ($9)](https://shipbastion.com/checkout/vibeshield-pro)**: unlocks the fix details on locked findings plus a fix prompt for your site that you paste into Cursor.
- **[VibeShield 24/7 Continuous Monitor ($19/mo)](https://shipbastion.com/checkout/vibeshield-monitor)**: rescans on a schedule and alerts Slack or Discord when your grade drops.
- **[CiteReady](https://cite.shipbastion.com)**: a full audit of your AI-search (GEO) visibility with a plan to close the gaps.

## Privacy & safety

- There is no telemetry. The only network calls are the ones listed in the Tools table, plus a passive fetch of the target URL when the scan falls back to local mode.
- URLs you scan are sent to the ShipBastion API to run the scan.
- Private, loopback and link-local addresses are rejected, and every redirect is checked again in local mode.

## Development

```bash
npm test     # node --test test/e2e.test.mjs (live, hits shipbastion.com)
```

The protocol is plain newline-delimited JSON-RPC 2.0 over stdio, implemented in `src/mcp-server.mjs` in about 300 lines. It handles `initialize`, `notifications/initialized`, `ping`, `tools/list`, `tools/call`, `notifications/cancelled` and batching.

## License

MIT © ShipBastion