DOCS/BUILD
SELF-HOSTED9 MIN READUPDATED 03 SEP 2026

BUILD / 03

Give agents privacy tools—not Vault access.

Run the tested stdio MCP server and expose exactly five agent-safe tools.
The SHREDDAR MCP adapter sits in front of the self-hosted gateway. It removes session credentials from tool results and intentionally offers no reconstruction tool, keeping raw-value recovery in the trusted application.
A central carbon privacy hub retains coral data fragments while separate lime protected cards travel through six connector modules to independent workflows
SHREDDAR / DOCUMENTATIONONE BOUNDARY / FIVE SAFE TOOLS / MANY AGENT HOSTS
STDIO SERVER

Install beside the gateway

TERMINALbash
cd /ABSOLUTE/PATH/TO/shreddar
python3 -m venv backend/.venv
backend/.venv/bin/pip install -e 'backend[dev]'

export SHREDDAR_API_URL=http://127.0.0.1:8787
export SHREDDAR_API_KEY='replace-with-local-gateway-key'

backend/.venv/bin/shreddar-mcp
ALLOWLIST

Exactly five tools

TOOLMUTATIONRESULT
analyzeRead-onlyClassification, risk, route, entities, warnings
protectCreates local sessionProtected text, receipt, usage meter; no Vault credentials
shardCreates local sessionProtected compartments, receipt, usage meter; no Vault credentials
get_receiptRead-onlyOne metadata-only receipt
get_usageRead-onlyAggregate token meters and pricing state
HOST CONFIGURATION

Generic MCP definition

Inject SHREDDAR_API_KEY through the host's protected environment or secret manager. Host schemas differ, so use the runtime-specific guide before saving configuration.

JSONjson
{
  "mcpServers": {
    "shreddar": {
      "type": "stdio",
      "command": "/ABSOLUTE/PATH/TO/shreddar/backend/.venv/bin/shreddar-mcp",
      "args": [],
      "env": {
        "SHREDDAR_API_URL": "http://127.0.0.1:8787"
      }
    }
  }
}
FAIL-CLOSED WORKFLOW

The tool call is only half the integration

  • Call analyze when route choice or sensitivity is uncertain.
  • Give downstream tools only protected_text or the minimum necessary protected shards.
  • Stop on local_only, gateway failure, or any SHREDDAR error.
  • Never infer removed values or ask another tool to recover them.
  • Report the receipt id, shortened integrity hash, policy, route, and verified pricing state.
SHREDDAR DOCSYOUR DOC. YOUR DATA. YOUR CONTROL.

Public alpha documentation. Capability labels describe implementation state, not certification or guaranteed suitability.