Agent Module

Deterministic compliance and vertical knowledge bases for autonomous agents. Free 24hr trial.

1MITother

Install

Config snippet generator goes here (5 client tabs)

README

# Agent Module — MCP Server

[![MCP](https://img.shields.io/badge/MCP-2025--06--18-blue)](https://modelcontextprotocol.io) [![API Status](https://img.shields.io/badge/API-Live-brightgreen)](https://api.agent-module.dev/api/status) [![Transport](https://img.shields.io/badge/Transport-Streamable%20HTTP-purple)]() [![mcp MCP server](https://glama.ai/mcp/servers/AgentModule/mcp/badges/score.svg)](https://glama.ai/mcp/servers/AgentModule/mcp)

**EU AI Act compliance logic for autonomous agents — retrievable during runtime.**

If you're building with AI, you need to know the EU AI Act. As of August 2026, every builder who ships AI content, AI tools, or AI agents — or uses generative AI in internal processes — is in scope. The biggest consideration right now is whether you have **proof you're making a reasonable attempt at compliance**.

Agent Module is a live, structured compliance resource. With it, your agents can:

- **Retrieve** applicable ethics nodes as foundational building blocks for your internal compliance systems
- **Benchmark** agent actions against validated EU AI Act protocol during runtime
- **Collect** proof of compliance effort via semantic telemetry — a chain of provenance for future audits on chain-of-thought during usage
- **Ground** agent teams against EU AI Act articles without building blind
- **Avoid** fines and loss of global market deployment capabilities

**Endpoint:** `https://api.agent-module.dev/mcp`
**Transport:** Streamable HTTP (JSON-RPC 2.0)
**Protocol version:** `2025-06-18`

---

## What You Get

A growing library of ethics modules, each mapped to specific EU AI Act articles. Every module contains four content layers:

| Layer | What It Contains |
|---|---|
| **Logic** | Deterministic JSON rulesets — binary pass/fail gates traced to statutory citations. No probabilistic guessing. |
| **Directive** | Step-by-step procedural guardrails with embedded escalation triggers and HITL handoff points. |
| **Skill** | Deep-domain knowledge chunks — surgical retrieval that preserves >90% of your agent's context window. |
| **Action** | Pre-validated executable templates. Zero additional inference required. |

Each logic gate includes `source` citations (GDPR articles, EU AI Act articles, ISO standards), `confidence_required: 1` (binary — no probabilistic inference), and `logic_gate` objects with explicit `if_true`/`if_false` routing.

This isn't enhanced documentation. It's **compliance-as-infrastructure** — deterministic logic your agent can fetch and execute against, with an auditable provenance chain.

---

## Try It Now

No signup. No config. Two commands to go from zero to live compliance logic:

**Step 1 — Get a free trial key (24 hours, 500 calls, all ethics modules):**

```bash
curl -s -X POST https://api.agent-module.dev/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "tools/call",
    "params": {
      "name": "get_trial_key",
      "arguments": { "agent_id": "your-agent-id" }
    },
    "id": 1
  }' | python3 -m json.tool
```

You'll get back a trial key with 24-hour access to all 4 content layers across all ethics modules:

```json
{
  "object": "trial_key",
  "status": "issued",
  "trial_key": "am_trial_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "duration": "24 hours",
  "call_cap": 500,
  "layers_unlocked": ["logic", "directive", "skill", "action"],
  "vertical": "ethics"
}
```

**Step 2 — Retrieve compliance logic using your trial key:**

```bash
curl -s -X POST https://api.agent-module.dev/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "tools/call",
    "params": {
      "name": "query_knowledge",
      "arguments": {
        "vertical": "ethics",
        "node": "node:ethics:eth001:logic",
        "token": "YOUR_TRIAL_KEY"
      }
    },
    "id": 2
  }' | python3 -m json.tool
```

What comes back is a full logic node — deterministic rules for data sovereignty with GDPR and EU AI Act citations, binary logic gates, and concrete examples:

```json
{
  "object": "traversal_response",
  "vertical": "ethics",
  "node_id": "node:ethics:eth001:logic",
  "layer": "logic",
  "content": {
    "node_id": "ETH_001_SOVEREIGNTY_logic",
    "eu_ai_act_articles": ["Art. 10", "Art. 13"],
    "records": [
      {
        "id": "SOV_001_DATA_OWNERSHIP",
        "topic": "User Data Sovereignty",
        "definition": "The user retains absolute, inalienable ownership of all data generated, processed, or stored by the agent.",
        "source": "GDPR Art. 17; EU AI Act Art. 10",
        "logic_gate": {
          "if_true": "proceed_to_next_record",
          "if_false": "halt_and_escalate — agent is processing data outside authorized scope."
        },
        "confidence_required": 1
      }
    ]
  }
}
```

---

## Quick Start

### Claude Desktop

Add to `~/Library/Application Support/Claude/claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "agent-module": {
      "type": "streamable-http",
      "u