Skip to main content

MCP tools for AI agents to search and query your DataHub metadata catalog — works with Claude, Cursor, Copilot, and any MCP-compatible AI assistant

Project description

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

Project details


Release history Release notifications | RSS feed

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.6.0.13.tar.gz (98.5 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.6.0.13-py3-none-any.whl (135.0 kB view details)

Uploaded Python 3

File details

Details for the file datahub_agent_context-1.6.0.13.tar.gz.

File metadata

  • Download URL: datahub_agent_context-1.6.0.13.tar.gz
  • Upload date:
  • Size: 98.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for datahub_agent_context-1.6.0.13.tar.gz
Algorithm Hash digest
SHA256 21da0201a2eff26b8674f93edf0bd8c76f5935cac710ec1a136fcdeccaa8a543
MD5 af49beedc06209ba99db9a83f13f01bb
BLAKE2b-256 205702052b88d9ec87f8119e2eaee2f6cff543aab089176009899771cf04ddf2

See more details on using hashes here.

File details

Details for the file datahub_agent_context-1.6.0.13-py3-none-any.whl.

File metadata

File hashes

Hashes for datahub_agent_context-1.6.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 a36e5bdca901a9b0b54ca7d25f450e40c32a2046f6c0ff9a82c49d774a2b243d
MD5 e40c48569f00829a1efb39f3b311b505
BLAKE2b-256 da2a2b25e5e9e247711a247c0bea96cc51adc5e46b33a5c9a72936be67db3c23

See more details on using hashes here.

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