Skip to main content
The Court Rules MCP server gives AI agents access to structured privacy enforcement events from federal and state regulators. Three tools let you search events, get full details and count events by group.

What you get

Three enforcement-focused tools: The same MCP server also provides six court rules tools for filing compliance. See MCP: Court Rules.

Quick start

Add the server to your AI client, then sign in when the client asks. It opens console.courtrules.app in your browser, you sign in and approve the connection once, and the client keeps you signed in after that.

Claude Code

Then run /mcp in Claude Code, select court-rules, and choose Authenticate.

Claude Desktop and claude.ai

Open Settings > Connectors > Add custom connector. Enter Court Rules as the name and https://mcp.courtrules.app/mcp as the URL, click Add, then click Connect and sign in.

Cursor

Add to ~/.cursor/mcp.json, then open Cursor Settings > MCP and click the sign-in prompt next to court-rules:

VS Code

Add to .vscode/mcp.json. VS Code asks you to sign in the first time it starts the server.

Codex CLI

Scripts, backends, and clients without sign-in

Send the API key from your console dashboard as Authorization: Bearer <api_key>. Keys do not expire. See Authentication for header configs and an SDK example. Once connected, try asking your agent: “What privacy enforcement actions happened in California this year?”

Tool reference

search_privacy_enforcement_actions

Search privacy and regulatory enforcement events. Filters combine with AND logic. Parameters: Example request: {"jurisdiction": "CA", "limit": 1} Example response:

get_privacy_enforcement_action

Get full details for a specific enforcement event, including laws cited, remedies, and verbatim source quotes. Parameters: Example response:

get_privacy_enforcement_stats

Counts events and totals their fines by jurisdiction, violation type, risk level or month. Parameters: Example request: {"group_by": "jurisdiction"} The numbers in this example are illustrative:

Integration patterns

Regulatory feed widget

Use search_privacy_enforcement_actions with jurisdiction and industry filters to surface relevant enforcement events in your legal workspace. Poll periodically for new events.

Auto-matter creation

When a relevant enforcement event appears, automatically create a matter in your legal workspace:

Agent-powered research

Combine tools for research queries:

Polling for new events

The MCP server does not push notifications when new enforcement events are added. To check for new events, poll search_privacy_enforcement_actions with a date_from filter set to your last check time:
For platform integrations that auto-create matters, run this once a day and process any new events. No source is checked more often than daily, so a faster poll finds nothing new.

Response field reference

Key fields in enforcement event responses, with types and null semantics:

Error handling

MCP tool calls return errors as text content, not HTTP error codes. If a tool encounters an error (invalid parameters, database unavailable), the response will contain a descriptive error message in the content array:
Common error patterns:
  • Invalid event_id: "No enforcement event found with ID \"...\"."
  • Invalid group_by or risk_level: the server rejects a value outside the listed choices before the tool runs. group_by takes jurisdiction, violation_type, risk_level or month; risk_level takes critical, high, medium or low
  • Temporary error: "Error querying enforcement data: ...". Retry the call
The hosted server at mcp.courtrules.app counts calls and rows for each signed-in user or API key, with the same limits as the REST API. See Rate limits. A call that goes over a limit returns an error that names the limit and how long to wait, and one answer holds at most 500 rows on the free limits.

Current limitations

  • No webhooks: Poll for new events using date_from filters
  • No real-time streaming: The data is updated daily, so a new event appears after the next daily check. See Enforcement data
  • Read-only: The MCP server provides data access only, no write operations
For higher throughput or custom filtering, use the REST API directly.

Next steps