Skip to main content
Glama

Legalithm — EU AI Act compliance in your coding loop

npm version Add to Cursor

Shipping an AI feature to EU users? Article 50 transparency duties have applied since 2 August 2026. Content marking for systems placed before that date is due 2 December 2026, and Annex III high-risk obligations follow on 2 December 2027. Catch it where you code, in seconds.

This image is AI-generated, and it is marked as such with our own tool: legalithm mark --watermark added a C2PA content credential and a pixel watermark, which is what Article 50(2) asks for. Download it and run legalithm verify on it. The credential is signed with the CLI's test certificate, so it is valid but not trust-listed.

Quickstart

Install the offline server in your editor. No API key, and nothing leaves your machine.

claude plugin marketplace add legalithm-org/legalithm
claude plugin install legalithm@legalithm

Codex:

codex plugin marketplace add legalithm-org/legalithm
codex plugin add legalithm@legalithm

Cursor: use the Add to Cursor badge above.

Then ask your agent "does the EU AI Act apply to this feature, and what tier?"

{
  "risk": "high",
  "confidence": "high",
  "rationale": "This AI system is classified as high-risk under Article 6(2) as it falls into the category of Employment, Workers Management and Access to Self-employment as specified in Annex III...",
  "citations": [
    {
      "article": "6(2)",
      "annex": "III",
      "label": "Article 6(2) & Annex III - High-Risk AI Systems",
      "url": "https://eur-lex.europa.eu/legal-content/EN/TXT/HTML/?uri=OJ:L_202401689#article-6",
      "asOf": "2026-08-03",
      "appliesFrom": "2027-12-02"
    }
  ],
  "matchedRules": ["high_risk_employment", "high_risk_domain_selected"],
  "applicableDeadline": "2027-12-02",
  "obligationsHint": {
    "count": 10,
    "topTitles": [
      "Quality Management System (Article 17)",
      "Data Governance (Article 10)",
      "Technical Documentation (Article 11)",
      "Human Oversight (Article 14)"
    ]
  },
  "confidenceScore": 0.72,
  "reviewRequired": false
}

Note matchedRules, asOf and confidenceScore. You can see which rule fired, how old the corpus is, and how sure the engine was. Below the abstention threshold it sets reviewRequired and tells you to get a human instead of guessing.

Content marking for Article 50(2), also no key:

npm i -g legalithm
legalithm mark ./out.png --watermark   # writes out.signed.png
legalithm verify ./out.signed.png      # detect both layers

Install it rather than using npx for these two: C2PA and the watermark come from c2pa-node and sharp, which are optional native dependencies that npx does not reliably fetch. Without them mark warns and marks nothing. Everything else in this README works fine under npx.

The compliance record (needs a free key)

npx legalithm setup   # wires hooks, editor rule and MCP config
npx legalithm init    # writes a dated, cited compliance/legalithm.json
npx legalithm check   # re-verify; non-zero exit on drift (for CI)

init and check talk to the hosted record service, so they need a free API key. Everything above this line does not.

Related MCP server: mcp-eu-ai-act

Three surfaces

  1. Editor — an offline MCP server (legalithm-mcp-server) exposing 4 tools (classify, explain_obligation, generate_disclosure, check_record). No API key. The first three run fully offline; check_record reads a public API.

  2. Repo — legalithm init writes a dated, cited compliance/legalithm.json that records your AI system's risk tier and the obligations behind it.

  3. CI — legalithm check and the GitHub Action fail the build when the committed record drifts — because your app changed or the law changed under you.

MCP config

Add the offline server to Claude Code, Cursor or Codex manually:

{
  "mcpServers": {
    "legalithm": {
      "command": "npx",
      "args": ["-y", "legalithm-mcp-server"]
    }
  }
}

GitHub Action

# .github/workflows/ai-act.yml
name: AI Act
on: [pull_request]
jobs:
  ai-act:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: legalithm-org/legalithm/packages/action@v1
        with:
          api-key: ${{ secrets.LEGALITHM_API_KEY }}

Honest framing

A cited starting point that tells you when to get a human — not legal advice. When unsure, it flags the result for review instead of guessing. Every output is checked against Regulation (EU) 2024/1689; it is not a certification.

License

MIT

Available Tools

7 tools
agent_disclosure_taxonomyWhat an AI agent must disclose, and what it need notA
Read-only

The six disclosure dimensions an AI agent owes under Article 50(1), plus the negative scope: what the Commission Guidelines confirm is NOT covered, including chain-of-thought, backend machine-to-machine calls and agent-to-agent traffic. Offline.

Inputs: no named parameters.

check_recordCheck a public Trust Center recordA
Read-only

Fetch a published Legalithm Trust Center compliance record by org slug. Online (reads the public API).

Inputs: slug (required).

classifyClassify AI risk (EU AI Act)A
Read-only

Classify an AI use case under the EU AI Act — risk tier + cited rationale. Offline; checked against Regulation (EU) 2024/1689, not legal advice.

Inputs: role (required), domain (required), audience (required), use_case (required).

discover_ai_surfacesDiscover the AI in a codebase, and which Article 50 limbs could attachA
Read-only

Reads file CONTENT you pass in (a package.json, source files) and proposes which AI capabilities the code could ship, with the evidence for each, then resolves those into Article 50 limbs with their dates and duty-bearers. Returns HYPOTHESES, never findings: a dependency proves what code could do, never what it ships. Offline, no network, nothing stored.

Inputs: files (required), deploys, own_brand, on_market_before_2_aug_2026.

explain_obligationExplain EU AI Act obligationsA
Read-only

List the EU AI Act obligations for a role + risk tier, each with its Article citation. Pass country (and sector) to also get the competent national authority. Offline.

Inputs: risk (required), role (required), sector, country.

generate_agent_disclosureGenerate an AI agent disclosure (Article 50)A
Read-only

Draft the Article 50(1) disclosure an AI agent owes: what it is, who it acts for, and the limits of its delegated authority. Follows the Commission Article 50 Guidelines adopted 20 July 2026. Refuses rather than inventing a principal. Offline.

Inputs: principal_name (required), principal_type (required), authority_scope (required), composition, +1 more.

generate_disclosureGenerate an Article 50 disclosureA
Read-only

Generate an Article 50 transparency disclosure snippet (chatbot / genai-content / deepfake / emotion), EN or DE. Offline.

Inputs: scenario (required), locale.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 7 tools

    Disambiguation4/5

    Each tool addresses a distinct task: classification, obligation lookup, disclosure generation, agent-specific disclosure, code-surface discovery, taxonomy reference, and record lookup. The mild ambiguity between generate_disclosure and generate_agent_disclosure is resolved by their clear scope descriptions, so agents should rarely misselect.

    Naming Consistency4/5

    Six of seven tools follow a clear verb_noun snake_case pattern: classify, explain_obligation, generate_disclosure, check_record, generate_agent_disclosure, and discover_ai_surfaces. agent_disclosure_taxonomy breaks the verb convention by starting with a noun, but it is still consistent in style and predictable.

    Tool Count5/5

    Seven tools is well-scoped for an EU AI Act compliance assistant: classification, obligations, disclosure generation, agent disclosure, code analysis, taxonomy reference, and record lookup. Each tool earns its place, and the count is neither bloated nor thin.

    Completeness4/5

    The core workflow—classify a use case, look up obligations, generate the correct disclosure, analyze code surfaces, and check a compliance record—is covered. Minor gaps exist, such as no create/update path for Trust Center records and no broader EU AI Act article search, but agents can complete the main intended tasks without dead ends.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      F
      maintenance
      Query 37 EU regulations — from GDPR and AI Act to DORA, MiFID II, eIDAS, Medical Device Regulation, and more — directly from Claude, Cursor, or any MCP-compatible client.
      14
      25
      Apache 2.0
    • A
      license
      A
      quality
      D
      maintenance
      MCP server for EU AI Act compliance classification with multi-jurisdiction overlay across 8 frameworks (NIST AI RMF, ISO 42001, GDPR, HIPAA, Colorado SB 24-205). Provides deterministic risk classifier (quick_risk_class) and Claude-powered Annex III deep classifier (classify_annex3) with remediation actions.
      2
      11 npm
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables EU AI Act compliance assessment by classifying AI systems, listing obligations, computing deadlines, and scanning repos for required documentation, all running locally.
      4
      2
      MIT