# HeaderGuard

> HeaderGuard is a freemium MCP server for security. Scan a site's HTTP security headers and get a 0-100 score with copy-paste fixes. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Starting price:** $9 a month
- **Platforms:** Web, API
- **Website:** https://headerguard.mike-tusa.workers.dev
- **MCP Registry name:** dev.workers.mike-tusa.headerguard/headerguard
- **Categories:** security, developer tools
- **Listing updated:** 2026-11-17

## About

Scoring is explicit: HTTPS 10, HSTS 15, CSP 25, framing 10, nosniff 10, Referrer-Policy 10, Permissions-Policy 5, COOP 5, CORP 5 and cookies 5, minus up to 5 for headers that leak software versions. Grades run from A+ at 95 and above down to F, and sites without HTTPS are capped at 39. The CSP check parses each directive and flags unsafe-inline, unsafe-eval, wildcard sources and missing default-src, object-src, base-uri and frame-ancestors; Report-Only policies are noted but earn no credit.

Fixes are given as snippets for nginx, Apache, Cloudflare, Netlify, Vercel and Express. The scan reads only response headers, discards page content, and the operator says it does not store scanned URLs, with results held in memory for two minutes.

The MCP server exposes one read-only tool, scan_headers, which takes a URL or domain and returns the same score, grade, findings and fixes as the JSON API. A free JSON API (about 30 scans a minute per IP) and an embeddable grade badge also exist; a Pro plan raises limits and adds batch scanning.

## Features

- **Weighted score:** A 0-100 score and A+ to F grade built from published weights.
- **CSP analysis:** Flags unsafe directives, wildcards and missing key directives.
- **Platform fixes:** Copy-paste fixes for nginx, Apache, Cloudflare, Netlify, Vercel and Express.
- **Cookie and leak checks:** Checks Secure, HttpOnly and SameSite flags and version-revealing headers.
- **Free JSON API:** Keyless API with CORS and per-IP rate limits.
- **Grade badge:** Embeddable SVG badge per host.

## Good for

- Audit a site's security headers before launch
- Add a header check to a CI pipeline
- Have an AI agent review a domain's header posture
- Get server-specific config to fix missing headers

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http headerguard https://headerguard.mike-tusa.workers.dev/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://headerguard.mike-tusa.workers.dev/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "headerguard": {
      "url": "https://headerguard.mike-tusa.workers.dev/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "headerguard": {
      "type": "http",
      "url": "https://headerguard.mike-tusa.workers.dev/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "headerguard": {
      "serverUrl": "https://headerguard.mike-tusa.workers.dev/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "headerguard": {
      "type": "http",
      "url": "https://headerguard.mike-tusa.workers.dev/mcp"
    }
  }
}
```

## Tools

- `scan_headers`: Takes a URL or domain and returns the score, grade, findings and fixes.

## FAQ

### Do I need an account?

No. One-off scans and the MCP tool work without sign-up or a key.

### How much does Pro cost?

$9 per month, for about 120 scans a minute per key and a batch endpoint of up to 5 URLs.

### Are scanned URLs stored?

The operator says scanned URLs and results are not stored beyond about two minutes in memory.

### Which tool does the MCP server provide?

One read-only tool, scan_headers.

### Is HeaderGuard free?

HeaderGuard has a free plan, with paid plans for more usage or features. Paid plans start at $9 a month.

### How do I add HeaderGuard to Claude Code?

Run this command in your terminal: claude mcp add --transport http headerguard https://headerguard.mike-tusa.workers.dev/mcp

### What are the best alternatives to HeaderGuard?

The closest alternatives to HeaderGuard are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/headerguard
