Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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

Searchsearch(), search_documents(), grep_documents()

Entitiesget_entities(), list_schema_fields()

Lineageget_lineage(), get_lineage_paths_between()

Queriesget_dataset_queries()

Mutationsadd_tags(), remove_tags(), update_description(), set_domains(), add_owners(), add_glossary_terms(), add_structured_properties(), save_document()

Cloud-onlyask_datahub_chat() (DataHub Cloud AI assistant)

Links

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datahub_agent_context-1.7.0.2rc2.tar.gz (106.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datahub_agent_context-1.7.0.2rc2-py3-none-any.whl (146.1 kB view details)

Uploaded Python 3

File details

Details for the file datahub_agent_context-1.7.0.2rc2.tar.gz.

File metadata

File hashes

Hashes for datahub_agent_context-1.7.0.2rc2.tar.gz
Algorithm Hash digest
SHA256 aa55a1097fdc94e571acbe871e8d82fd02cda0dbb282f3b9c5a5510ecf838e58
MD5 00d5a4d99a1e132fb13aca90f65aa219
BLAKE2b-256 5bd0f8ebd17d6d1402a7c261b5ff69f7477edd2a37bb7b037bd6c389b5741b10

See more details on using hashes here.

File details

Details for the file datahub_agent_context-1.7.0.2rc2-py3-none-any.whl.

File metadata

File hashes

Hashes for datahub_agent_context-1.7.0.2rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 b130bee4249ef2814c014249c83046b65cde1b87eb80fa29802968e5da659a1c
MD5 4fffd24ae3e66ca3032d3ddc9a9164ce
BLAKE2b-256 1fdd78a2a335781c9258c5f20058e4e678ddb7fa5a873077f8e1676630c436bd

See more details on using hashes here.

Release history Release notifications | RSS feed

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page