This release is a pre-release and may not be stable for production use.
OPP Engine
Documentation · Quick start · Connect agents · Detectors · Specification
openprivacyprotocol.com | OPP Spec · OPP Engine · OPP Model · OPP for Python · OPP for JavaScript
OPP Engine is the reference toolkit of the Open Privacy Protocol. It connects to an organization's databases, files, documents and web pages, writes a draft privacy model describing what in them is private or confidential, and serves that model to agents so they can check content before they share it.
databases, files, opp-engine generate acme.opp.yaml opp-engine serve agents
documents, web pages ───────────────────────► (review, certify) ──────────────────────► (MCP / HTTP)
Everything runs on your own infrastructure. No data value is ever written into the model, the review report or the logs.
Features
| Connect anything | Any SQLAlchemy database URL (PostgreSQL, MySQL, SQL Server, Oracle, SQLite, Snowflake, BigQuery and more with their drivers); MongoDB and MongoDB Atlas (mongodb://, mongodb+srv://, with the [mongodb] extra), nested fields included; CSV, TSV, JSON, JSON Lines and Parquet files; text, Markdown, HTML, PDF and Word documents; folders and web pages |
| Generate | Every column is classified against the OPP baseline catalog from its name and sampled values; text columns and documents get topic classes (health data, HR matters, internal financials); ID columns get their format (CE-[0-9]{6}). Each entry carries its evidence and starts proposed |
| Better with OPP Model | With the open-weight OPP Model (--opp-model), names, addresses and confidential topics are found in free text and headerless columns, and the organization's own concepts match by meaning |
| Industry presets | --industry 622110 (a NAICS code) or --industry healthcare lists the classes that industry usually holds and were not found |
| Hygiene | Cues, terms and identifier patterns that would match ordinary text are removed and reported |
| Human review | A Markdown report lists what to check; certified entries survive the next run (--merge) |
| Serve | The query engine answers check (verdict, findings, safe content), explain and list_classes over MCP or a REST API |
Quick start
pip install "open-privacy-protocol-engine[server,mcp,documents]"
python tests/sample_data.py demo # a synthetic CRM database, exports and documents
opp-engine generate sqlite:///demo/crm.db demo/exports demo/docs \
--name acme --org "Acme Coaching (fictional)" -o acme.opp.yaml --report review.md
opp-engine check acme.opp.yaml --dest external_ai "Email jane@example.com about CE-123456"
opp-engine serve acme.opp.yaml --mcp # for any MCP client
opp-engine serve acme.opp.yaml --http 127.0.0.1:8765 # REST API
Use a read-only database account. Connection strings are never written into the model; only the host and database name are kept.
Connect an agent over MCP
{
"mcpServers": {
"opp": {
"command": "opp-engine",
"args": ["serve", "/path/to/acme.opp.yaml", "--mcp"]
}
}
}
Then tell the agent: "Before sending data outside the system it came from, call check. Send
safe_content instead of the original. If the verdict is block or review, do not send."
See docs/agents.md for the REST API and tool reference.
Docker
docker build -t opp-engine .
docker run --rm -p 8765:8765 -v "$PWD/acme.opp.yaml:/model.opp.yaml" -e OPP_TOKEN=change-me opp-engine
Documentation
- Connecting data sources: SQL and NoSQL databases, files, folders and web pages, with install and URL examples
- Connecting agents: MCP tools, REST endpoints, system-prompt guidance
- Detectors and OPP Model: built-in rules, custom detectors, the open-weight model
- OPP specification: the document kinds this engine reads and writes
- Website
Status
0.1.0.dev0, tracking OPP 0.1.0.dev0. Interfaces may change before 0.1.0.
One project, five repositories
Open Privacy Protocol is developed as a set of repositories that version together. This repository implements the standard: it reads and writes the documents defined in the spec, and uses the model as an optional detector.
| Part | Repository | What it is | Docs |
|---|---|---|---|
| OPP Spec | open-privacy-protocol |
The standard: specification, JSON Schemas, baseline catalog, industry presets, reference validator | Docs |
| OPP Engine | open-privacy-protocol-engine (this repository) |
Generates a privacy model from your sources and serves it to agents over MCP and HTTP | Docs |
| OPP Model | open-privacy-protocol-model |
Open-weight model that finds private values and confidential topics in text, on CPU | Docs |
| OPP for Python | opp-python |
pip install open-privacy-protocol: validate models, resolve rules, call the engine |
Docs |
| OPP for JavaScript | opp-js |
npm install open-privacy-protocol: the same API for Node.js, Bun and Deno |
Docs |
your sources ──► OPP Engine ──► acme.opp.yaml ──► OPP Engine ──► any agent
generate (OPP Spec) serve MCP / HTTP
▲ ▲
└────────── OPP Model ──────────┘
Website and documentation: openprivacyprotocol.com
Contributing
Contributions are welcome: connectors, detectors, tests and documentation. Read CONTRIBUTING.md, report security problems as described in SECURITY.md, and follow the Code of Conduct.
License
Licensed under the Apache License, Version 2.0. Part of the Open Privacy Protocol project.
Metadata
Release files for open-privacy-protocol-engine 0.1.0a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| open_privacy_protocol_engine-0.1.0a1.tar.gz | 1.0 MB | With provenance | Details for open_privacy_protocol_engine-0.1.0a1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| open_privacy_protocol_engine-0.1.0a1-py3-none-any.whl | Python 3 | none | any | Details for open_privacy_protocol_engine-0.1.0a1-py3-none-any.whl |
Total release size: 1.1 MB
Release files / open_privacy_protocol_engine-0.1.0a1.tar.gz
| Download URL | open_privacy_protocol_engine-0.1.0a1.tar.gz |
|---|---|
| Size | 1.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e0b3c602a52b554cf08261326239cff8c790f6b22a6c572e517cb082b796c46a
|
|
BLAKE2b-256 checksum How to use checksums |
7347951ab1c2756db32afc589e2699eeda1a9ec8ba0a2dcae8e2c3d332c083be
|
| 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 30, 2026.
Transparency logRelease files / open_privacy_protocol_engine-0.1.0a1-py3-none-any.whl
| Download URL | open_privacy_protocol_engine-0.1.0a1-py3-none-any.whl |
|---|---|
| Size | 38.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4688c35b34ccc7f92d939893a7b72c8eee59a46e5fcb2300e17a39caeefbbd01
|
|
BLAKE2b-256 checksum How to use checksums |
6b05feb26096b17504c44484e53d7d44d7d66d0b4e8841db3163ca4e3fce8d40
|
| 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 30, 2026.
Transparency logSecurity for open-privacy-protocol-engine 0.1.0a1
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.
Attestation for open_privacy_protocol_engine-0.1.0a1.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 30, 2026.
Transparency logA 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.