# PolicyForge MCP server

> Generate, audit, and maintain legal policies like privacy policies and EULAs based on your actual codebase content.

- Repository: https://github.com/PolicyForge/mcp
- Page: https://hostedmcp.org/servers/policyforge/mcp
- Transport: stdio, remote
- Stars: 0
- Latest version: 0.9.0

## Install

### Claude Code

```sh
claude mcp add --env 'POLICYFORGE_API_KEY=<YOUR_POLICYFORGE_API_KEY>' mcp -- npx -y @policyforge/mcp
```

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

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@policyforge/mcp"
      ],
      "env": {
        "POLICYFORGE_API_KEY": "<YOUR_POLICYFORGE_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@policyforge/mcp"
      ],
      "env": {
        "POLICYFORGE_API_KEY": "<YOUR_POLICYFORGE_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"mcp","type":"stdio","command":"npx","args":["-y","@policyforge/mcp"],"env":{"POLICYFORGE_API_KEY":"<YOUR_POLICYFORGE_API_KEY>"}}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@policyforge/mcp"
      ],
      "env": {
        "POLICYFORGE_API_KEY": "<YOUR_POLICYFORGE_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add mcp --env 'POLICYFORGE_API_KEY=<YOUR_POLICYFORGE_API_KEY>' -- npx -y @policyforge/mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.mcp]
command = "npx"
args = ["-y", "@policyforge/mcp"]

[mcp_servers.mcp.env]
POLICYFORGE_API_KEY = "<YOUR_POLICYFORGE_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'POLICYFORGE_API_KEY=<YOUR_POLICYFORGE_API_KEY>' mcp npx -- -y @policyforge/mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@policyforge/mcp"
      ],
      "env": {
        "POLICYFORGE_API_KEY": "<YOUR_POLICYFORGE_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `POLICYFORGE_API_KEY` | yes | yes | PolicyForge API key. Create one at https://policyforge.co/api-dashboard |

## Tools (20)

- `generate_policy`
- `generate_baa`
- `regenerate_policy`
- `check_generation`
- `update_policy`
- `audit_compliance`
- `check_policy_freshness`
- `list_policy_versions`
- `restore_policy_version`
- `list_policies`
- `get_policy`
- `delete_policy`
- `get_usage`
- `get_disclosure_checklist`
- `get_integration_guide`
- `list_policy_types`
- `type`
- `business_type`
- `jurisdiction`
- `baa_direction`

## FAQ

### How much does it cost to use?

Compliance audits, drift checks, and the scan rubric are unlimited and free. The free tier includes 2 policy generations per month, plus a one-time bonus of 3 extra generations upon your first MCP connection.

### What kind of policies can I generate?

You can generate privacy policies, terms of service, cookie policies, refund policies, EULAs, disclaimers, and HIPAA Business Associate Agreements.
