# Unchore Defend

> Unchore Defend is an open-source MCP server. Grade a site's security headers with fixes and a badge; read logs or code for the defender. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/smilemino/unchore-defend
- **MCP Registry name:** io.github.smilemino/unchore-defend
- **Listing updated:** 2026-11-13

## About

Grade a site's security headers with fixes and a badge; read logs or code for the defender.

## Install

### Claude Code (Terminal)

```sh
claude mcp add unchore-defend --env OPENROUTER_API_KEY='<OPENROUTER_API_KEY>' --env UNCHORE_TOKEN='<UNCHORE_TOKEN>' -- npx -y https://github.com/smilemino/unchore-defend/releases/download/v0.1.0/unchore-defend.mcpb
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "unchore-defend": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/smilemino/unchore-defend/releases/download/v0.1.0/unchore-defend.mcpb"
      ],
      "env": {
        "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>",
        "UNCHORE_TOKEN": "<UNCHORE_TOKEN>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "unchore-defend": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/smilemino/unchore-defend/releases/download/v0.1.0/unchore-defend.mcpb"
      ],
      "env": {
        "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>",
        "UNCHORE_TOKEN": "<UNCHORE_TOKEN>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "unchore-defend": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/smilemino/unchore-defend/releases/download/v0.1.0/unchore-defend.mcpb"
      ],
      "env": {
        "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>",
        "UNCHORE_TOKEN": "<UNCHORE_TOKEN>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "unchore-defend": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/smilemino/unchore-defend/releases/download/v0.1.0/unchore-defend.mcpb"
      ],
      "env": {
        "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>",
        "UNCHORE_TOKEN": "<UNCHORE_TOKEN>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "unchore-defend": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/smilemino/unchore-defend/releases/download/v0.1.0/unchore-defend.mcpb"
      ],
      "env": {
        "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>",
        "UNCHORE_TOKEN": "<UNCHORE_TOKEN>"
      }
    }
  }
}
```

## FAQ

### Is Unchore Defend free?

Yes. Unchore Defend is open source, so you can use and self-host it for free.

### How do I add Unchore Defend to Claude Code?

Run this command in your terminal: claude mcp add unchore-defend --env OPENROUTER_API_KEY='<OPENROUTER_API_KEY>' --env UNCHORE_TOKEN='<UNCHORE_TOKEN>' -- npx -y https://github.com/smilemino/unchore-defend/releases/download/v0.1.0/unchore-defend.mcpb

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/unchore-defend
