MCP Hub
Back to servers

mcp-eu-ai-act

EU AI Act compliance MCP server. Scans AI codebases, classifies risk, provides remediation guidance.

Updated
Mar 1, 2026

EU AI Act Compliance Scanner — MCP Server

GitHub Stars

If this tool helps your compliance work, a ⭐ on GitHub helps others discover it.

Static analysis tool that scans codebases for AI framework usage and checks compliance against EU AI Act requirements.

Quick Start

git clone https://github.com/ark-forge/mcp-eu-ai-act.git
cd mcp-eu-ai-act
pip install mcp
python3 server.py

Runs on Python 3.10+.

Full install

git clone https://github.com/ark-forge/mcp-eu-ai-act.git
cd mcp-eu-ai-act
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
python3 server.py

Run tests

pip install pytest
pytest tests/ -v

Usage Examples

Once connected via MCP (see integration below), call tools by name.

Scan a project for AI frameworks

Tool: scan_projectInput: {"project_path": "/path/to/your/app"}

{
  "files_scanned": 42,
  "ai_files": [
    {"file": "src/chat.py", "frameworks": ["openai"]},
    {"file": "requirements.txt", "frameworks": ["openai"], "source": "config"}
  ],
  "detected_models": {"openai": ["src/chat.py", "requirements.txt"]}
}

Check compliance for a high-risk system

Tool: check_complianceInput: {"project_path": "/path/to/your/app", "risk_category": "high"}

{
  "risk_category": "high",
  "compliance_status": {
    "technical_documentation": true,
    "risk_management": false,
    "transparency": true,
    "data_governance": false,
    "human_oversight": false,
    "robustness": false
  },
  "compliance_score": "2/6",
  "compliance_percentage": 33.3
}

MCP Integration

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "eu-ai-act": {
      "command": "python3",
      "args": ["/path/to/mcp-eu-ai-act/server.py"]
    }
  }
}

Claude Code

claude mcp add eu-ai-act python3 /path/to/mcp-eu-ai-act/server.py

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "eu-ai-act": {
      "command": "python3",
      "args": ["/path/to/mcp-eu-ai-act/server.py"]
    }
  }
}

HTTP mode (for CI/CD or remote clients)

pip install uvicorn
python3 server.py --http
# Listening on 0.0.0.0:8089

Tools

scan_project

Detects AI framework usage in source code and config/manifest files. Scans .py, .js, .ts, .java, .go, .rs, .cpp, .c plus dependency files (requirements.txt, package.json, pyproject.toml, etc.).

Parameters: project_path (string, required) — absolute path to scan.

check_compliance

Checks EU AI Act compliance for a given risk category. Verifies required documentation files exist (RISK_MANAGEMENT.md, TRANSPARENCY.md, etc.) and checks for AI disclosure patterns.

Parameters: project_path (string, required), risk_category (string, default: limited — one of unacceptable, high, limited, minimal).

generate_report

Runs scan + compliance check, returns a combined report with actionable recommendations per failing check. Each recommendation includes the relevant EU article, steps, and effort estimate.

Parameters: project_path (string, required), risk_category (string, default: limited).

suggest_risk_category

Suggests a risk category from a plain-text description of your AI system. Matches against EU AI Act criteria (Art. 5, Annex III, Art. 52).

Parameters: system_description (string, required) — what your AI system does.

generate_compliance_templates

Returns starter markdown templates for each required compliance document. Save them in docs/ and fill in the bracketed sections.

Parameters: risk_category (string, default: high). For high risk: Risk Management, Technical Documentation, Data Governance, Human Oversight, Robustness, Transparency.

GDPR Tools

Also includes gdpr_scan_project, gdpr_check_compliance, gdpr_generate_report, and gdpr_generate_templates for GDPR personal data processing compliance.

REST API

A separate HTTP API (paywall_api.py) provides rate-limited REST endpoints for CI/CD and external clients.

python3 paywall_api.py
# Listening on 0.0.0.0:8091
MethodPathAuthDescription
GET/api/v1/statusNoneService status + your rate limit
GET/api/usageNoneCurrent free-tier usage for your IP
POST/api/v1/scanFree/ProScan a project for AI frameworks
POST/api/v1/check-complianceFree/ProCheck EU AI Act compliance
POST/api/v1/generate-reportFree/ProFull compliance report
POST/api/v1/scan-repoInternalScan a GitHub repo (Trust Layer integration)

Free tier: 10 scans/day per IP, no sign-up required. Pro tier: Unlimited scans, X-API-Key header. 29 EUR/month via mcp.arkforge.fr/fr/pricing.html.

Example: scan via REST

curl -X POST https://mcp.arkforge.fr/mcp/api/v1/scan \
  -H "Content-Type: application/json" \
  -d '{"project_path": "/path/to/your/project"}'

Configuration

For the REST API (Stripe payments, email notifications), create a settings.env:

STRIPE_LIVE_SECRET_KEY=sk_live_...
STRIPE_WEBHOOK_SECRET=whsec_...
TRUST_LAYER_INTERNAL_SECRET=<random-64-char-hex>
SMTP_HOST=ssl0.ovh.net
IMAP_USER=contact@example.com
IMAP_PASSWORD=...

Set SETTINGS_ENV_PATH to the file location (defaults to /opt/claude-ceo/config/settings.env).

Supported Frameworks (16)

FrameworkDetection covers
OpenAIGPT-3.5, GPT-4, GPT-4o, o1, o3, embeddings
AnthropicClaude (Opus, Sonnet, Haiku)
Google GeminiGemini Pro, Ultra, 1.5, 2, 3, Flash
Vertex AIGoogle Cloud AI Platform
MistralMistral Large/Medium/Small, Mixtral, Codestral, Magistral
CohereCommand-R, Command-R+, embeddings
HuggingFaceTransformers, Diffusers, Accelerate, SmolAgents
TensorFlowKeras, .h5 model files
PyTorch.pt/.pth model files, nn.Module
LangChainCore, Community, OpenAI, Anthropic integrations
AWS BedrockBedrock Runtime, Agent Runtime
Azure OpenAIAzure AI OpenAI Service
OllamaLocal model inference
LlamaIndexVectorStoreIndex, SimpleDirectoryReader
ReplicateCloud model inference
GroqFast inference API

Detection works on both source code imports and dependency declarations in config files.

EU AI Act Risk Categories

CategoryExamplesKey obligations
UnacceptableSocial scoring, mass biometric surveillanceProhibited
HighRecruitment, credit scoring, law enforcementDocumentation, risk management, human oversight
LimitedChatbots, content generationTransparency, user disclosure, content marking
MinimalSpam filters, video gamesNone

Rate Limiting

Free tier: 10 scans/day per IP. Pro API keys (X-API-Key header or Authorization: Bearer) bypass limits.

Limitations

  • Static analysis only — detects imports and patterns, not runtime behavior
  • Cannot determine risk category automatically from code alone (use suggest_risk_category with a description)
  • Compliance checks verify documentation exists, not its content quality
  • File scanning limited to 5,000 files and 1 MB per file
  • Certain system paths are blocked from scanning for security

Certify your scans with Trust Layer

Turn any compliance scan into a tamper-proof, verifiable proof with ArkForge Trust Layer:

  • Signed proofs — Ed25519 digital signatures on every scan result
  • Tamper-proof — SHA-256 hash chain, independently verifiable
  • Regulatory-ready — timestamped evidence for EU AI Act audits
# Get a certified compliance proof in one call
curl -X POST https://arkforge.fr/trust/v1/proofs \
  -H "X-API-Key: YOUR_KEY" \
  -d '{"service": "eu-ai-act", "action": "scan", "path": "/your/project"}'

Free tier available (100 proofs/month, no credit card). Get started →

ArkForge ecosystem

This scanner is the first service sold autonomously through the ArkForge Trust Layer — a certifying proxy that turns API calls into verifiable, paid, tamper-proof transactions.

Agent Client  →  Trust Layer  →  EU AI Act Scanner
   pays            certifies         delivers
ComponentDescriptionRepo
Trust LayerCertifying proxy — billing, proof chain, verificationark-forge/trust-layer
MCP EU AI ActCompliance scanner (this repo)ark-forge/mcp-eu-ai-act
Proof SpecOpen specification + test vectors for the proof formatark-forge/proof-spec
Agent ClientAutonomous buyer — proof-of-concept of a non-human customerark-forge/arkforge-agent-client

License

MIT

Reviews

No reviews yet

Sign in to write a review