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
/mcp in Claude Code, select court-rules, and choose Authenticate.
Claude Desktop and claude.ai
Open Settings > Connectors > Add custom connector. EnterCourt 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 asAuthorization: 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
Usesearch_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, pollsearch_privacy_enforcement_actions with a date_from filter set to your last check time:
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 thecontent array:
- 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_bytakesjurisdiction,violation_type,risk_levelormonth;risk_leveltakescritical,high,mediumorlow - Temporary error:
"Error querying enforcement data: ...". Retry the call
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_fromfilters - 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
Next steps
- Browse enforcement data to see the events
- Try the MCP playground to test tools interactively
- MCP: Court Rules for filing compliance tools on the same MCP server