# drift — mandate enforcement for AI agents

> drift — mandate enforcement for AI agents is a freemium MCP server for security. Blocks AI agent payments that fall outside the signed mandate it was given. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** API, self-hosted
- **Website:** https://drift.rta.lat
- **Repository:** https://github.com/mrpkk/drift
- **MCP Registry name:** io.github.mrpkk/drift
- **Categories:** security, finance and payments
- **Listing updated:** 2026-11-15

## About

A mandate says who an agent may pay, how much, in which currency and until when. The README argues that the AP2 protocol verifies this once at signing, after which nothing holds the agent inside its authority. drift runs afterwards, on each action, and with enforce=true it stops the flow itself rather than returning a verdict the caller might ignore.

Six rules run in a fixed order, so a refusal names the most important reason: amount, payee, audience, currency, window and intent. The default is deny. The README is plain about limits: it does not verify mandate signatures, does not execute anything, keeps no state (a session is just an argument) and cannot tell whether an agent's stated intent is true, since intent is untrusted input.

It is written in the Python standard library with no HTTP framework, runs with python3 -m drift.http_server, and is licensed Apache-2.0. The hosted endpoint takes payment per call in USDC over x402 with no account or card.

## Features

- **Six ordered rules:** Amount, payee, audience, currency, window and intent are checked in a fixed order.
- **Deny by default:** Anything the mandate does not permit is refused, and the refusal names the first failed rule.
- **Enforce mode:** With enforce=true the server blocks the call instead of only returning a verdict.
- **Session checks:** drift_session checks a sequence of actions and returns a report with a chain fingerprint.
- **Stateless design:** No sessions are stored on the server, so replicas cannot diverge.
- **Pay per call:** 100 free checks a day, then 0.005 USDC per call over x402 on Base.

## Good for

- Stop an agent paying more than its mandate allows
- Catch a payment redirected to a different audience or payee
- Reject actions outside a mandate's validity window
- Audit a series of agent actions against one mandate
- Layer runtime enforcement on top of AP2 signature verification

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http drift https://drift.rta.lat/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://drift.rta.lat/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "drift": {
      "url": "https://drift.rta.lat/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "drift": {
      "type": "http",
      "url": "https://drift.rta.lat/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "drift": {
      "serverUrl": "https://drift.rta.lat/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "drift": {
      "type": "http",
      "url": "https://drift.rta.lat/mcp"
    }
  }
}
```

## Tools

- `drift_check`: Checks one action against a mandate.
- `drift_session`: Checks a sequence of actions and returns a report with a chain fingerprint.
- `drift_explain`: Shows the rules in the order they apply.

## FAQ

### What does it cost?

100 checks a day are free, then 0.005 USDC per call on Base mainnet over x402. A 99 USDC payment removes the daily cap for 30 days.

### Does it verify mandate signatures?

No. The README says that is AP2's job and drift runs after signature verification.

### Does it execute payments?

No. It decides and the caller acts.

### Can an agent lie about its intent?

Yes, intent comes from the agent and is untrusted. drift bounds the damage but does not certify intent.

### Is drift — mandate enforcement for AI agents free?

drift — mandate enforcement for AI agents has a free plan, with paid plans for more usage or features.

### How do I add drift — mandate enforcement for AI agents to Claude Code?

Run this command in your terminal: claude mcp add --transport http drift https://drift.rta.lat/mcp

### What are the best alternatives to drift — mandate enforcement for AI agents?

The closest alternatives to drift — mandate enforcement for AI agents are REA, Solana MCP by Vybe, Tapetide - Indian Stock Market MCP, Agent Roast and Midplane.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Solana MCP by Vybe](https://ai-powered.com/mcp/solana-mcp-by-vybe): Solana MCP by Vybe is an MCP server for finance and payments.
- [Tapetide - Indian Stock Market MCP](https://ai-powered.com/mcp/tapetide-indian-stock-market-mcp): Tapetide - Indian Stock Market MCP is a freemium MCP server for finance and payments.
- [Agent Roast](https://ai-powered.com/mcp/agent-roast): Agent Roast is an open-source MCP server for developer tools.
- [Midplane](https://ai-powered.com/mcp/midplane): Midplane is an open-source MCP server for databases.
- [Budget Tracker](https://ai-powered.com/mcp/budget-tracker-2): Budget Tracker is a freemium MCP server for finance and payments.
- [Leash](https://ai-powered.com/mcp/leash): Leash is a free MCP server for security.
- [Tinplate Edge AI Safety, Security & EU Compliance](https://ai-powered.com/mcp/tinplate-edge-ai-safety-security-and-eu-compliance): Tinplate Edge AI Safety, Security & EU Compliance is a freemium MCP server for security.

---
Source: https://ai-powered.com/mcp/drift-mandate-enforcement-for-ai-agents
