# CookieGuard

CookieGuard — an MCP server for Claude Code audits HTTP cookie configuration against local security policy. The tool runs locally over stdio and reports findings without exposing cookie values.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 5 repo stars
- Author: aiscihub
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/aiscihub/cookieguard-ai/tree/HEAD/packages/mcp
- Updated: 2026-11-14
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/cookieguard

## What it does

The server evaluates endpoints and inspects cookie attributes through specific diagnostic tools like `cookieguard_audit` and `cookieguard_scan`. Operation requires Node.js 24 or later and an explicit JSON configuration file defining allowed origins and audit rules.

Configuration is loaded once at startup, so any policy updates require restarting the server process. Remote cloud hosting or external API keys are not required for execution.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add mcp -- npx -y @aiscihub/cookieguard-mcp
```

### Codex

**Platform CLI**
```bash
codex mcp add mcp -- npx -y @aiscihub/cookieguard-mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@aiscihub/cookieguard-mcp"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@aiscihub/cookieguard-mcp"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add mcp npx -y @aiscihub/cookieguard-mcp
```

## When to use it
- audit HTTP cookie configuration against local policy
- scan server endpoints for cookie security issues
- explain rule failure codes and remediation steps
- inspect scanner capabilities and active checks

## Example prompts
- Read CookieGuard's policy, then scan `http://127.0.0.1:3000/secure` and explain any confirmed failures.
- Run an audit tool call using CookieGuard with an evidence file.
- Show capabilities and checks configured in CookieGuard.

## Similar
- [csrf-protection](https://affpapa.org/en/nevibecode/skills/csrf-protection.md) — skill · 484 installs
- [Web Security taste](https://affpapa.org/en/nevibecode/prompts/web-security-taste.md) — prompt · ★ 178201 repo stars
- [MCPpedia](https://affpapa.org/en/nevibecode/mcp/mcppedia.md) — MCP server · 3642 installs
- [pentagonal](https://affpapa.org/en/nevibecode/mcp/pentagonal.md) — MCP server · 1033 installs
- [skill-security](https://affpapa.org/en/nevibecode/skills/skill-security.md) — skill · 9100 installs
- [cosmos-vulnerability-scanner](https://affpapa.org/en/nevibecode/skills/cosmos-vulnerability-scanner.md) — skill · 5900 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
