Sanction MCP Server
by ericlovoldio.github.ericlovold/sanctionv0.10.0
Approval and budget checks before agent spending or tool use. Cooperative MCP; host must ask.
context tax
queued
security
queued
cold start
queued
freshness
Active1d ago
Install Sanction MCP server
Install in Claude Code
claude mcp add sanction -e SANCTION_API_KEY='<sanction-api-key>' -- npx -y sanction-mcpInstall in Cursor
{
"mcpServers": {
"sanction": {
"command": "npx",
"args": [
"-y",
"sanction-mcp"
],
"env": {
"SANCTION_API_KEY": "<sanction-api-key>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"sanction": {
"command": "npx",
"args": [
"-y",
"sanction-mcp"
],
"env": {
"SANCTION_API_KEY": "<sanction-api-key>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"sanction": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"sanction-mcp"
],
"env": {
"SANCTION_API_KEY": "<sanction-api-key>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"sanction": {
"command": "npx",
"args": [
"-y",
"sanction-mcp"
],
"env": {
"SANCTION_API_KEY": "<sanction-api-key>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| SANCTION_API_KEY | yes | yes | Agent API key (pxy_...). Create one at https://getsanction.com or via POST /api/v1/wallets then POST /api/v1/agents. |
| SANCTION_WALLET_ID | — | — | Optional override for sanction_wallet_status; by default the wallet derives from the agent key. |
| SANCTION_API_URL | — | — | Sanction API base URL. |
Remote endpoints
- streamable-http
https://getsanction.com/mcp
Freshness
Active — last maintenance signal 1d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-08 · 1d ago · GitHub
Latest release
2026-08-31 · 39d ago · GitHub · v0.9.0
Package published
no data · npm/PyPI
Registry entry updated
2026-10-03 · 7d ago · official registry · v0.10.0
FAQ
›How do I install the Sanction MCP server in Claude Code?
Run: claude mcp add sanction -e SANCTION_API_KEY='<sanction-api-key>' -- npx -y sanction-mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Sanction require an API key?
Yes. It expects SANCTION_API_KEY, of which 1 is a secret.
›Can I use Sanction as a remote (hosted) MCP server?
Yes — it offers both a hosted endpoint and a local stdio package.
›Is Sanction in the official MCP registry?
Yes, as io.github.ericlovold/sanction.