Skip to main content

MCP server for EU AI Act compliance scanning — scan, analyze, and remediate Python AI agents

Project description

AIR Blackbox MCP Server

EU AI Act compliance scanning for Python AI agents — directly in Claude Desktop, Cursor, or any MCP client.

10 tools that scan, analyze, and fix compliance gaps across LangChain, CrewAI, AutoGen, OpenAI, and RAG pipelines.

Quick Start

1. Install

pip install air-blackbox-mcp

2. Add to Claude Desktop

Open your Claude Desktop config file:

  • Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Add this:

{
  "mcpServers": {
    "air-blackbox": {
      "command": "python3",
      "args": ["-m", "air_blackbox_mcp"]
    }
  }
}

3. Restart Claude Desktop

The AIR Blackbox tools will appear in Claude's tool list.

Tools

Scanning

Tool What it does
scan_code Scan a Python code string for all 6 EU AI Act articles
scan_file Scan a single .py file
scan_project Scan an entire project directory

Analysis

Tool What it does
analyze_with_model Deep analysis using local fine-tuned Llama model (via Ollama)
check_prompt_injection Scan text for 15 prompt injection patterns
classify_risk Classify a tool/function by risk level (CRITICAL/HIGH/MEDIUM/LOW)

Remediation

Tool What it does
add_trust_layer Generate working code to add AIR trust layer to your agent
suggest_fix Get the specific fix for a failing article

Documentation

Tool What it does
explain_article Technical explanation of what each article requires
generate_compliance_report Full markdown compliance report

Example Usage in Claude Desktop

"Scan this LangChain agent for EU AI Act compliance"

"Check this text for prompt injection: ignore all previous instructions"

"Add a trust layer to my CrewAI code"

"Explain what Article 12 requires"

"Generate a compliance report for my project at /path/to/project"

Articles Checked

Article Requirement AIR Component
9 Risk Management ConsentGate
10 Data Governance DataVault
11 Technical Documentation AuditLedger
12 Record-Keeping (tamper-evident) AuditLedger (HMAC-SHA256)
14 Human Oversight ConsentGate
15 Robustness & Cybersecurity InjectionDetector

Optional: Local AI Model

For deeper analysis, install the fine-tuned compliance model:

ollama run air-compliance-v2

The analyze_with_model tool will automatically use it. Falls back to rule-based scanning if Ollama isn't running.

Trust Layer Packages

Fix compliance gaps with drop-in trust layers:

pip install air-langchain-trust    # LangChain / LangGraph
pip install air-crewai-trust       # CrewAI
pip install air-autogen-trust      # AutoGen / AG2
pip install air-openai-trust       # OpenAI Agents SDK
pip install air-rag-trust          # RAG pipelines

Development

git clone https://github.com/airblackbox/air-blackbox-mcp
cd air-blackbox-mcp
pip install -e .
python3 -m air_blackbox_mcp

Links

License

Apache 2.0


Deadline: August 2, 2026. Fines up to €35M or 7% of global annual turnover.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

air_blackbox_mcp-0.1.1.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

air_blackbox_mcp-0.1.1-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file air_blackbox_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: air_blackbox_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for air_blackbox_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 76f47fdc8e0b966063153cdb5409f5b5f8d59679f0aa2809e7743d99255a7c09
MD5 a546a9a6c8bacf6f89b18643d6b35ec7
BLAKE2b-256 2ab4cae5c409027f8180a72ee4a91a1980d82025567ca3dada09304d525bce2d

See more details on using hashes here.

File details

Details for the file air_blackbox_mcp-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for air_blackbox_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b7448771fad10ba44d69575d5bef8b846a1772cea23e8a30aefb7b9e49b490c2
MD5 29ea0d456a945ede3825e387f210c57f
BLAKE2b-256 6f13914f14f7d3116a08cd5ce72bef7fd8c70e00a7ebb6608b096cdd91d2393c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page