DataHub Chaperone
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@DataHub ChaperoneIs adding the Verified tag to the customers table allowed?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
DataHub Chaperone
Agents are getting write access to the data catalog. Chaperone is the seatbelt.
Chaperone is a governance proxy that sits between an AI agent and the DataHub MCP Server. Every tool call the agent makes is checked against the catalog's own metadata — tags, glossary terms, tiers, ownership, and lineage — before it reaches DataHub. Then the outcome is written back into DataHub as first-class metadata, so the graph learns what its agents are doing.
┌─────────────┐ ┌──────────────────┐ ┌──────────────┐
│ AI agent │─────▶│ Chaperone │─────▶│ DataHub │
│ (any MCP │◀─────│ policy engine │◀─────│ MCP Server │
│ client) │ │ │ └──────────────┘
└─────────────┘ │ allow / redact / │ │
│ review / deny │ ▼
└──────────────────┘ ┌──────────────┐
│ │ DataHub │
└───────────────▶│ graph │
writeback └──────────────┘The problem
The DataHub MCP Server now ships mutation tools — add_tags, update_description, remove_owners, set_domains. That is the right direction: agents that only read are of limited use, and an agent that enriches the catalog is genuinely valuable.
But it changes the risk profile. An agent that mislabels one column is an inconvenience. An agent looping over 400 tables at machine speed is an incident, and the catalog is precisely where the organization's governance decisions live. Today the usual mitigation is a paragraph of prompt text — "be careful with PII" — which is not a control. It is a suggestion, and it degrades as context fills up.
Meanwhile, the information needed to make these calls correctly is already in DataHub: which columns are PII, which tables are Tier 1, who owns what, and what breaks downstream. Chaperone's premise is that governance should be read out of the catalog and enforced, not restated in a prompt and hoped for.
Related MCP server: guardrails-mcp-server
What Chaperone does
1. It enforces catalog metadata as policy. Rules are YAML, evaluated against live catalog facts. A data platform team governs their agents through a reviewed pull request rather than by editing prompts.
2. It gives agents four outcomes, not two. allow and deny are blunt. Chaperone adds:
redact— the agent gets the schema and lineage it needs, with sensitive values stripped. It keeps working; the data does not leak.review— the write is not discarded, it is converted into a DataHub proposal for a human owner. The agent's work is preserved; a person decides.
3. It explains refusals with evidence. A blocked agent is told why, citing the catalog: denied: dim_customers is Tier1 and feeds 3 dashboards + 1 ML model. Agents can act on that. They cannot act on "permission denied."
4. It writes what happened back into DataHub. This is the part that makes the catalog better instead of just safer:
The agent is registered as an
aiAgententity (new inacryl-datahub1.7.0) with its skills, framework, and owners.Assets the agent touched are attached as lineage, so the graph answers a question it currently cannot: which agents are operating on this table?
Blocked mutations become proposals; accepted ones become real metadata.
The next agent — and the next engineer — inherits all of it.
Quickstart (no Docker, no DataHub instance, ~1 minute)
Chaperone ships with an offline slice of a realistic e-commerce catalog, so you can evaluate it with nothing installed but Python.
git clone https://github.com/praisejxy/datahub-chaperone
cd datahub-chaperone
pip install -e .Watch it stop an agent from mutating a PII table:
chaperone check add_tags \
--urn "urn:li:dataset:(urn:li:dataPlatform:postgres,ecommerce.public.customers,PROD)" \
--tag VerifiedReplay a full agent session and see every decision:
chaperone demoEvery session ends by contributing back to the graph. The aiAgent entity and
its lineage are built even with no DataHub instance configured, so you can read
exactly what would be written:
chaperone demo --write-examples examples # writes examples/agent-entity.jsonWith DATAHUB_GMS_URL set, the same payload is emitted for real.
Connecting a real DataHub
Chaperone uses DataHub's own environment conventions. If the DataHub CLI works on your machine, Chaperone will too:
export DATAHUB_GMS_URL="http://localhost:8080" # or https://<tenant>.acryl.io
export DATAHUB_GMS_TOKEN="<your personal access token>"
pip install 'datahub-chaperone[datahub]'
chaperone doctor # verifies connectivity and prints which graph is in useThe policy engine is identical in both modes — only the context provider changes. Offline is for evaluation; live is the real deployment.
Contributing back to DataHub
Building Chaperone surfaced a reproducible packaging bug in the published acryl-datahub 1.7.0 wheel. datahub datapack --help crashes with a FileNotFoundError whenever stdout is not a TTY — that is, whenever it is called by a script, a CI job, or an agent:
datahub datapack --help | cat # FileNotFoundError
datahub datapack --help # works, which is why it went unnoticedThe command deliberately appends extra guidance for non-human callers, but the Markdown file it reads is missing from the wheel: setup.py declares package_data for datahub.cli.resources and never for datahub.cli.datapack.resources. The fix is one line. Full analysis, root cause, and reproduction: docs/upstream-contributions.md.
Using it with an MCP client
Point your MCP client at Chaperone instead of at the DataHub MCP Server. Chaperone forwards approved calls upstream. Any client that speaks MCP over stdio works; the config below is the usual shape:
{
"mcpServers": {
"datahub-chaperone": {
"command": "chaperone",
"args": ["serve"],
"env": {
"DATAHUB_GMS_URL": "http://localhost:8080",
"DATAHUB_GMS_TOKEN": "<your personal access token>"
}
}
}
}Your agent sees the same DataHub tools it always did. The difference is that the dangerous ones are now governed.
Repository layout
Path | What it is |
| The policy engine — rule evaluation, strictest-wins resolution |
| Core vocabulary: |
| Context providers — offline fixture graph and live GMS |
| Shipped policy packs (YAML) |
| Sample outputs: decision log, generated proposals, the |
| Bugs found in DataHub and the fixes submitted |
License
Apache 2.0 — see LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Security & DLP proxy for MCP: tool-poisoning scans, PII redaction on tool args/results. Beta.
- gatewayOAuthai.sealgate
MCP gateway with runtime security policy, tool-call-level control, and audit of agent actions.
Zero-secret MCP gateway for AI agents: risk-scored, audited calls with human-in-the-loop approval.
Guarded MCP server for agent-readable business truth, provenance, readiness, and discovery.
Related MCP Servers
AlicenseNot gradedqualityAmaintenanceOpen-source MCP proxy that enforces security policies, content scanning, and audit logging between AI agents and tool servers25AGPL 3.0- AlicenseNot gradedqualityBmaintenanceMCP server for AI agent security guardrails. Provides input validation, prompt injection detection, PII redaction, output filtering, policy enforcement, rate limiting, and comprehensive audit logging.42 npm1MIT
- AlicenseAqualityAmaintenanceAn MCP proxy that enforces policy on every tool call, blocking or flagging actions before they reach downstream MCP servers.118 npmMIT
- AlicenseNot gradedqualityAmaintenanceProvides a governance proxy layer for MCP servers, enforcing per-tool allowlists, human approval for write operations, quotas, secret redaction, and a hash-chained audit log of all calls.MIT