# Sanction

> Sanction is a freemium MCP server for security. Approval and budget checks that pause an AI agent before it spends, deploys or sends. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** API, CLI, Web, Slack
- **Website:** https://getsanction.com
- **Repository:** https://github.com/ericlovold/sanction
- **MCP Registry name:** io.github.ericlovold/sanction
- **Categories:** security, developer tools
- **Listing updated:** 2026-11-16

## About

Sanction acts as an authorization layer that an agent consults before risky steps. The agent submits the exact proposed action, a human approves or rejects it in an approval inbox, by email or in Slack, and approval mints an expiring, single-use grant that the agent must redeem before proceeding. A changed request, expired grant or rejection means stop.

Beyond one-off approvals, the README describes a policy engine for spend limits with auto-approve floors, human-escalation bands, per-transaction caps and daily and monthly budgets; allow, block or escalate lists for tools; an encrypted credential vault with short-lived mandates; and governance of provisioning and new capabilities. Denials return stable codes such as DAILY_BUDGET_EXCEEDED so agents can replan.

The registry notes this is a cooperative MCP: the host must ask and honor the decision, and connecting does not intercept other tools. Individuals use it free without a card.

## Features

- **One-use grants:** Approval gives an expiring grant redeemed once.
- **Spend controls:** Floors, escalation bands, hard caps and daily or monthly budgets.
- **Tool rules:** Allow, block or escalate lists for MCP tools and actions.
- **Credential vault:** Encrypted storage with scoped 15-minute mandates.
- **Stable denial codes:** Machine-readable reasons let agents branch.
- **Slack and inbox review:** Decisions arrive in an inbox, email or Slack.

## Good for

- Require sign-off before an agent deploys to production
- Cap what an agent can spend per day or month
- Approve a message before an agent sends it
- Give a contractor's agent a scoped, expiring seat

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http sanction https://getsanction.com/mcp
```

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

```sh
https://getsanction.com/mcp
```

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

```json
{
  "mcpServers": {
    "sanction": {
      "url": "https://getsanction.com/mcp"
    }
  }
}
```

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

```json
{
  "servers": {
    "sanction": {
      "type": "http",
      "url": "https://getsanction.com/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "sanction": {
      "serverUrl": "https://getsanction.com/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "sanction": {
      "type": "http",
      "url": "https://getsanction.com/mcp"
    }
  }
}
```

## Tools

- `sanction_authorize_tool`: Asks Sanction to approve or escalate a proposed tool action, optionally requiring human approval.
- `sanction_wallet_status`: Reports the agent's wallet status.

## FAQ

### Is it free?

Free for individuals, including production and client work, with no card.

### Does it block my other tools automatically?

No. The host must ask and honor the decision; connection alone does not enforce other tools.

### Does a decision prove the action ran?

No, a decision record shows what was authorized, not that an action ran.

### What keys are needed?

The npm server needs a SANCTION_API_KEY.

### Is Sanction free?

Sanction has a free plan, with paid plans for more usage or features.

### How do I add Sanction to Claude Code?

Run this command in your terminal: claude mcp add --transport http sanction https://getsanction.com/mcp

### What are the best alternatives to Sanction?

The closest alternatives to Sanction are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/sanction
