DataHub Chaperone
A governance proxy for the DataHub MCP Server that enforces catalog metadata as policy, providing allow, redact, review, and deny outcomes for agent tool calls, and writing agent actions back into DataHub.
README
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.
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 Verified
Replay a full agent session and see every decision:
chaperone demo
Every 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.json
With 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 use
The 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 unnoticed
The 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 |
|---|---|
src/chaperone/policy.py |
The policy engine — rule evaluation, strictest-wins resolution |
src/chaperone/models.py |
Core vocabulary: AssetContext, ToolCall, Decision |
src/chaperone/graph/ |
Context providers — offline fixture graph and live GMS |
src/chaperone/policies/ |
Shipped policy packs (YAML) |
examples/ |
Sample outputs: decision log, generated proposals, the aiAgent entity payload |
docs/upstream-contributions.md |
Bugs found in DataHub and the fixes submitted |
License
Apache 2.0 — see LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。