Skip to main content

Ocultar PII Refinery — Goose Extension

Zero-egress PII protection for Goose AI workflows. Runs entirely in your infrastructure — no data leaves your environment.

Prerequisites

  • Ocultar Refinery HTTP server running locally on port 4141 (see Quick Start below; note that docker compose up in the repo root starts apps/proxy on port 8081, not the Refinery on port 4141)
  • Python 3.10+

Quick Start — Docker

export OCU_MASTER_KEY=$(openssl rand -hex 32)
export OCU_SALT=$(openssl rand -hex 16)

docker run --rm -p 4141:4141 \
  -e OCU_MASTER_KEY -e OCU_SALT \
  -e SLM_ADAPTER=none \
  ghcr.io/ocultar-dev/ocultar:latest

SLM_ADAPTER=none runs the deterministic detection tiers only. The Goose extension has no reveal tool, so no auditor token is needed.

Installation

pip install ocultar-goose-mcp

Configuration in Goose

  1. Open Goose settings
  2. Add Extension → Command-line Extension
  3. Name: ocultar-pii
  4. Command: ocultar-goose-mcp
  5. Environment:
    OCULTAR_URL=http://localhost:4141
    

Usage

Ask Goose: Refine this text before processing: [text with PII]

Goose will call ocultar-pii which redacts PII locally before any further processing. The tool returns the cleaned text with each PII value replaced by a deterministic token (e.g. [EMAIL_9c8f7a1b2d3e4f50]).

Available tools

Tool Description
refine_text Redacts PII from text before AI processing
sombra_query Asks a redacted question via the Ocultar Sombra gateway — redacts PII, routes to the chosen LLM, rehydrates the response. Requires OCULTAR_SOMBRA_TOKEN and Sombra running separately (go run ./apps/sombra).

Note: reveal_tokens (de-tokenization) and the Entity Registry tools (register_entity, list_entities, seed_entities) are intentionally omitted from this extension. They are auditor-only operations and not suitable for automated agent workflows. Use the Claude or Mistral MCP extension if you need them.

Why local-only?

The zero-egress design means your sensitive data never leaves your infrastructure. The MCP server runs on stdio — no network server, no remote calls, no supply chain attack surface. If Ocultar is unreachable, the extension returns an error and withholds the raw text — it never forwards unmasked data as a fallback.

License

AGPLv3 — see LICENSE. Commercial licensing available for organizations that cannot comply with AGPLv3's source-disclosure requirements — see COMMERCIAL_LICENSE.md.

Metadata

Release files for ocultar-goose-mcp 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ocultar-goose-mcp 0.3.1
File Size Uploaded Provenance Actions
ocultar_goose_mcp-0.3.1.tar.gz 5.8 kB With provenance Details for ocultar_goose_mcp-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ocultar-goose-mcp 0.3.1
File Interpreter ABI Platform Actions
ocultar_goose_mcp-0.3.1-py3-none-any.whl Python 3 none any Details for ocultar_goose_mcp-0.3.1-py3-none-any.whl

Total release size: 11.2 kB

Release files / ocultar_goose_mcp-0.3.1.tar.gz

Download URL ocultar_goose_mcp-0.3.1.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a0dbbc5e3041a5a5605d238ea731f702f7b62e0a8114f60de2b4a37844757804
BLAKE2b-256 checksum
How to use checksums
e09b29a4ca374453c8f582afa56dc0c7d07a4374beb5e3b8030789452667c71f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Release files / ocultar_goose_mcp-0.3.1-py3-none-any.whl

Download URL ocultar_goose_mcp-0.3.1-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e3b6232bedce5ab94f541014f7143cd19d49f05849a727e56a017748f3bcc91f
BLAKE2b-256 checksum
How to use checksums
d766f493efcb45240c0f0c45abcbbc965f7cf396593d15649e231c48587048c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Security for ocultar-goose-mcp 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ocultar_goose_mcp-0.3.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page