Skip to main content
Glama
EU AI Act Risk Assessor

EU AI Act Risk Assessor

by vinkius-labs

πŸ‡ͺπŸ‡Ί EU AI Act Risk Assessor

MCP server that classifies AI use cases under Regulation (EU) 2024/1689 with deterministic precision. Built with Vurb.ts.

TypeScript Vurb.ts License

Why This Exists

Every AI company in the EU needs to know: is my AI system legal?

The EU AI Act defines four risk tiers β€” from Unacceptable (banned) to Minimal (no obligations). Misclassification means fines up to €35 million or 7% of global revenue.

This MCP server gives any LLM client deterministic, auditable risk classification β€” zero hallucination on compliance.

Related MCP server: EU AI Act Compliance MCP Server

Architecture

User describes AI use case (natural language)
        ↓
LLM translates β†’ structured input (Zod-enforced enums/booleans)
        ↓
MCP applies legal matrix β†’ deterministic verdict
        ↓
Presenter formats β†’ rules, UI, suggested actions
        ↓
LLM presents result to user

LLM = Semantic Translator Β· MCP = Implacable Judge

The LLM handles what it does best (understanding language). The MCP handles what code does best (applying legal logic without drift).

Tools

Tool

Description

risk.assess

Classify an AI use case across all four risk tiers

fines.calculate

Calculate maximum fine exposure under Art. 99

exemptions.check

Interactive exemption auditor (guided decision tree)

compliance.obligations

List all applicable obligations by risk level

compliance.timeline

Enforcement deadlines and milestones

compliance.generate_report

Generate Annex IV technical documentation template

risk.assess

The main classification tool. The LLM maps the user's natural language description to structured fields:

Input:  "Our AI screens job applications and ranks candidates"
  ↓ LLM translates:
  inferred_domain: "employment"
  involves_profiling: true
  makes_autonomous_decisions: true
  ↓ MCP evaluates:
  β†’ Art. 5(1)(f) match? No (no biometric data)
  β†’ Annex III Β§4 match? Yes (employment + profiling)
  ↓
Output: HIGH RISK | Art. 6 + Annex III Β§4 | 7 obligations

exemptions.check

Transforms the LLM into a guided compliance interviewer:

Call 1: exemptions.check(risk_level: "high", {})
  β†’ "Is this system purely procedural (no discretion)?"

Call 2: exemptions.check(risk_level: "high", { purely_procedural: false })
  β†’ "Does it merely improve a prior human activity?"

Call 3: exemptions.check(risk_level: "high", { ..., improves_prior_activity: true })
  β†’ EXEMPT under Art. 6(3)(b)

fines.calculate

Exact Art. 99 formula:

Prohibited practice:       max(€35M, 7% of global revenue)
High-risk noncompliance:   max(€15M, 3% of global revenue)
Incorrect information:     max(€7.5M, 1% of global revenue)

compliance.generate_report

Generates a complete Annex IV technical documentation template in Markdown β€” all 9 legally required sections with subsections. V8-safe (returns content as string, no filesystem access).

Regulation Area

Articles

Implementation

Prohibited Practices

Art. 5(1)(a)–(h)

8 rules with deterministic condition functions

High-Risk Classification

Art. 6, Annex III

8 domains, 15+ rules

Limited Risk

Art. 50

Transparency obligations

Fines

Art. 99(3)–(5)

Exact formulas with SME proportionality

Exemptions

Art. 6(3), Art. 2

6-node interactive decision tree

Technical Documentation

Art. 11, Annex IV

9-section template generator

Enforcement Timeline

Arts. 111, 113

Milestones with live status

Usage Examples

🚫 Example 1 β€” Detecting a Prohibited Practice

User: "We're building an AI that analyses employee webcam footage to detect if they're stressed, bored, or engaged during meetings."

The LLM translates this into structured input and calls risk.assess:

{
  "intention_summary": "Real-time emotion recognition system analysing employee webcam footage during meetings",
  "inferred_domain": "employment",
  "processes_biometric_data": true,
  "involves_profiling": true,
  "makes_autonomous_decisions": false
}

Result: 🚫 UNACCEPTABLE β€” Art. 5(1)(f) prohibits emotion recognition in the workplace. This AI practice is illegal since 2 February 2025.

The Presenter automatically suggests fines.calculate and exemptions.check as next actions.


⚠️ Example 2 β€” High-Risk Classification (Employment)

User: "Our startup uses AI to screen CVs and shortlist the top 20% of candidates for interview."

{
  "intention_summary": "AI system that screens and ranks job applicants based on CV analysis",
  "inferred_domain": "employment",
  "processes_biometric_data": false,
  "involves_profiling": true,
  "makes_autonomous_decisions": true
}

Result: ⚠️ HIGH RISK β€” Annex III Β§4(a): AI systems used for recruitment and selection. Confidence: definitive. 7 compliance obligations apply.

The Presenter renders a Mermaid decision-flow diagram and suggests:

  • compliance.obligations β€” review all required obligations

  • fines.calculate β€” calculate maximum fine exposure

  • compliance.generate_report β€” generate Annex IV documentation


⚠️ Example 3 β€” High-Risk Classification (Education)

User: "We want to build an AI that grades university exams automatically and decides who passes."

{
  "intention_summary": "Automated exam grading system with pass/fail decision authority",
  "inferred_domain": "education",
  "processes_biometric_data": false,
  "involves_profiling": true,
  "makes_autonomous_decisions": true
}

Result: ⚠️ HIGH RISK β€” Annex III Β§3(a): AI systems determining access to or outcomes in educational institutions.


ℹ️ Example 4 β€” Limited Risk (Chatbot)

User: "We have a customer support chatbot that answers questions about our products."

{
  "intention_summary": "Customer-facing chatbot for product FAQ and support queries",
  "inferred_domain": "none",
  "processes_biometric_data": false,
  "involves_profiling": false,
  "makes_autonomous_decisions": false
}

Result: ℹ️ LIMITED RISK β€” Art. 50: The system must clearly disclose to users that they are interacting with an AI. No further compliance obligations beyond transparency.


βœ… Example 5 β€” Minimal Risk

User: "We use AI to recommend songs to users based on their listening history."

{
  "intention_summary": "Music recommendation engine based on listening patterns",
  "inferred_domain": "none",
  "processes_biometric_data": false,
  "involves_profiling": false,
  "makes_autonomous_decisions": false
}

Result: βœ… MINIMAL RISK β€” No specific obligations under the EU AI Act. Voluntary codes of conduct apply.


πŸ’° Example 6 β€” Fine Calculation

User: "We're a company with €500M annual revenue. What's the worst-case fine if our prohibited AI system is caught?"

The LLM calls fines.calculate:

{
  "violation_type": "prohibited_practice",
  "global_annual_revenue_eur": 500000000,
  "is_sme": false
}

Result:

Value

Fixed threshold

€35,000,000

Revenue-based (7%)

€35,000,000

Applicable fine

€35,000,000

Article

Article 99(3)

If annual revenue were €1B, the revenue-based fine (€70M) would exceed the fixed threshold.


πŸ” Example 7 β€” Interactive Exemption Audit

User: "Our AI was classified as high-risk, but it just automates a simple checklist β€” no real decisions."

The LLM initiates an interactive exemption audit via exemptions.check:

Round 1:

{ "risk_level": "high", "answers": {} }
β†’ "Is this AI system purely procedural, performing a narrow task with no discretionary judgement?"

User: "Yes, it just checks if all documents are present in a submission."

Round 2:

{ "risk_level": "high", "answers": { "purely_procedural": true } }
β†’ βœ… EXEMPT under Art. 6(3)(a) β€” The system performs a purely procedural task.

The Presenter rules change dynamically: instead of "ask the next question", it now shows the exemption details and advises legal verification.


πŸ“‹ Example 8 β€” Full Compliance Workflow

A realistic end-to-end scenario:

Step 1 β€” User describes their system:

"We're building an AI for a city council that analyses CCTV footage to predict where crimes are likely to occur."

Step 2 β€” risk.assess classifies:

🚫 UNACCEPTABLE β€” Art. 5(1)(d): Predictive policing based on profiling.
   Domain: law_enforcement | Biometric: false | Profiling: true | Autonomous: true

Step 3 β€” User asks about exemptions:

"But what if it's for national security?"

Step 4 β€” exemptions.check evaluates:

β†’ "Is this system exclusively for military or national security purposes?"
User: "No, it's municipal police."
β†’ NOT EXEMPT β€” Art. 2(3) applies only to military/national security, not municipal law enforcement.

Step 5 β€” User asks about fines:

"What's the maximum fine for the city council?"

Step 6 β€” fines.calculate:

πŸ’° Prohibited practice: max(€35M, 7% of global revenue)
   Public authorities typically face the fixed threshold: €35,000,000

Step 7 β€” User asks about the timeline:

"When does this become enforceable?"

Step 8 β€” compliance.timeline:

πŸ“… Prohibited practices (Art. 5): ENFORCED since 2 February 2025
   ⚠️ This system is already illegal.

πŸ“„ Example 9 β€” Generating Technical Documentation

User: "Generate the Annex IV documentation template for our employment screening AI."

The LLM calls compliance.generate_report:

{
  "system_name": "TalentScreen AI",
  "system_description": "AI-powered CV screening and candidate ranking system",
  "intended_purpose": "Automated shortlisting of job applicants for interview",
  "domain": "employment",
  "provider_name": "Acme Corp"
}

Result: A complete Markdown document with all 9 Annex IV sections:

# Technical Documentation β€” TalentScreen AI
> Regulation (EU) 2024/1689 β€” Article 11, Annex IV

## 1. General Description of the AI System
## 2. Detailed Description of Elements and Development Process
## 3. Monitoring, Functioning and Control
## 4. Risk Management System
## 5. Data and Data Governance
## 6. Human Oversight Measures
## 7. Accuracy, Robustness and Cybersecurity
## 8. Transparency and Provision of Information
## 9. Post-Market Monitoring

Each section includes subsections with [To be completed by the provider] placeholders.

Deploy

Vinkius Cloud β€” One Command ⚑

The fastest path to production. vurb deploy publishes your server to Vinkius Cloud's global edge β€” zero infrastructure, built-in DLP, kill switch, audit logging, and a managed MCP token:

npm install
vurb deploy

That's it. No Dockerfile, no CI/CD pipeline, no servers to manage. You get a connection token that works with any MCP client β€” Cursor, Claude Desktop, Claude Code, Windsurf, Cline, VS Code + Copilot.

# Deploy with a custom name
vurb deploy --name eu-ai-act

# Deploy to a specific environment
vurb deploy --env production

πŸ’‘ Tip: Install the Vinkius extension to manage your deployed server directly from VS Code, Cursor, or Windsurf β€” live connections, requests, P95 latency, DLP intercepts, token management, tool toggling, logs, and deployment history.

Connect Your MCP Client

After deploying, share the managed token with any MCP-compatible client:

Claude Desktop / Cursor / Windsurf

{
  "mcpServers": {
    "eu-ai-act": {
      "url": "https://edge.vinkius.com/your-token/mcp"
    }
  }
}

Self-Hosted Alternatives

The same ToolRegistry runs anywhere β€” no code changes required:

Platform

Adapter

Vercel Edge Functions

@vurb/vercel

Cloudflare Workers

@vurb/cloudflare

Any Node.js server

Stdio / HTTP+SSE transport

// Vercel β€” one line
import { vercelAdapter } from '@vurb/vercel';
export const POST = vercelAdapter({ registry, contextFactory });
// Cloudflare Workers β€” one line
import { cloudflareWorkersAdapter } from '@vurb/cloudflare';
export default cloudflareWorkersAdapter({ registry, contextFactory });

Full deployment guides: Production Server Β· Vercel Adapter Β· Cloudflare Adapter

Running Locally via stdio

If you prefer to run the server locally and connect via stdio β€” the native MCP transport used by Claude Desktop, Cursor, and Windsurf:

# 1. Install dependencies
npm install

# 2. Build
npm run build

# 3. Test it directly (optional)
node dist/server.js

Then add it to your MCP client config (e.g. claude_desktop_config.json):

{
  "mcpServers": {
    "eu-ai-act": {
      "command": "node",
      "args": ["/absolute/path/to/eu-ai-act/dist/server.js"]
    }
  }
}

Or run without cloning via npx (after the package is published):

{
  "mcpServers": {
    "eu-ai-act": {
      "command": "npx",
      "args": ["-y", "@mcp-originals/eu-ai-act"]
    }
  }
}

Note: The stdio transport is the default. No environment variables are required β€” the server runs fully offline with all legal data hardcoded.

Development

# Install dependencies
npm install

# Development server with HMR
vurb dev

# Type-check
npm run typecheck

# Run tests
npm test

Project Structure

src/
β”œβ”€β”€ data/                 ← Legal knowledge base (hardcoded for determinism)
β”‚   β”œβ”€β”€ types.ts
β”‚   β”œβ”€β”€ prohibited-practices.ts    Art. 5
β”‚   β”œβ”€β”€ annex-iii-matrix.ts        Annex III
β”‚   β”œβ”€β”€ limited-risk.ts            Art. 50
β”‚   β”œβ”€β”€ obligations.ts             Art. 9-15, 72
β”‚   β”œβ”€β”€ timeline.ts                Enforcement dates
β”‚   β”œβ”€β”€ exemptions.ts              Art. 6(3), Art. 2
β”‚   β”œβ”€β”€ fines.ts                   Art. 99
β”‚   └── annex-iv-template.ts       Documentation TOC
β”œβ”€β”€ engine/
β”‚   └── risk-engine.ts             Pure deterministic logic
β”œβ”€β”€ models/                        M β€” defineModel()
β”‚   └── index.ts
β”œβ”€β”€ views/                         V β€” definePresenter()
β”‚   └── index.ts
β”œβ”€β”€ agents/                        A β€” Tool definitions
β”‚   β”œβ”€β”€ risk/
β”‚   β”‚   └── assess.tool.ts
β”‚   β”œβ”€β”€ fines/
β”‚   β”‚   └── calculate.tool.ts
β”‚   β”œβ”€β”€ exemptions/
β”‚   β”‚   └── check.tool.ts
β”‚   └── compliance/
β”‚       β”œβ”€β”€ obligations.tool.ts
β”‚       β”œβ”€β”€ timeline.tool.ts
β”‚       └── generate-report.tool.ts
β”œβ”€β”€ vurb.ts                        Shared Vurb instance
└── server.ts                      Bootstrap

Built with Vurb.ts

This server showcases the full Vurb.ts MVA (Model-View-Agent) pattern:

Feature

Usage

defineModel()

6 domain models with guidance labels as auto-rules

definePresenter()

Schema validation, JIT rules, Mermaid diagrams, collection UI, suggested actions

Semantic Verbs

f.query() (readOnly), f.action() (neutral)

f.error()

Self-healing errors with suggestions

.cached()

Static reference data (obligations, timeline)

.instructions()

AI-first prompt engineering in the framework

agentLimit

Cognitive guardrails with truncation guidance

autoDiscover()

File-based tool routing

Get started with Vurb.ts β†’ Β· Documentation β†’

License

Apache 2.0 β€” See LICENSE for details.

Available Tools

6 tools
compliance_generate_reportA
Read-only

[INSTRUCTIONS] Use ONLY after risk.assess has classified the system as High Risk. This generates the full Annex IV documentation template as Markdown content. Present the result to the user and advise them to save it and fill in each section with their specific details.

Generate an Annex IV-compliant technical documentation template in Markdown format [READ-ONLY]

Inputs: domain (required), system_name (required), intended_purpose (required), system_description (required), +1 more.

compliance_obligationsA
Read-only

[INSTRUCTIONS] Use after risk.assess to show the user exactly what they need to comply with. Each obligation is legally required β€” present them as a checklist.

List specific compliance obligations under the EU AI Act for a given risk level [READ-ONLY]

Inputs: risk_level (required).

compliance_timelineB
Read-only

[INSTRUCTIONS] Use to help users understand when different obligations take effect. Highlight deadlines that are coming soon with appropriate urgency.

Get the EU AI Act enforcement timeline with key compliance deadlines [READ-ONLY]

Inputs: risk_level.

exemptions_checkA
Read-only

[INSTRUCTIONS] IMPORTANT: When the result status is "inconclusive", you MUST ask the user the question provided in the next_question field. Do NOT guess or assume the answer. Wait for the user's response, then call this tool again with the updated boolean field. Continue the cycle until status is "exempt" or "not_exempt".

Check if an AI system qualifies for an exemption under Article 6(3) or Article 2 [READ-ONLY]

Inputs: intention_summary (required), current_risk_level (required), research_only, preparatory_task, +4 more.

fines_calculateA
Read-only

[INSTRUCTIONS] Use when the user wants to understand financial exposure for non-compliance. Ask for the company's annual global revenue if not provided β€” it dramatically affects the result.

Calculate maximum fine exposure under Article 99 of the EU AI Act [READ-ONLY]

Inputs: violation_type (required), is_sme, global_annual_revenue.

risk_assessB
Read-only

[INSTRUCTIONS] CRITICAL: You MUST infer ALL structured fields from the user's natural language description. Map their intent to the correct Annex III domain, and assess whether the system processes biometric data, involves profiling, makes autonomous decisions, targets vulnerable groups, or is used by a public authority. Do NOT pass raw user text as the intention_summary β€” write a concise technical summary. If the user's description does not clearly match any domain, use "none".

Classify an AI use case under the EU AI Act risk framework (Regulation 2024/1689) [READ-ONLY]

Inputs: inferred_domain (required), intention_summary (required), involves_profiling (required), processes_biometric_data (required), +3 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 6 tools

    Disambiguation4/5

    Each tool targets a distinct step in the assessment workflow: classification (risk_assess), obligations, timeline, documentation generation, exemptions, and fines. The only mild overlap is between risk_assess and exemptions_check, since both touch on whether a system is high-risk, but the descriptions clarify that exemptions_check handles Article 6(3)/Article 2 carve-outs specifically.

    Naming Consistency3/5

    Names are grouped by a domain prefix (risk_, compliance_, exemptions_, fines_) which aids readability, but the verb placement is mixed: risk_assess and exemptions_check put the verb last, compliance_obligations/compliance_timeline have no verb at all, and compliance_generate_report is a three-part outlier. The pattern is understandable but not the predictable verb_noun convention.

    Tool Count5/5

    Six tools is tightly scoped to a single advisory workflow and each one covers a distinct stage (assess, obligations, timeline, report, exemptions, fines). There is no redundant or filler tool.

    Completeness4/5

    The surface covers the core lifecycle: risk classification, obligations, deadlines, Annex IV documentation, exemptions, and penalties. However, there is no explicit coverage of Article 5 prohibited practices screening, Article 50 transparency obligations, or conformity assessment/CE marking, which are notable gaps for a full EU AI Act assessor.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Provides comprehensive GDPR compliance assessment tools for AI/ML systems, including lawful basis determination, DPIA generation, and data subject rights handling. It also crosswalks GDPR requirements to EU AI Act obligations with AI-specific considerations throughout.
      6
      7 npm
      47 PyPI
      1
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Provides automated EU AI Act compliance tools, including risk classification, role determination, transparency disclosures, content watermarking, deepfake labeling, and security threat detection.
      16
      35
      Apache 2.0
    • 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