Skip to main content
Glama
Clearon Legislation Monitor MCP

Clearon Legislation Monitor MCP

by kwgoodwin

Clearon Legislation Monitor MCP

MCP server for review-gated U.S. legislation discovery and watchlist monitoring.

It separates discovery leads from verified watchlist entries, records append-only observations and exceptions, and keeps official-source review in the loop before a measure becomes authoritative.

What it does

  • Records discovery candidates without silently promoting them into the watchlist

  • Requires explicit human review before watchlist acceptance

  • Tracks official-source observations, due reviews, and retrieval exceptions

  • Replays an append-only event log into a rebuildable snapshot

  • Optionally uses Open States and NYC Legistar as discovery helpers, never as final proof

Related MCP server: Clearon AI Legal Watch MCP

What it does not do

  • It does not publish content or modify WordPress

  • It does not treat a keyword hit as legal verification

  • It does not treat third-party discovery results as source-of-record status

  • It does not convert retrieval failures into legal-status changes

Requirements

  • Node.js 20 or newer

  • A local MCP client that can launch a stdio server

Installation

cd tools/clearon-legislation-monitor-mcp
npm install
npm test
npm run smoke

MCP client setup

Example stdio configuration:

{
  "mcpServers": {
    "clearon-legislation-monitor": {
      "command": "node",
      "args": ["/absolute/path/to/clearon-legislation-monitor-mcp/server.mjs"],
      "env": {
        "CLEARON_LEGISLATION_WORKSPACE": "/absolute/path/to/workspace"
      }
    }
  }
}

If your normalized tracker inputs are not in the default workspace locations, also set:

  • CLEARON_LEGISLATION_REGISTRY_PATH

  • CLEARON_LEGISLATION_WATCHLIST_PATH

Storage

By default, monitor state is stored outside the repository in a user data directory:

  • macOS: ~/Library/Application Support/clearon-legislation-monitor-mcp/legislation-monitor

  • Linux: ${XDG_DATA_HOME:-~/.local/share}/clearon-legislation-monitor-mcp/legislation-monitor

  • Windows: %APPDATA%\\clearon-legislation-monitor-mcp\\legislation-monitor

Override that location with CLEARON_LEGISLATION_MONITOR_ROOT.

The canonical tracker inputs are still expected to come from your chosen workspace:

  • trackers/state-legislation/jurisdictions.json

  • trackers/state-legislation/watchlist.csv

unless you override them explicitly with environment variables.

Credentials

Optional provider keys can be supplied directly in the environment:

  • OPENSTATES_API_KEY

  • NYC_LEGISTAR_TOKEN

The server also supports an optional local secrets file. By default it looks for:

  • macOS: ~/Library/Application Support/openclaw/local-secrets.json

  • Linux: ${XDG_CONFIG_HOME:-~/.config}/openclaw/local-secrets.json

  • Windows: %APPDATA%\\openclaw\\local-secrets.json

Override that path with OPENCLAW_LOCAL_SECRETS.

Install or rotate stored credentials through protected stdin so values stay out of shell history:

node bin/install-credentials.mjs < /path/to/private-credentials.json
npm run credentials

Supported JSON keys:

{
  "openstatesApiKey": "provider-issued value",
  "nycLegistarToken": "provider-issued value"
}
  1. Call list_jurisdictions to choose the official route.

  2. Use scan_official_source, search_openstates_bills, or search_nyc_legistar_matters to gather leads.

  3. Record plausible official-source measures with record_discovery_candidate.

  4. Review each candidate and call review_candidate with accept or reject.

  5. Record official observations with record_measure_observation.

  6. Use get_due_reviews and get_exceptions for scheduled follow-up.

Tools

  • get_server_health

  • list_jurisdictions

  • scan_official_source

  • search_openstates_bills

  • search_nyc_legistar_matters

  • record_discovery_candidate

  • list_discovery_candidates

  • review_candidate

  • import_normalized_watchlist

  • list_watchlist

  • record_measure_observation

  • dedupe_watchlist_measures

  • record_exception

  • resolve_exception

  • get_due_reviews

  • get_exceptions

  • verify_event_log

Development

npm test
npm run smoke
npm run syntax

Available Tools

17 tools
dedupe_watchlist_measuresA

Remove duplicate watchlist rows while preserving append-only audit history and migrating any stored observations to the survivor measure.

Inputs: note (required), survivor_measure_id (required), duplicate_measure_ids (required), expected_revision.

get_due_reviewsC

List active measures whose next-review date is due.

Inputs: as_of.

get_exceptionsB

List consolidated exceptions, optionally since an ISO datetime.

Inputs: since.

get_server_healthB

Report monitor state and safety boundaries.

Inputs: no named parameters.

import_normalized_watchlistC

Idempotently seed the MCP from the workspace normalized watchlist CSV.

Inputs: expected_revision.

list_discovery_candidatesB

List candidates by review status.

Inputs: review_status.

list_jurisdictionsC

List official source routes for all states and supported local jurisdictions.

Inputs: code.

list_watchlistC

List all or active monitored measures.

Inputs: active_only, jurisdiction_code.

record_discovery_candidateA

Record a deduplicated candidate with an official measure URL for human review; does not add it to the watchlist.

Inputs: title (required), session (required), bill_type (required), bill_number (required), +11 more.

record_exceptionA

Record a retrieval, parsing, migration, or verification exception without treating it as a legal-status change.

Inputs: type (required), message (required), measure_id, source_url, +4 more.

record_measure_observationB

Record an official-source observation, compute material field changes, and update the watch snapshot. Does not publish.

Inputs: current (required), measure_id (required), note, checked_at, +3 more.

resolve_exceptionA

Mark a previously recorded exception as resolved after a successful re-check or remediation.

Inputs: exception_id (required), resolution_note (required), resolved_at, expected_revision.

review_candidateA

Explicitly accept or reject a candidate. Acceptance requires a normalized watch entry and is the only candidate-to-watchlist path.

Inputs: note (required), decision (required), reviewed_by (required), candidate_id (required), +2 more.

scan_official_sourceB

Retrieve one explicit public official-source URL and return keyword matches and candidate links. Results are leads, not verification.

Inputs: url (required), terms, timeout_ms.

search_nyc_legistar_mattersB

Search the official NYC Legistar matters API for discovery leads. Results must still be verified against the official matter page or enacted local law before watchlist acceptance.

Inputs: q, top, body, limit, +6 more.

search_openstates_billsA

Search Open States v3 for discovery leads. Results never count as final verification and must be pivoted back to official sources before watchlist acceptance.

Inputs: q, page, sort, chamber, +11 more.

verify_event_logA

Replay the append-only event log and compare it with the stored snapshot.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 17 tools

    Disambiguation5/5

    Each tool is scoped to a distinct workflow stage or data type: discovery candidates, watchlist measures, exceptions, health, and audit. Search tools are source-specific, and state/verification boundaries are clearly described, so an agent should rarely select the wrong tool.

    Naming Consistency4/5

    All tool names are snake_case verb_noun and generally predictable. Minor inconsistency exists between list_* and get_* for similar collection-style operations, but the pattern is still coherent and readable.

    Tool Count4/5

    Seventeen tools is on the heavier side, but the count is justified by the broad legislation-monitoring workflow: discovery, candidate review, watchlist management, observations, exceptions, and audit. The scope feels intentional rather than padded.

    Completeness4/5

    The server covers the major lifecycle stages from discovery through watchlist observation and exception handling, with strong audit support. Minor gaps exist, such as no explicit watchlist removal/deactivation tool and no publish step despite observations being non-publishing.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Enables append-only maintenance of a legal developments tracker stored as CSV, with duplicate checks, dry-run proposals, fingerprint-safe appends, digest views, and transparent candidate scoring.
      6
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables review-gated, local-first monitoring of AI legislation, regulations, litigation, sanctions, court rules, and ethics guidance by collecting and verifying leads from official sources, managing human review workflows, and generating digests and exports.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables traceable research workflows by searching uploaded sources, verifying citations, routing uncertain or high-risk requests to human review, and streaming answers with an audit trail.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables judicial AI workflows to add a traceable human-oversight layer that assesses material impact, verifies legal sources, manages incidents, and preserves integrity evidence before closing resolutions.
      MIT