Sanction
Approval and budget checks that pause an AI agent before it spends, deploys or sends
- Pricing
- Freemium
- Platforms
- API, CLI, Web
- Runs
- Locally or Remotely
- Version
- 0.10.0
- Listing updated
- 1 day ago
About Sanction
Sanction is a freemium MCP server for security. It can run locally on your machine or as a hosted remote server.
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.
Install
Run in a terminal
claude mcp add --transport http sanction https://getsanction.com/mcpAdd to Settings → Connectors → Add custom connector
https://getsanction.com/mcpAdd to ~/.cursor/mcp.json
{
"mcpServers": {
"sanction": {
"url": "https://getsanction.com/mcp"
}
}
}Add to .vscode/mcp.json
{
"servers": {
"sanction": {
"type": "http",
"url": "https://getsanction.com/mcp"
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"sanction": {
"serverUrl": "https://getsanction.com/mcp"
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"sanction": {
"type": "http",
"url": "https://getsanction.com/mcp"
}
}
}Configuration
SANCTION_API_KEYAgent API key (pxy_...). Create one at https://getsanction.com or via POST /api/v1/wallets then POST /api/v1/agents.RequiredSANCTION_WALLET_IDOptional override for sanction_wallet_status; by default the wallet derives from the agent key.SANCTION_API_URLSanction API base URL.
Tools this server provides (2)
Taken from the project documentation; the running server may differ.
- 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.
What it does
- 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
Pricing
Freemium
Free for individuals; organization plans on the site
Prices change. Check getsanction.com before you buy.
Sanction 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 to Sanction

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 464K GitHub stars
- Developer tools

Codebase Memory
MCP serverLocal MCP server that builds a code knowledge graph for AI coding agents
Runs locally- Open source
- 48.7K GitHub stars
- Knowledge and memory

GitHub
MCP serverOfficial MCP server connecting AI assistants to GitHub repos, issues and workflows
Not checked yet- Remote
- Open source
- 34.5K GitHub stars
- Developer tools

Serena MCP: the IDE for your agent
MCP serverMCP toolkit giving coding agents symbol-level code retrieval and editing
Runs locally- Open source
- 31.5K GitHub stars
- Developer tools

XERJ
MCP serverLocal search engine for AI agents with cited answers over your code and docs
Runs locally- Open source
- 19.2K GitHub stars
- Knowledge and memory

Ouroboros
MCP serverSpec-first layer that pins requirements and verifies results of AI coding agent work
Runs locally- Open source
- 6.4K GitHub stars
- Developer tools