DataHub Agent Context
MCP tools for AI agents to search and query your DataHub metadata catalog — works with Claude, Cursor, Copilot, and any MCP-compatible AI assistant.
What you can do
- Search datasets, dashboards, pipelines, and other data assets by name or description
- Retrieve entity details — schema, lineage, ownership, tags, glossary terms, and more
- Trace lineage upstream and downstream across your data assets
- Mutate metadata — update descriptions, tags, owners, domains, and glossary terms
- Build LangChain or Google ADK agents with pre-built tool bindings
- Set up Snowflake AI agents with one CLI command
Installation
pip install datahub-agent-context
# With LangChain support
pip install "datahub-agent-context[langchain]"
Quickstart
LangChain agent
from datahub.sdk.main_client import DataHubClient
from datahub_agent_context.langchain_tools import build_langchain_tools
client = DataHubClient.from_env()
# Read-only tools (search, lineage, entity details)
tools = build_langchain_tools(client, include_mutations=False)
# Include write tools (tags, descriptions, owners, etc.)
tools = build_langchain_tools(client, include_mutations=True)
# DataHub Cloud: add Ask DataHub AI assistant
from datahub_agent_context.langchain_tools import build_langchain_cloud_tools
tools += build_langchain_cloud_tools(client, ask_datahub=True)
Snowflake AI agent setup
datahub agent create snowflake \
--datahub-url https://your-datahub-instance \
--datahub-token your-token
Available tools
Search — search(), search_documents(), grep_documents()
Entities — get_entities(), list_schema_fields()
Lineage — get_lineage(), get_lineage_paths_between()
Queries — get_dataset_queries()
Incidents — list_incidents()
Mutations — add_tags(), remove_tags(), update_description(), set_domains(), add_owners(), add_glossary_terms(), add_structured_properties(), save_document(), raise_incident(), resolve_incident()
Cloud-only — ask_datahub_chat() (DataHub Cloud AI assistant)
Links
Metadata
Release files for datahub-agent-context 1.7.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| datahub_agent_context-1.7.0.9.tar.gz | 110.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| datahub_agent_context-1.7.0.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 261.9 kB
Release files / datahub_agent_context-1.7.0.9.tar.gz
| Download URL | datahub_agent_context-1.7.0.9.tar.gz |
|---|---|
| Size | 110.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5e3bf0da2785a2508c57fe38e5aca2a3a623361fd25c155b8f2ec22192db58d5
|
|
BLAKE2b-256 checksum How to use checksums |
261378b3187a13c97eb8c9c15678cdda86c9bdbdd87478c354bc001b3157a3b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.21
|
Release files / datahub_agent_context-1.7.0.9-py3-none-any.whl
| Download URL | datahub_agent_context-1.7.0.9-py3-none-any.whl |
|---|---|
| Size | 151.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ac6556083facb0eb835ea7cdfa3b27c46e44cae4cb4789f7125ac30e34e3befe
|
|
BLAKE2b-256 checksum How to use checksums |
13cdcf27a86580f2ebe1767b4d66875c9174f079cd7dbbe56f8e902bdf7f994e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.21
|