CookieGuard — Claude Code MCP server: what does it do, how to install
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.
MIT ★ 5 updated 2026-11-14
claude mcp add mcp -- npx -y @aiscihub/cookieguard-mcpWhat CookieGuard 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.
What it helps with
- 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 for the agent
- Read CookieGuard's policy, then scan
http://127.0.0.1:3000/secureand explain any confirmed failures. - Run an audit tool call using CookieGuard with an evidence file.
- Show capabilities and checks configured in CookieGuard.
How to install CookieGuard
Platform CLI
claude mcp add mcp -- npx -y @aiscihub/cookieguard-mcpPlatform CLI
codex mcp add mcp -- npx -y @aiscihub/cookieguard-mcpConfig file
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@aiscihub/cookieguard-mcp"
]
}
}
}Config file
{
"servers": {
"mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@aiscihub/cookieguard-mcp"
]
}
}
}Platform CLI
gemini mcp add mcp npx -y @aiscihub/cookieguard-mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about CookieGuard
How to install CookieGuard in Claude Code?
Run the command claude mcp add mcp -- npx -y @aiscihub/cookieguard-mcp.
What does CookieGuard do?
It scans HTTP cookie headers and attributes, returning pass or fail statuses, rule IDs, and explanations for identified issues.
What is needed to run CookieGuard?
Node.js 24 or later and a local configuration file containing your allowed origins and policy settings are required.