Purpose
PolicyForge MCP Server is the Model Context Protocol (MCP) server for PolicyForge, designed to let AI coding tools (Claude Code, Cursor, Windsurf, Claude Desktop) directly generate, audit, and maintain legal policies. It extracts actual behavioral details from the codebase and generates privacy policies, terms of service, cookie policies, refund policies, EULAs, disclaimers, and HIPAA Business Associate Agreements (BAAs).
Main Capabilities
- Generate legal policies: supports types such as privacy_policy, terms_of_service, cookie_policy, refund_policy, eula, disclaimer, and more.
- Compliance audit: the audit_compliance tool can check whether a privacy policy covers the code's actual behavior, with no quota limits.
- Policy drift check: check_policy_freshness detects whether policies are outdated after code changes, with no quota limits.
- Disclosure checklist scan: get_disclosure_checklist returns scan rules, based on which the agent scans dependencies, script tags, cookie writes, and external hosts, and builds a tech stack inventory.
- Generate HIPAA Business Associate Agreements (BAAs): available on the Pro plan; requires fields such as both parties' information, PHI types, and permitted uses; the generated result is validated against the 15 clauses required by 45 CFR 164.504(e), and if incomplete, the return is refused.
How to Use
- Connection methods:
- A. Remote OAuth (simplest): no need to copy keys or edit configuration files. First register a PolicyForge account (https://policyforge.co , free, no credit card required). Run
claude mcp add -s user policyforge https://policyforge.co/mcp, restart the client, run/mcpselect policyforge and press Enter; after browser authentication, the connection succeeds. - B. Remote API key: create an API key at https://policyforge.co/api-dashboard for clients that support URL configuration (Cursor, Windsurf, etc.).
- Local npx transport: run via npx
@policyforge/mcp@latest, using the API key in an environment variable. Windows may requirecmd /cwrapper.
- A. Remote OAuth (simplest): no need to copy keys or edit configuration files. First register a PolicyForge account (https://policyforge.co , free, no credit card required). Run
- Typical workflow:
- The agent calls get_disclosure_checklist to scan the codebase and build a tech stack inventory.
- Call generate_policy and pass required parameters such as type, business_type, jurisdiction, company_name, contact_email, as well as optional context information (such as website_url, data_collection, third_party_integrations, etc.).
- Call get_integration_guide to integrate the hosted policy into the footer.
- After subsequent code changes, use check_policy_freshness to detect drift, audit_compliance to view gaps, and regenerate_policy to fix them; the hosted URL stays the same, and old versions can be restored.
- BAA generation: requires acknowledge_contract to be true, and specify baa_direction, both parties' information, effective date, service description, PHI types, permitted uses, governing state, etc. The result is only a draft, requires lawyer review, and will not be published to a public URL.
Applicable Scenarios
- When developing a new project, quickly generate privacy policies, terms of service, and cookie policies that comply with regulations such as GDPR and CCPA.
- Existing projects need regular compliance audits to ensure policies are consistent with code behavior.
- Healthcare applications need to generate HIPAA Business Associate Agreements.
Limitations
- Policy generation consumes quota: the free tier has 2 generations per month, with an extra 3 granted on the first MCP connection; audits and drift checks are unlimited and free.
- Rate limits: the free tier allows 10 requests per minute and 100 requests per day.
- BAA generation requires the Pro plan.
- All generated results are drafts and require review by legal counsel.
- The server is a thin wrapper around PolicyForge's public REST API (/api/v1); quota, rate limiting, and generation logic are all server-side.
- Other limitations are not yet provided.